MCPcopy Create free account
hub / github.com/MaterializeInc/materialize / check

Function check

src/expr/src/interpret.rs:1532–1541  ·  view source on GitHub ↗
(datum: PropDatum)

Source from the content-addressed store, hash-verified

1530 #[cfg_attr(miri, ignore)] // error: unsupported operation: can't call foreign function `decContextDefault` on OS `linux`
1531 fn test_trivial_spec_matches() {
1532 fn check(datum: PropDatum) -> Result<(), TestCaseError> {
1533 let datum: Datum = (&datum).into();
1534 let spec = if datum.is_null() {
1535 ResultSpec::null()
1536 } else {
1537 ResultSpec::value(datum)
1538 };
1539 assert!(spec.may_contain(datum));
1540 Ok(())
1541 }
1542
1543 proptest!(|(datum in mz_repr::arb_datum(true))| {
1544 check(datum)?;

Callers 3

test_safe_tag_baseFunction · 0.50
run_testsFunction · 0.50

Calls 10

enumerateMethod · 0.80
push_columnMethod · 0.80
is_nullMethod · 0.45
into_iterMethod · 0.45
exprMethod · 0.45
collectMethod · 0.45
iterMethod · 0.45
evalMethod · 0.45
lenMethod · 0.45
mfp_filterMethod · 0.45

Tested by 3

test_safe_tag_baseFunction · 0.40
run_testsFunction · 0.40