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

Method SetUp

checker/standard_library_test.cc:139–145  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

137class StandardLibraryDefinitionsTest : public ::testing::Test {
138 public:
139 void SetUp() override {
140 ASSERT_OK_AND_ASSIGN(
141 std::unique_ptr<TypeCheckerBuilder> builder,
142 CreateTypeCheckerBuilder(GetSharedTestingDescriptorPool()));
143 ASSERT_THAT(builder->AddLibrary(StandardCheckerLibrary()), IsOk());
144 ASSERT_OK_AND_ASSIGN(stdlib_type_checker_, builder->Build());
145 }
146
147 protected:
148 std::unique_ptr<TypeChecker> stdlib_type_checker_;

Callers

nothing calls this directly

Calls 5

CreateTypeCheckerBuilderFunction · 0.85
StandardCheckerLibraryFunction · 0.85
ASSERT_OK_AND_ASSIGNFunction · 0.50
AddLibraryMethod · 0.45
BuildMethod · 0.45

Tested by

no test coverage detected