MCPcopy Create free account
hub / github.com/OpenStarbound/OpenStarbound / PushLine

Method PushLine

source/test/gtest/src/gtest.cc:1397–1413  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1395 common_() {}
1396
1397 void PushLine(char edit, const char* line) {
1398 switch (edit) {
1399 case ' ':
1400 ++common_;
1401 FlushEdits();
1402 hunk_.push_back(std::make_pair(' ', line));
1403 break;
1404 case '-':
1405 ++removes_;
1406 hunk_removes_.push_back(std::make_pair('-', line));
1407 break;
1408 case '+':
1409 ++adds_;
1410 hunk_adds_.push_back(std::make_pair('+', line));
1411 break;
1412 }
1413 }
1414
1415 void PrintTo(std::ostream* os) {
1416 PrintHeader(os);

Callers 1

CreateUnifiedDiffFunction · 0.80

Calls 1

push_backMethod · 0.45

Tested by

no test coverage detected