MCPcopy Create free account
hub / github.com/cel-expr/cel-cpp / NotStrictlyFalseImpl

Function NotStrictlyFalseImpl

runtime/standard/logical_functions.cc:33–44  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

31using ::cel::runtime_internal::CreateNoMatchingOverloadError;
32
33Value NotStrictlyFalseImpl(const Value& value) {
34 if (value.IsBool()) {
35 return value;
36 }
37
38 if (value.IsError() || value.IsUnknown()) {
39 return TrueValue();
40 }
41
42 // Should only accept bool unknown or error.
43 return ErrorValue(CreateNoMatchingOverloadError(builtin::kNotStrictlyFalse));
44}
45
46} // namespace
47

Callers

nothing calls this directly

Calls 6

TrueValueFunction · 0.85
ErrorValueFunction · 0.85
IsBoolMethod · 0.45
IsErrorMethod · 0.45
IsUnknownMethod · 0.45

Tested by

no test coverage detected