| 56 | }; |
| 57 | |
| 58 | TEST(FunctionRegistryTest, InsertAndRetrieveLazyFunction) { |
| 59 | cel::FunctionDescriptor lazy_function_desc{"LazyFunction", false, {}}; |
| 60 | FunctionRegistry registry; |
| 61 | Activation activation; |
| 62 | ASSERT_OK(registry.RegisterLazyFunction(lazy_function_desc)); |
| 63 | |
| 64 | const auto descriptors = |
| 65 | registry.FindLazyOverloads("LazyFunction", false, {}); |
| 66 | EXPECT_THAT(descriptors, SizeIs(1)); |
| 67 | } |
| 68 | |
| 69 | // Confirm that lazy and static functions share the same descriptor space: |
| 70 | // 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