Crate mz_repr_test_util
source ·Expand description
Utilities to build objects from the repr
crate for unit testing.
These test utilities are relied by crates other than repr
.
Functions§
- Convert a Datum to a String such that test_spec_to_row can convert the String back into a row containing the same Datum.
- If the stream starts with a sequence of tokens that can be parsed as a datum, return those tokens as one string.
- Parses
ScalarType
fromscalar_type_stream
or infers it fromlitval
- Parse a token as a vec of strings that can be parsed as datums in a row.
- Constructs a
Row
from a sequence oflitval
andlittyp
.