mirror of
https://github.com/catchorg/Catch2.git
synced 2025-06-04 19:08:12 +00:00
Renamed TestCaseInfo -> TestCase
This commit is contained in:
parent
37f3820747
commit
06a671a349
21 changed files with 146 additions and 95 deletions
|
@ -64,7 +64,7 @@ namespace Catch {
|
|||
return m_filterType;
|
||||
}
|
||||
|
||||
bool shouldInclude( const TestCaseInfo& testCase ) const {
|
||||
bool shouldInclude( const TestCase& testCase ) const {
|
||||
return isMatch( testCase ) == (m_filterType == IfFilterMatches::IncludeTests);
|
||||
}
|
||||
private:
|
||||
|
@ -74,7 +74,7 @@ namespace Catch {
|
|||
#pragma clang diagnostic ignored "-Wunreachable-code"
|
||||
#endif
|
||||
|
||||
bool isMatch( const TestCaseInfo& testCase ) const {
|
||||
bool isMatch( const TestCase& testCase ) const {
|
||||
const std::string& name = testCase.getName();
|
||||
|
||||
switch( m_wildcardPosition ) {
|
||||
|
@ -121,7 +121,7 @@ namespace Catch {
|
|||
m_tagExpressions.push_back( exp );
|
||||
}
|
||||
|
||||
bool shouldInclude( const TestCaseInfo& testCase ) const {
|
||||
bool shouldInclude( const TestCase& testCase ) const {
|
||||
if( !m_tagExpressions.empty() ) {
|
||||
std::vector<TagExpression>::const_iterator it = m_tagExpressions.begin();
|
||||
std::vector<TagExpression>::const_iterator itEnd = m_tagExpressions.end();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue