Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-01-18 09:54:08

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_SECTION_INFO_HPP_INCLUDED
0009 #define CATCH_SECTION_INFO_HPP_INCLUDED
0010 
0011 #include <catch2/internal/catch_move_and_forward.hpp>
0012 #include <catch2/internal/catch_source_line_info.hpp>
0013 #include <catch2/internal/catch_stringref.hpp>
0014 #include <catch2/catch_totals.hpp>
0015 
0016 #include <string>
0017 
0018 namespace Catch {
0019 
0020     struct SectionInfo {
0021         // The last argument is ignored, so that people can write
0022         // SECTION("ShortName", "Proper description that is long") and
0023         // still use the `-c` flag comfortably.
0024         SectionInfo( SourceLineInfo const& _lineInfo, std::string _name,
0025                     const char* const = nullptr ):
0026             name(CATCH_MOVE(_name)),
0027             lineInfo(_lineInfo)
0028             {}
0029 
0030         std::string name;
0031         SourceLineInfo lineInfo;
0032     };
0033 
0034     struct SectionEndInfo {
0035         SectionInfo sectionInfo;
0036         Counts prevAssertions;
0037         double durationInSeconds;
0038     };
0039 
0040 } // end namespace Catch
0041 
0042 #endif // CATCH_SECTION_INFO_HPP_INCLUDED