Crate mz_lowertest
source ยทExpand description
Utilities for testing lower layers of the Materialize stack.
See [README.md].
Structsยง
- Default
TestDeserializeContext
. - Info that must be combined with a spec to form deserializable JSON.
Traitsยง
- For
to_json
to create deserializable JSON for an instance of an type, the type must derive this trait. - A trait for extending and/or overriding the default test case syntax.
Functionsยง
- Deserialize the next
TokenTree
into aD
object. - Simpler interface for deserialize when no syntax overrides or extensions are needed.
- If the
stream_iter
is not empty, deserialize the nextTokenTree
into aD
. - Simpler interface for deserialize_optional when no syntax overrides or extensions are needed.
- Converts serialized JSON to the syntax that to_json handles.
- from_
json_ ๐fields - normalize_
type_ ๐name - Converts stream into JSON if
type_name
refers to an enum or struct - parse_
as_ ๐tuple Converts allTokenTree
s into JSON. - parse_
as_ ๐vec Converts allTokenTree
s into JSON deserializable totype_name
. - Simpler interface for serialize when no syntax overrides or extensions are needed.
- Converts the next part of the stream into JSON deserializable into an object of type
type_name
. - to_
json_ ๐fields Converts the spec for fields of an enum/struct into deserializable JSON. - to_
json_ ๐generic_ enum Converts the spec of an enum into deserializable JSON - Converts
s
into a proc_macro2::TokenStream - Changes
"\"foo\""
to"foo"
Derive Macrosยง
- Macro generating an implementation for the trait MzReflect