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

Function TEST_P

eval/eval/select_step_test.cc:200–209  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

198 public testing::WithParamInterface<bool> {};
199
200TEST_P(SelectStepConformanceTest, SelectMessageIsNull) {
201 RunExpressionOptions options;
202 options.enable_unknowns = GetParam();
203
204 ASSERT_OK_AND_ASSIGN(CelValue result,
205 RunExpression(static_cast<const TestMessage*>(nullptr),
206 "bool_value", true, options));
207
208 ASSERT_TRUE(result.IsError());
209}
210
211TEST_P(SelectStepConformanceTest, SelectTargetNotStructOrMap) {
212 RunExpressionOptions options;

Calls 15

CreateContainerBackedMapFunction · 0.85
RunExpressionFunction · 0.85
EqualsProtoFunction · 0.85
MessageWrapperFunction · 0.85
IsCelInt64Function · 0.85
IsCelBoolFunction · 0.85
IsCelErrorFunction · 0.85
FlatExpressionClass · 0.85
ErrorOrDieMethod · 0.80
BoolOrDieMethod · 0.80
codeMethod · 0.80
IsInt64Method · 0.80

Tested by

no test coverage detected