8#ifndef TWOBLUECUBES_CATCH_TEST_CASE_REGISTRY_IMPL_HPP_INCLUDED
9#define TWOBLUECUBES_CATCH_TEST_CASE_REGISTRY_IMPL_HPP_INCLUDED
25 std::vector<TestCase>
sortTests( IConfig
const&
config, std::vector<TestCase>
const& unsortedTestCases );
26 bool matchTest( TestCase
const& testCase, TestSpec
const& testSpec, IConfig
const&
config );
30 std::vector<TestCase>
filterTests( std::vector<TestCase>
const& testCases, TestSpec
const& testSpec, IConfig
const&
config );
39 std::vector<TestCase>
const&
getAllTests()
const override;
43 std::vector<TestCase> m_functions;
45 mutable std::vector<TestCase> m_sortedFunctions;
46 std::size_t m_unnamedCount = 0;
47 std::ios_base::Init m_ostreamInit;
53 void(*m_testAsFunction)();
57 void invoke()
const override;
TestInvokerAsFunction(void(*testAsFunction)()) noexcept
void invoke() const override
virtual ~TestRegistry()=default
std::vector< TestCase > const & getAllTests() const override
virtual void registerTest(TestCase const &testCase)
std::vector< TestCase > const & getAllTestsSorted(IConfig const &config) const override
std::vector< TestCase > filterTests(std::vector< TestCase > const &testCases, TestSpec const &testSpec, IConfig const &config)
void enforceNoDuplicateTestCases(std::vector< TestCase > const &functions)
std::vector< TestCase > const & getAllTestCasesSorted(IConfig const &config)
std::string extractClassName(StringRef const &classOrQualifiedMethodName)
std::vector< TestCase > sortTests(IConfig const &config, std::vector< TestCase > const &unsortedTestCases)
bool matchTest(TestCase const &testCase, TestSpec const &testSpec, IConfig const &config)