pub fn every_message() -> Vec<Message>Available on crate feature
testing only.Expand description
One of every message, with every optional field set.
The corpus three different checks are run over, and the reason it lives here rather than in one of them: it is the answer to “show me every message this crate can produce”, which is a thing a consumer writing its own tests wants as much as this crate does.
tests/model_matches_schema.rsvalidates each one against the official JSON schema and requires every component the schema defines to be reachable from one of them;tests/interop_s2energy.rsrequires an independent implementation to read them;- a consumer can use it to exercise its own handler over the whole message space.
Identifiers are short and readable (actuator1, om0) rather than UUIDs, exactly as
the standard’s own worked examples write them — S2J schemas/ID is a pattern, not a
UUID (erratum E1).