#include <catch_test_case_registry_impl.h>
◆ ~TestRegistry()
virtual Catch::TestRegistry::~TestRegistry |
( |
| ) |
|
|
virtualdefault |
◆ getAllTests()
std::vector< TestCase > const & Catch::TestRegistry::getAllTests |
( |
| ) |
const |
|
overridevirtual |
◆ getAllTestsSorted()
std::vector< TestCase > const & Catch::TestRegistry::getAllTestsSorted |
( |
IConfig const & | config | ) |
const |
|
overridevirtual |
Implements Catch::ITestCaseRegistry.
Definition at line 82 of file catch_test_case_registry_impl.cpp.
82 {
83 if( m_sortedFunctions.empty() )
85
86 if( m_currentSortOrder !=
config.runOrder() || m_sortedFunctions.empty() ) {
88 m_currentSortOrder =
config.runOrder();
89 }
90 return m_sortedFunctions;
91 }
void enforceNoDuplicateTestCases(std::vector< TestCase > const &functions)
std::vector< TestCase > sortTests(IConfig const &config, std::vector< TestCase > const &unsortedTestCases)
◆ registerTest()
void Catch::TestRegistry::registerTest |
( |
TestCase const & | testCase | ) |
|
|
virtual |
Definition at line 69 of file catch_test_case_registry_impl.cpp.
69 {
70 std::string
name = testCase.getTestCaseInfo().name;
72 ReusableStringStream rss;
73 rss << "Anonymous test case " << ++m_unnamedCount;
75 }
76 m_functions.push_back( testCase );
77 }
virtual void registerTest(TestCase const &testCase)
The documentation for this class was generated from the following files: