Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-01-30 10:02:48

0001 
0002 //              Copyright Catch2 Authors
0003 // Distributed under the Boost Software License, Version 1.0.
0004 //   (See accompanying file LICENSE.txt or copy at
0005 //        https://www.boost.org/LICENSE_1_0.txt)
0006 
0007 // SPDX-License-Identifier: BSL-1.0
0008 #ifndef CATCH_INTERFACES_TESTCASE_HPP_INCLUDED
0009 #define CATCH_INTERFACES_TESTCASE_HPP_INCLUDED
0010 
0011 #include <vector>
0012 
0013 namespace Catch {
0014 
0015     struct TestCaseInfo;
0016     class TestCaseHandle;
0017     class IConfig;
0018 
0019     class ITestCaseRegistry {
0020     public:
0021         virtual ~ITestCaseRegistry(); // = default
0022         // TODO: this exists only for adding filenames to test cases -- let's expose this in a saner way later
0023         virtual std::vector<TestCaseInfo* > const& getAllInfos() const = 0;
0024         virtual std::vector<TestCaseHandle> const& getAllTests() const = 0;
0025         virtual std::vector<TestCaseHandle> const& getAllTestsSorted( IConfig const& config ) const = 0;
0026     };
0027 
0028 }
0029 
0030 #endif // CATCH_INTERFACES_TESTCASE_HPP_INCLUDED