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

Method PrepareBuilder

eval/tests/unknowns_end_to_end_test.cc:115–126  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

113class UnknownsTest : public testing::Test {
114 public:
115 void PrepareBuilder(UnknownProcessingOptions opts) {
116 InterpreterOptions options;
117 options.unknown_processing = opts;
118 builder_ = CreateCelExpressionBuilder(options);
119 ASSERT_THAT(RegisterBuiltinFunctions(builder_->GetRegistry()), IsOk());
120 ASSERT_THAT(
121 builder_->GetRegistry()->RegisterLazyFunction(CreateDescriptor("F1")),
122 IsOk());
123 ASSERT_THAT(
124 builder_->GetRegistry()->RegisterLazyFunction(CreateDescriptor("F2")),
125 IsOk());
126 }
127
128 protected:
129 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