MCPcopy Create free account
hub / github.com/Pagghiu/SaneCppLibraries / TestCase

Method TestCase

Libraries/Testing/Testing.cpp:699–713  ·  view source on GitHub ↗

-------------------------------------------------------------------------------------------

Source from the content-addressed store, hash-verified

697
698//-------------------------------------------------------------------------------------------
699SC::TestCase::TestCase(TestReport& report, StringSpan testName)
700 : report(report), testName(testName), numTestsSucceeded(0), numTestsFailed(0), numSectionTestsFailed(0),
701 printedSection(false)
702{
703 if (report.isTestEnabled(testName))
704 {
705 if (not report.quietMode)
706 {
707 report.console.print("[[ {} ]]\n\n", testName);
708 report.console.flush();
709 }
710 report.firstFailedTest = StringSpan();
711 report.currentSection = StringSpan();
712 }
713}
714
715SC::TestCase::~TestCase()
716{

Callers

nothing calls this directly

Calls 4

StringSpanFunction · 0.85
isTestEnabledMethod · 0.80
printMethod · 0.80
flushMethod · 0.80

Tested by

no test coverage detected