| 85 | } |
| 86 | |
| 87 | absl::StatusOr<Value> TestEvaluate(const std::string& expr_string) { |
| 88 | CEL_ASSIGN_OR_RETURN(auto parsed_expr, Parse(expr_string)); |
| 89 | CEL_ASSIGN_OR_RETURN(std::unique_ptr<cel::Program> program, |
| 90 | cel::extensions::ProtobufRuntimeAdapter::CreateProgram( |
| 91 | *runtime_, parsed_expr)); |
| 92 | Activation activation; |
| 93 | return program->Evaluate(&arena_, activation); |
| 94 | } |
| 95 | |
| 96 | const google::protobuf::DescriptorPool* descriptor_pool_ = |
| 97 | internal::GetTestingDescriptorPool(); |
nothing calls this directly
no test coverage detected