Crate mz_lowertest

Source
Expand description

Utilities for testing lower layers of the Materialize stack.

See [README.md].

Structs§

GenericTestDeserializeContext 🔒
Default TestDeserializeContext.
ReflectedTypeInfo
Info that must be combined with a spec to form deserializable JSON.

Traits§

MzReflect
For to_json to create deserializable JSON for an instance of an type, the type must derive this trait.
TestDeserializeContext
A trait for extending and/or overriding the default test case syntax.

Functions§

deserialize
Deserialize the next TokenTree into a D object.
deserialize_generic
Simpler interface for deserialize when no syntax overrides or extensions are needed.
deserialize_optional
If the stream_iter is not empty, deserialize the next TokenTree into a D.
deserialize_optional_generic
Simpler interface for deserialize_optional when no syntax overrides or extensions are needed.
find_next_type_in_tuple 🔒
from_json
Converts serialized JSON to the syntax that to_json handles.
from_json_fields 🔒
normalize_type_name 🔒
parse_as_enum_or_struct 🔒
Converts stream into JSON if type_name refers to an enum or struct
parse_as_enum_or_struct_inner 🔒
parse_as_tuple 🔒
Converts all TokenTrees into JSON.
parse_as_vec 🔒
Converts all TokenTrees into JSON deserializable to type_name.
serialize
serialize_generic
Simpler interface for serialize when no syntax overrides or extensions are needed.
to_json
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
tokenize
Converts s into a proc_macro2::TokenStream
unquote
Changes "\"foo\"" to "foo"

Derive Macros§

MzReflect
Macro generating an implementation for the trait MzReflect