26 lines
529 B
C++
26 lines
529 B
C++
|
#include "PrintfTestReporter.h"
|
||
|
|
||
|
#include <cstdio>
|
||
|
|
||
|
namespace CppTestHarness
|
||
|
{
|
||
|
|
||
|
void PrintfTestReporter::ReportFailure(char const* file, int const line, std::string const failure)
|
||
|
{
|
||
|
printf("%s(%d) : failure: %s\n", file, line, failure.c_str());
|
||
|
}
|
||
|
|
||
|
void PrintfTestReporter::ReportSingleResult(const std::string& /*testName*/, bool /*failed*/)
|
||
|
{
|
||
|
//empty
|
||
|
}
|
||
|
|
||
|
void PrintfTestReporter::ReportSummary(int const testCount, int const failureCount)
|
||
|
{
|
||
|
printf("%d tests run.\n", testCount);
|
||
|
printf("%d failures.\n", failureCount);
|
||
|
}
|
||
|
|
||
|
}
|
||
|
|