Wire Sysio Wire Sysion 1.0.0
Loading...
Searching...
No Matches
Catch::TestCase Class Reference

#include <catch_test_case_info.h>

Inheritance diagram for Catch::TestCase:
Collaboration diagram for Catch::TestCase:

Public Member Functions

 TestCase (ITestInvoker *testCase, TestCaseInfo &&info)
 
TestCase withName (std::string const &_newName) const
 
void invoke () const
 
TestCaseInfo const & getTestCaseInfo () const
 
bool operator== (TestCase const &other) const
 
bool operator< (TestCase const &other) const
 
 TestCase (ITestInvoker *testCase, TestCaseInfo &&info)
 
TestCase withName (std::string const &_newName) const
 
void invoke () const
 
TestCaseInfo const & getTestCaseInfo () const
 
bool operator== (TestCase const &other) const
 
bool operator< (TestCase const &other) const
 
- Public Member Functions inherited from Catch::TestCaseInfo
 TestCaseInfo (std::string const &_name, std::string const &_className, std::string const &_description, std::vector< std::string > const &_tags, SourceLineInfo const &_lineInfo)
 
bool isHidden () const
 
bool throws () const
 
bool okToFail () const
 
bool expectedToFail () const
 
std::string tagsAsString () const
 
 TestCaseInfo (std::string const &_name, std::string const &_className, std::string const &_description, std::vector< std::string > const &_tags, SourceLineInfo const &_lineInfo)
 
bool isHidden () const
 
bool throws () const
 
bool okToFail () const
 
bool expectedToFail () const
 
std::string tagsAsString () const
 

Additional Inherited Members

- Public Types inherited from Catch::TestCaseInfo
enum  SpecialProperties {
  None = 0 , IsHidden = 1 << 1 , ShouldFail = 1 << 2 , MayFail = 1 << 3 ,
  Throws = 1 << 4 , NonPortable = 1 << 5 , Benchmark = 1 << 6 , None = 0 ,
  IsHidden = 1 << 1 , ShouldFail = 1 << 2 , MayFail = 1 << 3 , Throws = 1 << 4 ,
  NonPortable = 1 << 5 , Benchmark = 1 << 6
}
 
enum  SpecialProperties {
  None = 0 , IsHidden = 1 << 1 , ShouldFail = 1 << 2 , MayFail = 1 << 3 ,
  Throws = 1 << 4 , NonPortable = 1 << 5 , Benchmark = 1 << 6 , None = 0 ,
  IsHidden = 1 << 1 , ShouldFail = 1 << 2 , MayFail = 1 << 3 , Throws = 1 << 4 ,
  NonPortable = 1 << 5 , Benchmark = 1 << 6
}
 
- Public Attributes inherited from Catch::TestCaseInfo
std::string name
 
std::string className
 
std::string description
 
std::vector< std::string > tags
 
std::vector< std::string > lcaseTags
 
SourceLineInfo lineInfo
 
SpecialProperties properties
 

Detailed Description

Definition at line 4224 of file catch.hpp.

Constructor & Destructor Documentation

◆ TestCase() [1/2]

Catch::TestCase::TestCase ( ITestInvoker * testCase,
TestCaseInfo && info )

Definition at line 158 of file catch_test_case_info.cpp.

158: TestCaseInfo( std::move(info) ), test( testCase ) {}
TestCaseInfo(std::string const &_name, std::string const &_className, std::string const &_description, std::vector< std::string > const &_tags, SourceLineInfo const &_lineInfo)

◆ TestCase() [2/2]

Catch::TestCase::TestCase ( ITestInvoker * testCase,
TestCaseInfo && info )

Member Function Documentation

◆ getTestCaseInfo() [1/2]

TestCaseInfo const & Catch::TestCase::getTestCaseInfo ( ) const

Definition at line 181 of file catch_test_case_info.cpp.

182 {
183 return *this;
184 }
Here is the caller graph for this function:

◆ getTestCaseInfo() [2/2]

TestCaseInfo const & Catch::TestCase::getTestCaseInfo ( ) const

◆ invoke() [1/2]

void Catch::TestCase::invoke ( ) const

Definition at line 167 of file catch_test_case_info.cpp.

167 {
168 test->invoke();
169 }

◆ invoke() [2/2]

void Catch::TestCase::invoke ( ) const

◆ operator<() [1/2]

bool Catch::TestCase::operator< ( TestCase const & other) const

Definition at line 177 of file catch_test_case_info.cpp.

177 {
178 return name < other.name;
179 }

◆ operator<() [2/2]

bool Catch::TestCase::operator< ( TestCase const & other) const

◆ operator==() [1/2]

bool Catch::TestCase::operator== ( TestCase const & other) const

Definition at line 171 of file catch_test_case_info.cpp.

171 {
172 return test.get() == other.test.get() &&
173 name == other.name &&
174 className == other.className;
175 }

◆ operator==() [2/2]

bool Catch::TestCase::operator== ( TestCase const & other) const

◆ withName() [1/2]

TestCase Catch::TestCase::withName ( std::string const & _newName) const

Definition at line 161 of file catch_test_case_info.cpp.

161 {
162 TestCase other( *this );
163 other.name = _newName;
164 return other;
165 }
TestCase(ITestInvoker *testCase, TestCaseInfo &&info)
Here is the caller graph for this function:

◆ withName() [2/2]

TestCase Catch::TestCase::withName ( std::string const & _newName) const

The documentation for this class was generated from the following files: