MCPcopy Create free account
hub / github.com/KhronosGroup/SPIRV-Tools / TEST_P

Function TEST_P

test/string_utils_test.cpp:194–202  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

192using MakeVectorMakeStringRoundTripTest = ::testing::TestWithParam<std::string>;
193
194TEST_P(MakeVectorMakeStringRoundTripTest, ViaStdVector) {
195 const std::string str = GetParam();
196 const auto& vec = MakeVector<std::vector<uint32_t>>(str);
197 // Allow for the terminating null byte that must be present.
198 const auto expected_vec_len = (str.size() + 4) / 4;
199 EXPECT_EQ(vec.size(), expected_vec_len);
200 const std::string back_to_string = MakeString(vec);
201 EXPECT_EQ(str, back_to_string);
202}
203
204TEST_P(MakeVectorMakeStringRoundTripTest, ViaSmallVector1) {
205 const std::string str = GetParam();

Callers

nothing calls this directly

Calls 2

MakeStringFunction · 0.85
sizeMethod · 0.45

Tested by

no test coverage detected