blob: 68f7611d7c7e4e622c092fa10b78b633fb443e84 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
#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);
}
}
|