#include <catch_test_case_info.h>
|
enum | SpecialProperties {
None = 0
, IsHidden = 1 << 1
, ShouldFail = 1 << 2
, MayFail = 1 << 3
,
Throws = 1 << 4
, NonPortable = 1 << 5
, Benchmark = 1 << 6
, None = 0
,
IsHidden = 1 << 1
, ShouldFail = 1 << 2
, MayFail = 1 << 3
, Throws = 1 << 4
,
NonPortable = 1 << 5
, Benchmark = 1 << 6
} |
|
enum | SpecialProperties {
None = 0
, IsHidden = 1 << 1
, ShouldFail = 1 << 2
, MayFail = 1 << 3
,
Throws = 1 << 4
, NonPortable = 1 << 5
, Benchmark = 1 << 6
, None = 0
,
IsHidden = 1 << 1
, ShouldFail = 1 << 2
, MayFail = 1 << 3
, Throws = 1 << 4
,
NonPortable = 1 << 5
, Benchmark = 1 << 6
} |
|
Definition at line 4189 of file catch.hpp.
◆ SpecialProperties [1/2]
Enumerator |
---|
None | |
IsHidden | |
ShouldFail | |
MayFail | |
Throws | |
NonPortable | |
Benchmark | |
None | |
IsHidden | |
ShouldFail | |
MayFail | |
Throws | |
NonPortable | |
Benchmark | |
Definition at line 28 of file catch_test_case_info.h.
◆ SpecialProperties [2/2]
Enumerator |
---|
None | |
IsHidden | |
ShouldFail | |
MayFail | |
Throws | |
NonPortable | |
Benchmark | |
None | |
IsHidden | |
ShouldFail | |
MayFail | |
Throws | |
NonPortable | |
Benchmark | |
Definition at line 4190 of file catch.hpp.
◆ TestCaseInfo() [1/2]
Catch::TestCaseInfo::TestCaseInfo |
( |
std::string const & | _name, |
|
|
std::string const & | _className, |
|
|
std::string const & | _description, |
|
|
std::vector< std::string > const & | _tags, |
|
|
SourceLineInfo const & | _lineInfo ) |
Definition at line 113 of file catch_test_case_info.cpp.
123 {
125 }
friend void setTags(TestCaseInfo &testCaseInfo, std::vector< std::string > tags)
SpecialProperties properties
◆ TestCaseInfo() [2/2]
Catch::TestCaseInfo::TestCaseInfo |
( |
std::string const & | _name, |
|
|
std::string const & | _className, |
|
|
std::string const & | _description, |
|
|
std::vector< std::string > const & | _tags, |
|
|
SourceLineInfo const & | _lineInfo ) |
◆ expectedToFail() [1/2]
bool Catch::TestCaseInfo::expectedToFail |
( |
| ) |
const |
◆ expectedToFail() [2/2]
bool Catch::TestCaseInfo::expectedToFail |
( |
| ) |
const |
◆ isHidden() [1/2]
bool Catch::TestCaseInfo::isHidden |
( |
| ) |
const |
◆ isHidden() [2/2]
bool Catch::TestCaseInfo::isHidden |
( |
| ) |
const |
◆ okToFail() [1/2]
bool Catch::TestCaseInfo::okToFail |
( |
| ) |
const |
◆ okToFail() [2/2]
bool Catch::TestCaseInfo::okToFail |
( |
| ) |
const |
◆ tagsAsString() [1/2]
std::string Catch::TestCaseInfo::tagsAsString |
( |
| ) |
const |
Definition at line 140 of file catch_test_case_info.cpp.
140 {
142
143 std::size_t full_size = 2 *
tags.size();
144 for (
const auto& tag :
tags) {
145 full_size += tag.size();
146 }
147 ret.reserve(full_size);
148 for (
const auto& tag :
tags) {
152 }
153
155 }
std::vector< std::string > tags
◆ tagsAsString() [2/2]
std::string Catch::TestCaseInfo::tagsAsString |
( |
| ) |
const |
◆ throws() [1/2]
bool Catch::TestCaseInfo::throws |
( |
| ) |
const |
◆ throws() [2/2]
bool Catch::TestCaseInfo::throws |
( |
| ) |
const |
◆ setTags [1/2]
void setTags |
( |
TestCaseInfo & | testCaseInfo, |
|
|
std::vector< std::string > | tags ) |
|
friend |
Definition at line 100 of file catch_test_case_info.cpp.
100 {
103 testCaseInfo.lcaseTags.clear();
104
105 for(
auto const& tag :
tags ) {
106 std::string lcaseTag =
toLower( tag );
108 testCaseInfo.lcaseTags.push_back( lcaseTag );
109 }
110 testCaseInfo.tags = std::move(
tags);
111 }
std::string toLower(std::string const &s)
◆ setTags [2/2]
void setTags |
( |
TestCaseInfo & | testCaseInfo, |
|
|
std::vector< std::string > | tags ) |
|
friend |
Definition at line 100 of file catch_test_case_info.cpp.
100 {
103 testCaseInfo.lcaseTags.clear();
104
105 for(
auto const& tag :
tags ) {
106 std::string lcaseTag =
toLower( tag );
108 testCaseInfo.lcaseTags.push_back( lcaseTag );
109 }
110 testCaseInfo.tags = std::move(
tags);
111 }
◆ className
std::string Catch::TestCaseInfo::className |
◆ description
std::string Catch::TestCaseInfo::description |
◆ lcaseTags
std::vector< std::string > Catch::TestCaseInfo::lcaseTags |
◆ lineInfo
◆ name
std::string Catch::TestCaseInfo::name |
◆ properties
◆ tags
std::vector< std::string > Catch::TestCaseInfo::tags |
The documentation for this struct was generated from the following files: