API
Catch::TestCase Class Reference

#include <catch.hpp>

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

Public Types

enum  SpecialProperties {
  None = 0 , IsHidden = 1 << 1 , ShouldFail = 1 << 2 , MayFail = 1 << 3 ,
  Throws = 1 << 4 , NonPortable = 1 << 5 , Benchmark = 1 << 6
}
 

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
 
bool isHidden () const
 
bool throws () const
 
bool okToFail () const
 
bool expectedToFail () const
 
std::string tagsAsString () const
 

Public Attributes

std::string name
 
std::string className
 
std::string description
 
std::vector< std::string > tags
 
std::vector< std::string > lcaseTags
 
SourceLineInfo lineInfo
 
SpecialProperties properties
 

Private Attributes

std::shared_ptr< ITestInvokertest
 

Detailed Description

Definition at line 4807 of file catch.hpp.

Member Enumeration Documentation

◆ SpecialProperties

Enumerator
None 
IsHidden 
ShouldFail 
MayFail 
Throws 
NonPortable 
Benchmark 

Definition at line 4773 of file catch.hpp.

Constructor & Destructor Documentation

◆ TestCase()

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

Member Function Documentation

◆ expectedToFail()

bool Catch::TestCaseInfo::expectedToFail ( ) const
inherited

◆ getTestCaseInfo()

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

◆ invoke()

void Catch::TestCase::invoke ( ) const

◆ isHidden()

bool Catch::TestCaseInfo::isHidden ( ) const
inherited

◆ okToFail()

bool Catch::TestCaseInfo::okToFail ( ) const
inherited

◆ operator<()

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

◆ operator==()

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

◆ tagsAsString()

std::string Catch::TestCaseInfo::tagsAsString ( ) const
inherited

◆ throws()

bool Catch::TestCaseInfo::throws ( ) const
inherited

◆ withName()

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

Member Data Documentation

◆ className

std::string Catch::TestCaseInfo::className
inherited

Definition at line 4799 of file catch.hpp.

◆ description

std::string Catch::TestCaseInfo::description
inherited

Definition at line 4800 of file catch.hpp.

◆ lcaseTags

std::vector<std::string> Catch::TestCaseInfo::lcaseTags
inherited

Definition at line 4802 of file catch.hpp.

◆ lineInfo

SourceLineInfo Catch::TestCaseInfo::lineInfo
inherited

Definition at line 4803 of file catch.hpp.

◆ name

std::string Catch::TestCaseInfo::name
inherited

Definition at line 4798 of file catch.hpp.

◆ properties

◆ tags

std::vector<std::string> Catch::TestCaseInfo::tags
inherited

Definition at line 4801 of file catch.hpp.

◆ test

std::shared_ptr<ITestInvoker> Catch::TestCase::test
private

Definition at line 4822 of file catch.hpp.


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