File indexing completed on 2025-01-18 09:54:08
0001
0002
0003
0004
0005
0006
0007
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
0022
0023
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 }
0041
0042 #endif