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

Function TEST_P

internal/utf8_test.cc:171–177  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

169using Utf8EncodeTest = testing::TestWithParam<Utf8EncodeTestCase>;
170
171TEST_P(Utf8EncodeTest, Compliance) {
172 const Utf8EncodeTestCase& test_case = GetParam();
173 std::string result;
174 EXPECT_EQ(Utf8Encode(result, test_case.code_point),
175 test_case.code_units.size());
176 EXPECT_EQ(result, test_case.code_units);
177}
178
179INSTANTIATE_TEST_SUITE_P(Utf8EncodeTest, Utf8EncodeTest,
180 testing::ValuesIn<Utf8EncodeTestCase>({

Callers

nothing calls this directly

Calls 4

FragmentStringFunction · 0.85
Utf8EncodeFunction · 0.70
Utf8DecodeFunction · 0.70
sizeMethod · 0.45

Tested by

no test coverage detected