| 446 | class UnknownsCompTest : public testing::Test { |
| 447 | public: |
| 448 | void PrepareBuilder(UnknownProcessingOptions opts) { |
| 449 | InterpreterOptions options; |
| 450 | options.unknown_processing = opts; |
| 451 | builder_ = CreateCelExpressionBuilder(options); |
| 452 | ASSERT_THAT(RegisterBuiltinFunctions(builder_->GetRegistry()), IsOk()); |
| 453 | ASSERT_THAT(builder_->GetRegistry()->RegisterLazyFunction( |
| 454 | CreateDescriptor("Fn", CelValue::Type::kInt64)), |
| 455 | IsOk()); |
| 456 | ASSERT_TRUE( |
| 457 | google::protobuf::TextFormat::ParseFromString(kListCompExistsExpr, &expr_)) |
| 458 | << "error parsing expr"; |
| 459 | } |
| 460 | |
| 461 | protected: |
| 462 | Arena arena_; |
nothing calls this directly
no test coverage detected