MCPcopy Create free account
hub / github.com/EmbeddedRPC/erpc / PushLine

Method PushLine

test/common/gtest/gtest.cpp:2607–2623  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2605 common_() {}
2606
2607 void PushLine(char edit, const char* line) {
2608 switch (edit) {
2609 case ' ':
2610 ++common_;
2611 FlushEdits();
2612 hunk_.push_back(std::make_pair(' ', line));
2613 break;
2614 case '-':
2615 ++removes_;
2616 hunk_removes_.push_back(std::make_pair('-', line));
2617 break;
2618 case '+':
2619 ++adds_;
2620 hunk_adds_.push_back(std::make_pair('+', line));
2621 break;
2622 }
2623 }
2624
2625 void PrintTo(std::ostream* os) {
2626 PrintHeader(os);

Callers 1

CreateUnifiedDiffFunction · 0.80

Calls 1

push_backMethod · 0.80

Tested by

no test coverage detected