ManaPlus
Public Types | Public Member Functions | Data Fields | Friends
Catch::TestCaseInfo Struct Reference

#include <catch.hpp>

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

Public Types

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

Public Member Functions

 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
 

Data Fields

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
 

Friends

void setTags (TestCaseInfo &testCaseInfo, std::set< std::string > const &tags)
 

Detailed Description

Definition at line 2817 of file catch.hpp.

Member Enumeration Documentation

◆ SpecialProperties

Enumerator
None 
IsHidden 
ShouldFail 
MayFail 
Throws 

Definition at line 2818 of file catch.hpp.

2818  {
2819  None = 0,
2820  IsHidden = 1 << 1,
2821  ShouldFail = 1 << 2,
2822  MayFail = 1 << 3,
2823  Throws = 1 << 4
2824  };

Constructor & Destructor Documentation

◆ TestCaseInfo() [1/2]

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() [2/2]

Catch::TestCaseInfo::TestCaseInfo ( TestCaseInfo const &  other)

Member Function Documentation

◆ expectedToFail()

bool Catch::TestCaseInfo::expectedToFail ( ) const

◆ isHidden()

bool Catch::TestCaseInfo::isHidden ( ) const

◆ okToFail()

bool Catch::TestCaseInfo::okToFail ( ) const

◆ throws()

bool Catch::TestCaseInfo::throws ( ) const

Friends And Related Function Documentation

◆ setTags

void setTags ( TestCaseInfo testCaseInfo,
std::set< std::string > const &  tags 
)
friend

Field Documentation

◆ className

std::string Catch::TestCaseInfo::className

Definition at line 2842 of file catch.hpp.

◆ description

std::string Catch::TestCaseInfo::description

Definition at line 2843 of file catch.hpp.

◆ lcaseTags

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

Definition at line 2845 of file catch.hpp.

◆ lineInfo

SourceLineInfo Catch::TestCaseInfo::lineInfo

Definition at line 2847 of file catch.hpp.

◆ name

std::string Catch::TestCaseInfo::name

Definition at line 2841 of file catch.hpp.

◆ properties

SpecialProperties Catch::TestCaseInfo::properties

Definition at line 2848 of file catch.hpp.

◆ tags

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

Definition at line 2844 of file catch.hpp.

◆ tagsAsString

std::string Catch::TestCaseInfo::tagsAsString

Definition at line 2846 of file catch.hpp.


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