Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
Catch::TestCase Class Reference

#include <catch.hpp>

+ 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
 
- 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
 

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
}
 
- 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 4807 of file catch.hpp.

Constructor & Destructor Documentation

◆ TestCase()

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

Member Function Documentation

◆ getTestCaseInfo()

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

◆ invoke()

void Catch::TestCase::invoke ( ) const

◆ operator<()

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

◆ operator==()

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

◆ withName()

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

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