| 58 | }; |
| 59 | |
| 60 | TEST_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 | |
| 73 | TEST_F(ResolverTest, TestFullyQualifiedNamesPartiallyQualifiedName) { |
| 74 | CelFunctionRegistry func_registry; |
nothing calls this directly
no test coverage detected