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

Function TEST

eval/public/equality_function_registrar_test.cc:301–308  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

299 });
300
301TEST(CelValueEqualImplTest, LossyNumericEquality) {
302 absl::optional<bool> result = CelValueEqualImpl(
303 CelValue::CreateDouble(
304 static_cast<double>(std::numeric_limits<int64_t>::max()) - 1),
305 CelValue::CreateInt64(std::numeric_limits<int64_t>::max()));
306 EXPECT_TRUE(result.has_value());
307 EXPECT_TRUE(*result);
308}
309
310TEST(CelValueEqualImplTest, ListMixedTypesInequal) {
311 ContainerBackedListImpl lhs({CelValue::CreateInt64(1)});

Callers

nothing calls this directly

Calls 11

CreateContainerBackedMapFunction · 0.85
MessageWrapperFunction · 0.85
AddDepsToPoolFunction · 0.70
CelValueEqualImplClass · 0.50
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