| 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_MESSAGE_INFO_HPP_INCLUDED |
|
9
|
|
|
|
|
|
|
#define CATCH_MESSAGE_INFO_HPP_INCLUDED |
|
10
|
|
|
|
|
|
|
|
|
11
|
|
|
|
|
|
|
#include |
|
12
|
|
|
|
|
|
|
#include |
|
13
|
|
|
|
|
|
|
#include |
|
14
|
|
|
|
|
|
|
|
|
15
|
|
|
|
|
|
|
#include |
|
16
|
|
|
|
|
|
|
|
|
17
|
|
|
|
|
|
|
namespace Catch { |
|
18
|
|
|
|
|
|
|
|
|
19
|
0
|
|
|
|
|
|
struct MessageInfo { |
|
20
|
|
|
|
|
|
|
MessageInfo( StringRef _macroName, |
|
21
|
|
|
|
|
|
|
SourceLineInfo const& _lineInfo, |
|
22
|
|
|
|
|
|
|
ResultWas::OfType _type ); |
|
23
|
|
|
|
|
|
|
|
|
24
|
|
|
|
|
|
|
StringRef macroName; |
|
25
|
|
|
|
|
|
|
std::string message; |
|
26
|
|
|
|
|
|
|
SourceLineInfo lineInfo; |
|
27
|
|
|
|
|
|
|
ResultWas::OfType type; |
|
28
|
|
|
|
|
|
|
unsigned int sequence; |
|
29
|
|
|
|
|
|
|
|
|
30
|
|
|
|
|
|
|
bool operator == (MessageInfo const& other) const { |
|
31
|
|
|
|
|
|
|
return sequence == other.sequence; |
|
32
|
|
|
|
|
|
|
} |
|
33
|
|
|
|
|
|
|
bool operator < (MessageInfo const& other) const { |
|
34
|
|
|
|
|
|
|
return sequence < other.sequence; |
|
35
|
|
|
|
|
|
|
} |
|
36
|
|
|
|
|
|
|
private: |
|
37
|
|
|
|
|
|
|
static unsigned int globalCount; |
|
38
|
|
|
|
|
|
|
}; |
|
39
|
|
|
|
|
|
|
|
|
40
|
|
|
|
|
|
|
} // end namespace Catch |
|
41
|
|
|
|
|
|
|
|
|
42
|
|
|
|
|
|
|
#endif // CATCH_MESSAGE_INFO_HPP_INCLUDED |