@@ -14,26 +14,38 @@ namespace UnitTest {
14
14
// virtual
15
15
void ThrowingTestReporter::ReportTestStart (TestDetails const & test)
16
16
{
17
- if (m_decoratedReporter) m_decoratedReporter->ReportTestStart (test);
17
+ if (m_decoratedReporter)
18
+ {
19
+ m_decoratedReporter->ReportTestStart (test);
20
+ }
18
21
}
19
22
20
23
// virtual
21
24
void ThrowingTestReporter::ReportFailure (TestDetails const & test, char const * failure)
22
25
{
23
- if (m_decoratedReporter) m_decoratedReporter->ReportFailure (test, failure);
26
+ if (m_decoratedReporter)
27
+ {
28
+ m_decoratedReporter->ReportFailure (test, failure);
29
+ }
24
30
throw RequiredCheckException ();
25
31
}
26
32
27
33
// virtual
28
34
void ThrowingTestReporter::ReportTestFinish (TestDetails const & test, float secondsElapsed)
29
35
{
30
- if (m_decoratedReporter) m_decoratedReporter->ReportTestFinish (test, secondsElapsed);
36
+ if (m_decoratedReporter)
37
+ {
38
+ m_decoratedReporter->ReportTestFinish (test, secondsElapsed);
39
+ }
31
40
}
32
41
33
42
// virtual
34
43
void ThrowingTestReporter::ReportSummary (int totalTestCount, int failedTestCount, int failureCount, float secondsElapsed)
35
44
{
36
- if (m_decoratedReporter) m_decoratedReporter->ReportSummary (totalTestCount, failedTestCount, failureCount, secondsElapsed);
45
+ if (m_decoratedReporter)
46
+ {
47
+ m_decoratedReporter->ReportSummary (totalTestCount, failedTestCount, failureCount, secondsElapsed);
48
+ }
37
49
}
38
50
39
51
}
0 commit comments