MCPcopy Create free account
hub / github.com/cpputest/cpputest / report_testgroup_start

Method report_testgroup_start

src/CppUTestExt/MemoryReportFormatter.cpp:60–72  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

58}
59
60void NormalMemoryReportFormatter::report_testgroup_start(TestResult* result, UtestShell& test)
61{
62 const size_t line_size = 80;
63
64 SimpleString groupName = StringFromFormat("TEST GROUP(%s)", test.getGroup().asCharString());
65 size_t beginPos = (line_size/2) - (groupName.size()/2);
66
67 SimpleString line("-", beginPos);
68 line += groupName;
69 line += SimpleString("-", line_size - line.size());
70 line += "\n";
71 result->print(line.asCharString());
72}

Callers 1

preTestActionMethod · 0.45

Calls 6

StringFromFormatFunction · 0.85
SimpleStringClass · 0.85
asCharStringMethod · 0.80
getGroupMethod · 0.80
sizeMethod · 0.45
printMethod · 0.45

Tested by

no test coverage detected