| line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
|
1
|
|
|
|
|
|
|
|
|
2
|
|
|
|
|
|
|
// Copyright Catch2 Authors |
|
3
|
|
|
|
|
|
|
// Distributed under the Boost Software License, Version 1.0. |
|
4
|
|
|
|
|
|
|
// (See accompanying file LICENSE_1_0.txt or copy at |
|
5
|
|
|
|
|
|
|
// https://www.boost.org/LICENSE_1_0.txt) |
|
6
|
|
|
|
|
|
|
|
|
7
|
|
|
|
|
|
|
// SPDX-License-Identifier: BSL-1.0 |
|
8
|
|
|
|
|
|
|
#ifndef CATCH_SECTION_INFO_HPP_INCLUDED |
|
9
|
|
|
|
|
|
|
#define CATCH_SECTION_INFO_HPP_INCLUDED |
|
10
|
|
|
|
|
|
|
|
|
11
|
|
|
|
|
|
|
#include |
|
12
|
|
|
|
|
|
|
#include |
|
13
|
|
|
|
|
|
|
#include |
|
14
|
|
|
|
|
|
|
#include |
|
15
|
|
|
|
|
|
|
|
|
16
|
|
|
|
|
|
|
#include |
|
17
|
|
|
|
|
|
|
|
|
18
|
|
|
|
|
|
|
namespace Catch { |
|
19
|
|
|
|
|
|
|
|
|
20
|
84
|
|
|
|
|
|
struct SectionInfo { |
|
21
|
|
|
|
|
|
|
// The last argument is ignored, so that people can write |
|
22
|
|
|
|
|
|
|
// SECTION("ShortName", "Proper description that is long") and |
|
23
|
|
|
|
|
|
|
// still use the `-c` flag comfortably. |
|
24
|
42
|
|
|
|
|
|
SectionInfo( SourceLineInfo const& _lineInfo, std::string _name, |
|
25
|
|
|
|
|
|
|
const char* const = nullptr ): |
|
26
|
|
|
|
|
|
|
name(CATCH_MOVE(_name)), |
|
27
|
42
|
|
|
|
|
|
lineInfo(_lineInfo) |
|
28
|
42
|
|
|
|
|
|
{} |
|
29
|
|
|
|
|
|
|
|
|
30
|
|
|
|
|
|
|
std::string name; |
|
31
|
|
|
|
|
|
|
SourceLineInfo lineInfo; |
|
32
|
|
|
|
|
|
|
}; |
|
33
|
|
|
|
|
|
|
|
|
34
|
|
|
|
|
|
|
struct SectionEndInfo { |
|
35
|
|
|
|
|
|
|
SectionInfo sectionInfo; |
|
36
|
|
|
|
|
|
|
Counts prevAssertions; |
|
37
|
|
|
|
|
|
|
double durationInSeconds; |
|
38
|
|
|
|
|
|
|
}; |
|
39
|
|
|
|
|
|
|
|
|
40
|
|
|
|
|
|
|
} // end namespace Catch |
|
41
|
|
|
|
|
|
|
|
|
42
|
|
|
|
|
|
|
#endif // CATCH_SECTION_INFO_HPP_INCLUDED |