Agora  1.2.0
Agora project
Catch::TestCaseInfo Struct Reference

#include <catch.hpp>

Inheritance diagram for Catch::TestCaseInfo:
Collaboration diagram for Catch::TestCaseInfo:

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

 TestCaseInfo (std::string const &_name, std::string const &_className, std::string const &_description, std::vector< std::string > const &_tags, SourceLineInfo const &_lineInfo)
 
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
 

Friends

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

Member Enumeration Documentation

◆ SpecialProperties

Enumerator
None 
IsHidden 
ShouldFail 
MayFail 
Throws 
NonPortable 
Benchmark 

Constructor & Destructor Documentation

◆ TestCaseInfo()

Catch::TestCaseInfo::TestCaseInfo ( std::string const &  _name,
std::string const &  _className,
std::string const &  _description,
std::vector< std::string > const &  _tags,
SourceLineInfo const &  _lineInfo 
)

Member Function Documentation

◆ expectedToFail()

bool Catch::TestCaseInfo::expectedToFail ( ) const

◆ isHidden()

bool Catch::TestCaseInfo::isHidden ( ) const

◆ okToFail()

bool Catch::TestCaseInfo::okToFail ( ) const

◆ tagsAsString()

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

◆ throws()

bool Catch::TestCaseInfo::throws ( ) const

Friends And Related Function Documentation

◆ setTags

void setTags ( TestCaseInfo testCaseInfo,
std::vector< std::string >  tags 
)
friend

Member Data Documentation

◆ className

std::string Catch::TestCaseInfo::className

◆ description

std::string Catch::TestCaseInfo::description

◆ lcaseTags

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

◆ lineInfo

SourceLineInfo Catch::TestCaseInfo::lineInfo

◆ name

std::string Catch::TestCaseInfo::name

◆ properties

SpecialProperties Catch::TestCaseInfo::properties

◆ tags

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

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