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

Function TEST_F

eval/compiler/resolver_test.cc:60–71  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

58};
59
60TEST_F(ResolverTest, TestFullyQualifiedNames) {
61 CelFunctionRegistry func_registry;
62 Resolver resolver("google.api.expr", func_registry.InternalGetRegistry(),
63 type_registry_.InternalGetModernRegistry(),
64 type_registry_.GetTypeProvider());
65
66 auto names = resolver.FullyQualifiedNames("simple_name");
67 std::vector<std::string> expected_names(
68 {"google.api.expr.simple_name", "google.api.simple_name",
69 "google.simple_name", "simple_name"});
70 EXPECT_THAT(names, Eq(expected_names));
71}
72
73TEST_F(ResolverTest, TestFullyQualifiedNamesPartiallyQualifiedName) {
74 CelFunctionRegistry func_registry;

Callers

nothing calls this directly

Calls 12

ArgumentsMatcherFunction · 0.85
FullyQualifiedNamesMethod · 0.80
FindConstantMethod · 0.80
sizeMethod · 0.45
RegisterMethod · 0.45
NativeValueMethod · 0.45
GetIntMethod · 0.45
nameMethod · 0.45
GetTypeMethod · 0.45
FindOverloadsMethod · 0.45
RegisterLazyFunctionMethod · 0.45
FindLazyOverloadsMethod · 0.45

Tested by

no test coverage detected