| 44 | }; |
| 45 | |
| 46 | TEST(CelFunctionRegistryTest, InsertAndRetrieveLazyFunction) { |
| 47 | CelFunctionDescriptor lazy_function_desc{"LazyFunction", false, {}}; |
| 48 | CelFunctionRegistry registry; |
| 49 | Activation activation; |
| 50 | ASSERT_OK(registry.RegisterLazyFunction(lazy_function_desc)); |
| 51 | |
| 52 | const auto descriptors = |
| 53 | registry.FindLazyOverloads("LazyFunction", false, {}); |
| 54 | EXPECT_THAT(descriptors, testing::SizeIs(1)); |
| 55 | } |
| 56 | |
| 57 | // Confirm that lazy and static functions share the same descriptor space: |
| 58 | // i.e. you can't insert both a lazy function and a static function for the same |
nothing calls this directly
no test coverage detected