mirror of
https://github.com/catchorg/Catch2.git
synced 2024-11-25 23:06:10 +01:00
Unvirtual bunch off destructors of simple data classes
This commit is contained in:
parent
04cbbb8a4b
commit
7c622a79d4
@ -57,8 +57,6 @@ namespace Catch {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
AssertionStats::~AssertionStats() = default;
|
|
||||||
|
|
||||||
SectionStats::SectionStats( SectionInfo const& _sectionInfo,
|
SectionStats::SectionStats( SectionInfo const& _sectionInfo,
|
||||||
Counts const& _assertions,
|
Counts const& _assertions,
|
||||||
double _durationInSeconds,
|
double _durationInSeconds,
|
||||||
@ -69,8 +67,6 @@ namespace Catch {
|
|||||||
missingAssertions( _missingAssertions )
|
missingAssertions( _missingAssertions )
|
||||||
{}
|
{}
|
||||||
|
|
||||||
SectionStats::~SectionStats() = default;
|
|
||||||
|
|
||||||
|
|
||||||
TestCaseStats::TestCaseStats( TestCaseInfo const& _testInfo,
|
TestCaseStats::TestCaseStats( TestCaseInfo const& _testInfo,
|
||||||
Totals const& _totals,
|
Totals const& _totals,
|
||||||
@ -84,8 +80,6 @@ namespace Catch {
|
|||||||
aborting( _aborting )
|
aborting( _aborting )
|
||||||
{}
|
{}
|
||||||
|
|
||||||
TestCaseStats::~TestCaseStats() = default;
|
|
||||||
|
|
||||||
|
|
||||||
TestGroupStats::TestGroupStats( GroupInfo const& _groupInfo,
|
TestGroupStats::TestGroupStats( GroupInfo const& _groupInfo,
|
||||||
Totals const& _totals,
|
Totals const& _totals,
|
||||||
@ -100,7 +94,6 @@ namespace Catch {
|
|||||||
aborting( false )
|
aborting( false )
|
||||||
{}
|
{}
|
||||||
|
|
||||||
TestGroupStats::~TestGroupStats() = default;
|
|
||||||
|
|
||||||
TestRunStats::TestRunStats( TestRunInfo const& _runInfo,
|
TestRunStats::TestRunStats( TestRunInfo const& _runInfo,
|
||||||
Totals const& _totals,
|
Totals const& _totals,
|
||||||
@ -110,8 +103,6 @@ namespace Catch {
|
|||||||
aborting( _aborting )
|
aborting( _aborting )
|
||||||
{}
|
{}
|
||||||
|
|
||||||
TestRunStats::~TestRunStats() = default;
|
|
||||||
|
|
||||||
void IStreamingReporter::fatalErrorEncountered( StringRef ) {}
|
void IStreamingReporter::fatalErrorEncountered( StringRef ) {}
|
||||||
|
|
||||||
void IStreamingReporter::listReporters(std::vector<ReporterDescription> const& descriptions, Config const& config) {
|
void IStreamingReporter::listReporters(std::vector<ReporterDescription> const& descriptions, Config const& config) {
|
||||||
|
@ -88,7 +88,6 @@ namespace Catch {
|
|||||||
AssertionStats( AssertionStats && ) = default;
|
AssertionStats( AssertionStats && ) = default;
|
||||||
AssertionStats& operator = ( AssertionStats const& ) = delete;
|
AssertionStats& operator = ( AssertionStats const& ) = delete;
|
||||||
AssertionStats& operator = ( AssertionStats && ) = delete;
|
AssertionStats& operator = ( AssertionStats && ) = delete;
|
||||||
virtual ~AssertionStats();
|
|
||||||
|
|
||||||
AssertionResult assertionResult;
|
AssertionResult assertionResult;
|
||||||
std::vector<MessageInfo> infoMessages;
|
std::vector<MessageInfo> infoMessages;
|
||||||
@ -104,7 +103,6 @@ namespace Catch {
|
|||||||
SectionStats( SectionStats && ) = default;
|
SectionStats( SectionStats && ) = default;
|
||||||
SectionStats& operator = ( SectionStats const& ) = default;
|
SectionStats& operator = ( SectionStats const& ) = default;
|
||||||
SectionStats& operator = ( SectionStats && ) = default;
|
SectionStats& operator = ( SectionStats && ) = default;
|
||||||
virtual ~SectionStats();
|
|
||||||
|
|
||||||
SectionInfo sectionInfo;
|
SectionInfo sectionInfo;
|
||||||
Counts assertions;
|
Counts assertions;
|
||||||
@ -123,7 +121,6 @@ namespace Catch {
|
|||||||
TestCaseStats( TestCaseStats && ) = default;
|
TestCaseStats( TestCaseStats && ) = default;
|
||||||
TestCaseStats& operator = ( TestCaseStats const& ) = default;
|
TestCaseStats& operator = ( TestCaseStats const& ) = default;
|
||||||
TestCaseStats& operator = ( TestCaseStats && ) = default;
|
TestCaseStats& operator = ( TestCaseStats && ) = default;
|
||||||
virtual ~TestCaseStats();
|
|
||||||
|
|
||||||
TestCaseInfo const * testInfo;
|
TestCaseInfo const * testInfo;
|
||||||
Totals totals;
|
Totals totals;
|
||||||
@ -142,7 +139,6 @@ namespace Catch {
|
|||||||
TestGroupStats( TestGroupStats && ) = default;
|
TestGroupStats( TestGroupStats && ) = default;
|
||||||
TestGroupStats& operator = ( TestGroupStats const& ) = default;
|
TestGroupStats& operator = ( TestGroupStats const& ) = default;
|
||||||
TestGroupStats& operator = ( TestGroupStats && ) = default;
|
TestGroupStats& operator = ( TestGroupStats && ) = default;
|
||||||
virtual ~TestGroupStats();
|
|
||||||
|
|
||||||
GroupInfo groupInfo;
|
GroupInfo groupInfo;
|
||||||
Totals totals;
|
Totals totals;
|
||||||
@ -158,7 +154,6 @@ namespace Catch {
|
|||||||
TestRunStats( TestRunStats && ) = default;
|
TestRunStats( TestRunStats && ) = default;
|
||||||
TestRunStats& operator = ( TestRunStats const& ) = default;
|
TestRunStats& operator = ( TestRunStats const& ) = default;
|
||||||
TestRunStats& operator = ( TestRunStats && ) = default;
|
TestRunStats& operator = ( TestRunStats && ) = default;
|
||||||
virtual ~TestRunStats();
|
|
||||||
|
|
||||||
TestRunInfo runInfo;
|
TestRunInfo runInfo;
|
||||||
Totals totals;
|
Totals totals;
|
||||||
|
Loading…
Reference in New Issue
Block a user