| 107 | }; |
| 108 | |
| 109 | TEST_P(RegexPrecompilationExtensionTest, SmokeTest) { |
| 110 | ProgramOptimizerFactory factory = |
| 111 | CreateRegexPrecompilationExtension(options_.regex_max_program_size); |
| 112 | ExecutionPath path; |
| 113 | ProgramBuilder program_builder; |
| 114 | cel::Ast ast_impl; |
| 115 | ast_impl.set_is_checked(true); |
| 116 | std::shared_ptr<google::protobuf::Arena> arena; |
| 117 | PlannerContext context(env_, resolver_, runtime_options_, |
| 118 | type_registry_.GetTypeProvider(), issue_collector_, |
| 119 | program_builder, arena); |
| 120 | |
| 121 | ASSERT_OK_AND_ASSIGN(std::unique_ptr<ProgramOptimizer> optimizer, |
| 122 | factory(context, ast_impl)); |
| 123 | } |
| 124 | |
| 125 | TEST_P(RegexPrecompilationExtensionTest, OptimizeableExpression) { |
| 126 | builder_.flat_expr_builder().AddProgramOptimizer( |
nothing calls this directly
no test coverage detected