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

Function TEST_P

env/config_test.cc:71–83  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

69 : public testing::TestWithParam<StandardLibraryConfigTestCase> {};
70
71TEST_P(StandardLibraryConfigTest, StandardLibraryConfig) {
72 const StandardLibraryConfigTestCase& param = GetParam();
73
74 Config config;
75 absl::Status status =
76 config.SetStandardLibraryConfig(param.standard_library_config);
77 if (param.expected_error.empty()) {
78 EXPECT_THAT(status, IsOk());
79 } else {
80 EXPECT_THAT(status, StatusIs(absl::StatusCode::kInvalidArgument,
81 HasSubstr(param.expected_error)));
82 }
83}
84
85INSTANTIATE_TEST_SUITE_P(
86 StandardLibraryConfigTest, StandardLibraryConfigTest,

Callers

nothing calls this directly

Calls 2

emptyMethod · 0.45

Tested by

no test coverage detected