Expand description
Utilities to build objects from the repr
crate for unit testing.
These test utilities are relied by crates other than repr
.
Functionsยง
- datum_
to_ test_ spec - Convert a Datum to a String such that test_spec_to_row can convert the String back into a row containing the same Datum.
- extract_
literal_ string - If the stream starts with a sequence of tokens that can be parsed as a datum, return those tokens as one string.
- get_
scalar_ type_ or_ default - Parses
SqlScalarType
fromscalar_type_stream
or infers it fromlitval
- parse_
litval ๐ - parse_
vec_ of_ literals - Parse a token as a vec of strings that can be parsed as datums in a row.
- test_
spec_ to_ row - Constructs a
Row
from a sequence oflitval
andlittyp
.