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

Function TEST_P

internal/lexis_test.cc:29–36  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

27using LexisIsReservedTest = testing::TestWithParam<LexisTestCase>;
28
29TEST_P(LexisIsReservedTest, Compliance) {
30 const LexisTestCase& test_case = GetParam();
31 if (test_case.ok) {
32 EXPECT_TRUE(LexisIsReserved(test_case.text));
33 } else {
34 EXPECT_FALSE(LexisIsReserved(test_case.text));
35 }
36}
37
38INSTANTIATE_TEST_SUITE_P(LexisIsReservedTest, LexisIsReservedTest,
39 testing::ValuesIn<LexisTestCase>({{"true", true},

Callers

nothing calls this directly

Calls 2

LexisIsReservedFunction · 0.85
LexisIsIdentifierFunction · 0.85

Tested by

no test coverage detected