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

Method toString

test/testsuppressions.cpp:1854–1880  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1852 }
1853
1854 void toString() const
1855 {
1856 {
1857 SuppressionList::Suppression s;
1858 s.errorId = "unitvar";
1859 ASSERT_EQUALS("unitvar", s.toString());
1860 }
1861 {
1862 SuppressionList::Suppression s;
1863 s.errorId = "unitvar";
1864 s.fileName = "test.cpp";
1865 ASSERT_EQUALS("unitvar:test.cpp", s.toString());
1866 }
1867 {
1868 SuppressionList::Suppression s;
1869 s.errorId = "unitvar";
1870 s.fileName = "test.cpp";
1871 s.lineNumber = 12;
1872 ASSERT_EQUALS("unitvar:test.cpp:12", s.toString());
1873 }
1874 {
1875 SuppressionList::Suppression s;
1876 s.errorId = "unitvar";
1877 s.symbolName = "sym";
1878 ASSERT_EQUALS("unitvar\nsymbol=sym", s.toString());
1879 }
1880 }
1881
1882 void suppressionFromErrorMessage() const {
1883 {

Callers 1

parseLineMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected