| 273 | |
| 274 | template <typename StringType> |
| 275 | static void TestRemoveLineEnding() { |
| 276 | StringType str = "hello, world\r\n\r\n"; |
| 277 | RemoveLineEnding(&str); |
| 278 | EXPECT_EQ("hello, world", str); |
| 279 | RemoveLineEnding(&str); |
| 280 | EXPECT_EQ("hello, world", str); |
| 281 | |
| 282 | StringType empty = ""; |
| 283 | RemoveLineEnding(&empty); |
| 284 | EXPECT_EQ("", empty); |
| 285 | } |
| 286 | |
| 287 | TEST(String, RemoveLineEnding) |
| 288 | { |
nothing calls this directly
no test coverage detected