MCPcopy Create free account
hub / github.com/chen3feng/toft / TestRemoveLineEnding

Function TestRemoveLineEnding

base/string/algorithm_test.cpp:275–285  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

273
274template <typename StringType>
275static 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
287TEST(String, RemoveLineEnding)
288{

Callers

nothing calls this directly

Calls 1

RemoveLineEndingFunction · 0.85

Tested by

no test coverage detected