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

Function TEST_F

eval/public/builtin_func_test.cc:435–442  ·  view source on GitHub ↗

Test Not() operation for Bool

Source from the content-addressed store, hash-verified

433
434// Test Not() operation for Bool
435TEST_F(BuiltinsTest, TestNotOp) {
436 CelValue result;
437 ASSERT_NO_FATAL_FAILURE(
438 PerformRun(builtin::kNot, {}, {CelValue::CreateBool(true)}, &result));
439
440 ASSERT_TRUE(result.IsBool());
441 EXPECT_EQ(result.BoolOrDie(), false);
442}
443
444// Test negation operation for numeric types.
445TEST_F(BuiltinsTest, TestNegOp) {

Callers

nothing calls this directly

Calls 15

MinDurationFunction · 0.85
MaxDurationFunction · 0.85
MinTimestampFunction · 0.85
CheckNoSuchKeyErrorFunction · 0.85
BoolOrDieMethod · 0.80
IsInt64Method · 0.80
Int64OrDieMethod · 0.80
DoubleOrDieMethod · 0.80
clearMethod · 0.80
ErrorOrDieMethod · 0.80
codeMethod · 0.80

Tested by

no test coverage detected