Expand description
Token-based test framework for forma_core.
Provides assert_ser_tokens, assert_de_tokens, and
assert_tokens for verifying that Serialize/Deserialize impls
produce and consume the expected token streams.
Re-exports§
Modules§
- de
- Token-based deserializer.
- error
- Error type for the test serializer/deserializer.
- ser
- Token-recording serializer.
- token
- The token type — one variant per data model type.
Functions§
- assert_
de_ tokens - Assert that deserializing
tokensproduces a value equal toexpected. - assert_
de_ tokens_ error - Assert that deserialization from
tokensfails with an error whoseDisplayoutput containsexpected_msg. - assert_
ser_ tokens - Assert that serializing
valueproduces exactlyexpectedtokens. - assert_
tokens - Assert that
valueround-trips through serialization and deserialization via the given token stream.