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

Function TEST

codelab/cel_compiler_test.cc:74–77  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

72}
73
74TEST(DefaultCompiler, Basic) {
75 ASSERT_OK_AND_ASSIGN(auto compiler, MakeDefaultCompilerBuilder()->Build());
76 EXPECT_THAT(compiler->Compile("1 < 2").status(), IsOk());
77}
78
79TEST(DefaultCompiler, AddFunctionDecl) {
80 auto builder = MakeDefaultCompilerBuilder();

Callers

nothing calls this directly

Calls 13

CompileToCheckedExprFunction · 0.85
MakeVariableDeclFunction · 0.85
RegisterBuiltinFunctionsFunction · 0.85
IsCelBoolFunction · 0.85
AddVariableMethod · 0.80
GetRegistryMethod · 0.80
InsertValueMethod · 0.80
BoolTypeClass · 0.50
BindProtoToActivationFunction · 0.50
CompileMethod · 0.45

Tested by

no test coverage detected