spdlog
Loading...
Searching...
No Matches
Public Types | Public Member Functions | Public Attributes | Private Attributes | List of all members
Catch::TestCase Class Reference

Detailed Description

Definition at line 4434 of file catch.hpp.

#include <catch.hpp>

Inheritance diagram for Catch::TestCase:
[legend]

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::stringtags
 
std::vector< std::stringlcaseTags
 
SourceLineInfo lineInfo
 
SpecialProperties properties
 

Private Attributes

std::shared_ptr< ITestInvokertest
 

Member Enumeration Documentation

◆ SpecialProperties

Enumerator
None 
IsHidden 
ShouldFail 
MayFail 
Throws 
NonPortable 
Benchmark 

Definition at line 4400 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 4426 of file catch.hpp.

◆ description

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

Definition at line 4427 of file catch.hpp.

◆ lcaseTags

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

Definition at line 4429 of file catch.hpp.

◆ lineInfo

SourceLineInfo Catch::TestCaseInfo::lineInfo
inherited

Definition at line 4430 of file catch.hpp.

◆ name

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

Definition at line 4425 of file catch.hpp.

◆ properties

SpecialProperties Catch::TestCaseInfo::properties
inherited

Definition at line 4431 of file catch.hpp.

◆ tags

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

Definition at line 4428 of file catch.hpp.

◆ test

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

Definition at line 4449 of file catch.hpp.


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