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

Function TEST_P

eval/compiler/regex_precompilation_optimization_test.cc:109–123  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

107};
108
109TEST_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
125TEST_P(RegexPrecompilationExtensionTest, OptimizeableExpression) {
126 builder_.flat_expr_builder().AddProgramOptimizer(

Callers

nothing calls this directly

Calls 12

set_is_checkedMethod · 0.80
AddProgramOptimizerMethod · 0.80
SwapMethod · 0.80
InsertValueMethod · 0.80
source_infoMethod · 0.80
ASSERT_OK_AND_ASSIGNFunction · 0.70
CreateExpressionMethod · 0.45
TraceMethod · 0.45
exprMethod · 0.45
IsErrorMethod · 0.45

Tested by

no test coverage detected