MCPcopy Create free account
hub / github.com/TortoiseGit/TortoiseGit / TEST

Function TEST

test/UnitTests/GitCliOutputParserTest.cpp:63–72  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

61}
62
63TEST(CGitCliOutputParser, RemoteLines)
64{
65 std::string_view buffer = "remote: JETZT \nremote: 123 \rremote: abcd \rremote: \nremote: def \nremote: fertig \n";
66
67 CGitCliOutputParser cliparser;
68 EmittedLines out = cliparser.Process(buffer);
69 EXPECT_EQ(0u, out.erasePreviousLineWithLength);
70 EXPECT_FALSE(out.limited);
71 EXPECT_STREQ("remote: JETZT \nremote: abcd \nremote: def \nremote: fertig \n", out.text.c_str());
72}
73
74TEST(CGitCliOutputParser, RemoteLinesOneAtATime)
75{

Callers

nothing calls this directly

Calls 9

loadGitOutputFunction · 0.85
AppendChunkMethod · 0.80
ProcessPendingMethod · 0.80
ProcessMethod · 0.45
GetStringMethod · 0.45
GetLengthMethod · 0.45
appendMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected