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

Function test_could_error

src/expr/src/scalar/func/unary.rs:568–577  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

566
567 #[mz_ore::test]
568 fn test_could_error() {
569 for func in [
570 UnaryFunc::IsNull(IsNull),
571 UnaryFunc::CastVarCharToString(CastVarCharToString),
572 UnaryFunc::Not(Not),
573 UnaryFunc::IsLikeMatch(IsLikeMatch(like_pattern::compile("%hi%", false).unwrap())),
574 ] {
575 assert!(!func.could_error())
576 }
577 }
578
579 #[mz_ore::test]
580 #[cfg_attr(miri, ignore)] // unsupported operation: can't call foreign function `decNumberFromInt32` on OS `linux`

Callers

nothing calls this directly

Calls 3

IsLikeMatchClass · 0.85
compileFunction · 0.85
unwrapMethod · 0.80

Tested by

no test coverage detected