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

Function TEST_P

eval/public/comparison_functions_test.cc:94–103  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

92};
93
94TEST_P(ComparisonFunctionTest, SmokeTest) {
95 ComparisonTestCase test_case = std::get<0>(GetParam());
96 google::protobuf::LinkMessageReflection<AttributeContext>();
97
98 ASSERT_OK(RegisterComparisonFunctions(&registry(), options_));
99 ASSERT_OK_AND_ASSIGN(auto result,
100 Evaluate(test_case.expr, test_case.lhs, test_case.rhs));
101
102 EXPECT_THAT(result, test::IsCelBool(test_case.result));
103}
104
105INSTANTIATE_TEST_SUITE_P(
106 LessThan, ComparisonFunctionTest,

Callers

nothing calls this directly

Calls 2

IsCelBoolFunction · 0.85

Tested by

no test coverage detected