mirror of
https://github.com/catchorg/Catch2.git
synced 2024-11-22 13:26:10 +01:00
Static analysis cleanup in tests
This commit is contained in:
parent
bf5aa7b383
commit
dff7513b28
@ -95,8 +95,8 @@ namespace {
|
|||||||
MoveChecker() = default;
|
MoveChecker() = default;
|
||||||
MoveChecker( MoveChecker const& rhs ) = default;
|
MoveChecker( MoveChecker const& rhs ) = default;
|
||||||
MoveChecker& operator=( MoveChecker const& rhs ) = default;
|
MoveChecker& operator=( MoveChecker const& rhs ) = default;
|
||||||
MoveChecker( MoveChecker&& rhs ) { rhs.has_moved = true; }
|
MoveChecker( MoveChecker&& rhs ) noexcept { rhs.has_moved = true; }
|
||||||
MoveChecker& operator=( MoveChecker&& rhs ) {
|
MoveChecker& operator=( MoveChecker&& rhs ) noexcept {
|
||||||
rhs.has_moved = true;
|
rhs.has_moved = true;
|
||||||
return *this;
|
return *this;
|
||||||
}
|
}
|
||||||
|
@ -163,7 +163,7 @@ namespace {
|
|||||||
std::vector<std::string>& recorder,
|
std::vector<std::string>& recorder,
|
||||||
Catch::IConfig const* config ):
|
Catch::IConfig const* config ):
|
||||||
EventListenerBase( config ),
|
EventListenerBase( config ),
|
||||||
m_witness( witness ),
|
m_witness( CATCH_MOVE(witness) ),
|
||||||
m_recorder( recorder )
|
m_recorder( recorder )
|
||||||
{}
|
{}
|
||||||
|
|
||||||
@ -181,7 +181,7 @@ namespace {
|
|||||||
std::vector<std::string>& recorder,
|
std::vector<std::string>& recorder,
|
||||||
Catch::ReporterConfig&& config ):
|
Catch::ReporterConfig&& config ):
|
||||||
StreamingReporterBase( CATCH_MOVE(config) ),
|
StreamingReporterBase( CATCH_MOVE(config) ),
|
||||||
m_witness( witness ),
|
m_witness( CATCH_MOVE(witness) ),
|
||||||
m_recorder( recorder )
|
m_recorder( recorder )
|
||||||
{}
|
{}
|
||||||
|
|
||||||
|
@ -890,7 +890,7 @@ struct MatcherA : Catch::Matchers::MatcherGenericBase {
|
|||||||
return "equals: (int) 1 or (string) \"1\"";
|
return "equals: (int) 1 or (string) \"1\"";
|
||||||
}
|
}
|
||||||
bool match( int i ) const { return i == 1; }
|
bool match( int i ) const { return i == 1; }
|
||||||
bool match( std::string s ) const { return s == "1"; }
|
bool match( std::string const& s ) const { return s == "1"; }
|
||||||
};
|
};
|
||||||
|
|
||||||
struct MatcherB : Catch::Matchers::MatcherGenericBase {
|
struct MatcherB : Catch::Matchers::MatcherGenericBase {
|
||||||
|
Loading…
Reference in New Issue
Block a user