CellModules
Catch::TestCase Class Reference

#include <catch.hpp>

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

Public Types

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

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

Public Attributes

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
 

Private Attributes

Ptr< ITestCasetest
 

Detailed Description

Definition at line 2560 of file catch.hpp.

Member Enumeration Documentation

◆ SpecialProperties

Enumerator
None 
IsHidden 
ShouldFail 
MayFail 
Throws 

Definition at line 2529 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

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

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

◆ operator==()

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

◆ swap()

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

◆ 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 2551 of file catch.hpp.

◆ description

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

Definition at line 2552 of file catch.hpp.

◆ lcaseTags

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

Definition at line 2554 of file catch.hpp.

◆ lineInfo

SourceLineInfo Catch::TestCaseInfo::lineInfo
inherited

Definition at line 2556 of file catch.hpp.

◆ name

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

Definition at line 2550 of file catch.hpp.

◆ properties

SpecialProperties Catch::TestCaseInfo::properties
inherited

Definition at line 2557 of file catch.hpp.

◆ tags

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

Definition at line 2553 of file catch.hpp.

◆ tagsAsString

std::string Catch::TestCaseInfo::tagsAsString
inherited

Definition at line 2555 of file catch.hpp.

◆ test

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

Definition at line 2578 of file catch.hpp.


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