MCPcopy Create free account
hub / github.com/cppcheck-opensource/cppcheck / suppressionsLine0

Method suppressionsLine0

test/testsuppressions.cpp:1114–1118  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1112 }
1113
1114 void suppressionsLine0() const {
1115 SuppressionList suppressions;
1116 ASSERT_EQUALS("", suppressions.addSuppressionLine("syntaxError:*:0"));
1117 ASSERT_EQUALS(true, suppressions.isSuppressed(errorMessage("syntaxError", "test.cpp", 0)));
1118 }
1119
1120 void suppressionsFileComment() const {
1121 std::istringstream file1("# comment\n"

Callers

nothing calls this directly

Calls 2

addSuppressionLineMethod · 0.80
isSuppressedMethod · 0.45

Tested by

no test coverage detected