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

Function TEST

checker/standard_library_test.cc:50–56  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

48using AstType = cel::TypeSpec;
49
50TEST(StandardLibraryTest, StandardLibraryAddsDecls) {
51 ASSERT_OK_AND_ASSIGN(
52 std::unique_ptr<TypeCheckerBuilder> builder,
53 CreateTypeCheckerBuilder(GetSharedTestingDescriptorPool()));
54 EXPECT_THAT(builder->AddLibrary(StandardCheckerLibrary()), IsOk());
55 EXPECT_THAT(builder->Build(), IsOk());
56}
57
58TEST(StandardLibraryTest, StandardLibraryErrorsIfAddedTwice) {
59 ASSERT_OK_AND_ASSIGN(

Callers

nothing calls this directly

Calls 15

CreateTypeCheckerBuilderFunction · 0.85
StandardCheckerLibraryFunction · 0.85
MakeVariableDeclFunction · 0.85
AddVariableMethod · 0.80
IsValidMethod · 0.80
GetIssuesMethod · 0.80
FormatErrorMethod · 0.80
has_primitiveMethod · 0.80
primitiveMethod · 0.80
ASSERT_OK_AND_ASSIGNFunction · 0.50
ListTypeClass · 0.50
TypeParamTypeClass · 0.50

Tested by

no test coverage detected