diff options
| author | Martin Hořeňovský | 2020-07-27 08:46:35 +0200 |
|---|---|---|
| committer | Martin Hořeňovský | 2020-07-27 08:46:35 +0200 |
| commit | c9b4867441940c11c483d86b05eac0032abc5038 (patch) | |
| tree | 7d1a1c3446bdbbefe3aaadc3d42a1ec5d8083a48 /src | |
| parent | 258cac63f819abdeddb34ea42bdd6bb57862cc1a (diff) | |
| download | catch3-c9b4867441940c11c483d86b05eac0032abc5038.tar.gz | |
Move some impls of StreamingReporterBase members to .cpp file
Diffstat (limited to 'src')
| -rw-r--r-- | src/catch2/reporters/catch_reporter_bases.cpp | 12 | ||||
| -rw-r--r-- | src/catch2/reporters/catch_reporter_bases.hpp | 10 |
2 files changed, 14 insertions, 8 deletions
diff --git a/src/catch2/reporters/catch_reporter_bases.cpp b/src/catch2/reporters/catch_reporter_bases.cpp index afcfcafc..3fcd9bfb 100644 --- a/src/catch2/reporters/catch_reporter_bases.cpp +++ b/src/catch2/reporters/catch_reporter_bases.cpp @@ -99,6 +99,18 @@ namespace Catch { StreamingReporterBase::~StreamingReporterBase() = default; + + void StreamingReporterBase::testGroupEnded( TestGroupStats const& ) { + currentGroupInfo.reset(); + } + + void StreamingReporterBase::testRunEnded( TestRunStats const& ) { + currentTestCaseInfo = nullptr; + currentGroupInfo.reset(); + currentTestRunInfo.reset(); + } + + CumulativeReporterBase::~CumulativeReporterBase() = default; void diff --git a/src/catch2/reporters/catch_reporter_bases.hpp b/src/catch2/reporters/catch_reporter_bases.hpp index 55cbd2d0..76aea01f 100644 --- a/src/catch2/reporters/catch_reporter_bases.hpp +++ b/src/catch2/reporters/catch_reporter_bases.hpp @@ -67,14 +67,8 @@ namespace Catch { void testCaseEnded(TestCaseStats const& /* _testCaseStats */) override { currentTestCaseInfo = nullptr; } - void testGroupEnded(TestGroupStats const& /* _testGroupStats */) override { - currentGroupInfo.reset(); - } - void testRunEnded(TestRunStats const& /* _testRunStats */) override { - currentTestCaseInfo = nullptr; - currentGroupInfo.reset(); - currentTestRunInfo.reset(); - } + void testGroupEnded( TestGroupStats const& ) override; + void testRunEnded( TestRunStats const& /* _testRunStats */ ) override; void skipTest(TestCaseInfo const&) override { // Don't do anything with this by default. |