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

Method PrepareBuilder

eval/tests/unknowns_end_to_end_test.cc:448–459  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

446class 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_;

Callers

nothing calls this directly

Calls 5

RegisterBuiltinFunctionsFunction · 0.85
CreateDescriptorFunction · 0.85
GetRegistryMethod · 0.80
RegisterLazyFunctionMethod · 0.45

Tested by

no test coverage detected