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

Function TEST

eval/internal/cel_value_equal_test.cc:282–289  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

280 });
281
282TEST(CelValueEqualImplTest, LossyNumericEquality) {
283 absl::optional<bool> result = CelValueEqualImpl(
284 CelValue::CreateDouble(
285 static_cast<double>(std::numeric_limits<int64_t>::max()) - 1),
286 CelValue::CreateInt64(std::numeric_limits<int64_t>::max()));
287 EXPECT_TRUE(result.has_value());
288 EXPECT_TRUE(*result);
289}
290
291TEST(CelValueEqualImplTest, ListMixedTypesInequal) {
292 ContainerBackedListImpl lhs({CelValue::CreateInt64(1)});

Callers

nothing calls this directly

Calls 10

CreateContainerBackedMapFunction · 0.85
MessageWrapperFunction · 0.85
CelValueEqualImplFunction · 0.70
AddDepsToPoolFunction · 0.70
CreateListFunction · 0.50
ASSERT_OK_AND_ASSIGNFunction · 0.50
CreateMapFunction · 0.50
has_valueMethod · 0.45
getMethod · 0.45
NewMethod · 0.45

Tested by

no test coverage detected