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

Method classInfoFormat

test/testcheck.cpp:35–45  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

33 }
34
35 void classInfoFormat() const {
36 for (const Check * const c : CheckInstances::get()) {
37 const std::string info = c->classInfo();
38 if (!info.empty()) {
39 ASSERT('\n' != info[0]); // No \n in the beginning
40 ASSERT('\n' == info.back()); // \n at end
41 if (info.size() > 1)
42 ASSERT('\n' != info[info.length()-2]); // Only one \n at end
43 }
44 }
45 }
46};
47
48REGISTER_TEST(TestCheck)

Callers

nothing calls this directly

Calls 3

getFunction · 0.50
emptyMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected