| 33 | using ::testing::HasSubstr; |
| 34 | |
| 35 | absl::StatusOr<std::unique_ptr<Compiler>> StdLibCompiler() { |
| 36 | CEL_ASSIGN_OR_RETURN( |
| 37 | auto builder, |
| 38 | NewCompilerBuilder(internal::GetSharedTestingDescriptorPool())); |
| 39 | builder->AddLibrary(StandardCompilerLibrary()).IgnoreError(); |
| 40 | CEL_RETURN_IF_ERROR(builder->GetCheckerBuilder().AddVariable( |
| 41 | MakeVariableDecl("p", StringType()))); |
| 42 | return builder->Build(); |
| 43 | } |
| 44 | |
| 45 | struct TestCase { |
| 46 | std::string expression; |
nothing calls this directly
no test coverage detected