| 192 | using MakeVectorMakeStringRoundTripTest = ::testing::TestWithParam<std::string>; |
| 193 | |
| 194 | TEST_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 | |
| 204 | TEST_P(MakeVectorMakeStringRoundTripTest, ViaSmallVector1) { |
| 205 | const std::string str = GetParam(); |
nothing calls this directly
no test coverage detected