ManaPlus
Public Member Functions | Private Attributes
Catch::TestCase Class Reference

#include <catch.hpp>

Inheritance diagram for Catch::TestCase:
Catch::TestCaseInfo

Public Member Functions

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

Private Attributes

Ptr< ITestCasetest
 

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
}
 
- Data Fields inherited from Catch::TestCaseInfo
std::string name
 
std::string className
 
std::string description
 
std::set< std::string > tags
 
std::set< std::string > lcaseTags
 
std::string tagsAsString
 
SourceLineInfo lineInfo
 
SpecialProperties properties
 

Detailed Description

Definition at line 2851 of file catch.hpp.

Constructor & Destructor Documentation

◆ TestCase() [1/2]

Catch::TestCase::TestCase ( ITestCase testCase,
TestCaseInfo const &  info 
)

◆ TestCase() [2/2]

Catch::TestCase::TestCase ( TestCase const &  other)

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=()

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

◆ operator==()

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

◆ swap()

void Catch::TestCase::swap ( TestCase other)

◆ withName()

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

Field Documentation

◆ test

Ptr<ITestCase> Catch::TestCase::test
private

Definition at line 2869 of file catch.hpp.


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