Back to home page

EIC code displayed by LXR

 
 

    


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

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_REPORTER_AUTOMAKE_HPP_INCLUDED
0009 #define CATCH_REPORTER_AUTOMAKE_HPP_INCLUDED
0010 
0011 #include <catch2/reporters/catch_reporter_streaming_base.hpp>
0012 #include <catch2/internal/catch_move_and_forward.hpp>
0013 
0014 #include <string>
0015 
0016 namespace Catch {
0017 
0018     class AutomakeReporter final : public StreamingReporterBase {
0019     public:
0020         // GCC5 compat: we cannot use inherited constructor, because it
0021         //              doesn't implement backport of P0136
0022         AutomakeReporter(ReporterConfig&& _config):
0023             StreamingReporterBase(CATCH_MOVE(_config))
0024         {}
0025         ~AutomakeReporter() override;
0026 
0027         static std::string getDescription() {
0028             using namespace std::string_literals;
0029             return "Reports test results in the format of Automake .trs files"s;
0030         }
0031 
0032         void testCaseEnded(TestCaseStats const& _testCaseStats) override;
0033         void skipTest(TestCaseInfo const& testInfo) override;
0034     };
0035 
0036 } // end namespace Catch
0037 
0038 #endif // CATCH_REPORTER_AUTOMAKE_HPP_INCLUDED