Line | |
---|
1 | #include "PrintfTestReporter.h" |
---|
2 | |
---|
3 | #include <cstdio> |
---|
4 | |
---|
5 | namespace CppTestHarness |
---|
6 | { |
---|
7 | |
---|
8 | void PrintfTestReporter::ReportFailure(char const* file, int const line, std::string const failure) |
---|
9 | { |
---|
10 | printf("%s(%d) : failure: %s\n", file, line, failure.c_str()); |
---|
11 | } |
---|
12 | |
---|
13 | void PrintfTestReporter::ReportSingleResult(const std::string& /*testName*/, bool /*failed*/) |
---|
14 | { |
---|
15 | //empty |
---|
16 | } |
---|
17 | |
---|
18 | void PrintfTestReporter::ReportSummary(int const testCount, int const failureCount) |
---|
19 | { |
---|
20 | printf("%d tests run.\n", testCount); |
---|
21 | printf("%d failures.\n", failureCount); |
---|
22 | } |
---|
23 | |
---|
24 | } |
---|
25 | |
---|
Note: See
TracBrowser
for help on using the repository browser.