Wire Sysio
Wire Sysion 1.0.0
Loading...
Searching...
No Matches
catch_result_type.h
Go to the documentation of this file.
1
/*
2
* Created by Phil on 07/01/2011.
3
* Copyright 2011 Two Blue Cubes Ltd. All rights reserved.
4
*
5
* Distributed under the Boost Software License, Version 1.0. (See accompanying
6
* file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
7
*/
8
#ifndef TWOBLUECUBES_CATCH_RESULT_TYPE_H_INCLUDED
9
#define TWOBLUECUBES_CATCH_RESULT_TYPE_H_INCLUDED
10
11
namespace
Catch
{
12
13
// ResultWas::OfType enum
14
struct
ResultWas
{
enum
OfType
{
15
Unknown = -1,
16
Ok
= 0,
17
Info
= 1,
18
Warning
= 2,
19
20
FailureBit
= 0x10,
21
22
ExpressionFailed
=
FailureBit
| 1,
23
ExplicitFailure
=
FailureBit
| 2,
24
25
Exception = 0x100 |
FailureBit
,
26
27
ThrewException
= Exception | 1,
28
DidntThrowException
= Exception | 2,
29
30
FatalErrorCondition
= 0x200 |
FailureBit
31
32
}; };
33
34
bool
isOk
(
ResultWas::OfType
resultType );
35
bool
isJustInfo
(
int
flags
);
36
37
38
// ResultDisposition::Flags enum
39
struct
ResultDisposition
{
enum
Flags
{
40
Normal
= 0x01,
41
42
ContinueOnFailure
= 0x02,
// Failures fail test, but execution continues
43
FalseTest
= 0x04,
// Prefix expression with !
44
SuppressFail
= 0x08
// Failures are reported but do not fail the test
45
}; };
46
47
ResultDisposition::Flags
operator |
(
ResultDisposition::Flags
lhs,
ResultDisposition::Flags
rhs );
48
49
bool
shouldContinueOnFailure
(
int
flags
);
50
inline
bool
isFalseTest
(
int
flags
) {
return
(
flags
&
ResultDisposition::FalseTest
) != 0; }
51
bool
shouldSuppressFailure
(
int
flags
);
52
53
}
// end namespace Catch
54
55
#endif
// TWOBLUECUBES_CATCH_RESULT_TYPE_H_INCLUDED
Catch
Definition
231-Cfg-OutputStreams.cpp:32
Catch::isOk
bool isOk(ResultWas::OfType resultType)
Definition
catch_result_type.cpp:13
Catch::isJustInfo
bool isJustInfo(int flags)
Definition
catch_result_type.cpp:16
Catch::shouldContinueOnFailure
bool shouldContinueOnFailure(int flags)
Definition
catch_result_type.cpp:24
Catch::isFalseTest
bool isFalseTest(int flags)
Definition
catch_result_type.h:50
Catch::operator|
ResultDisposition::Flags operator|(ResultDisposition::Flags lhs, ResultDisposition::Flags rhs)
Definition
catch_result_type.cpp:20
Catch::shouldSuppressFailure
bool shouldSuppressFailure(int flags)
Definition
catch_result_type.cpp:25
Catch::ResultDisposition
Definition
catch.hpp:1087
Catch::ResultDisposition::Flags
Flags
Definition
catch_result_type.h:39
Catch::ResultDisposition::Normal
@ Normal
Definition
catch_result_type.h:40
Catch::ResultDisposition::ContinueOnFailure
@ ContinueOnFailure
Definition
catch_result_type.h:42
Catch::ResultDisposition::SuppressFail
@ SuppressFail
Definition
catch_result_type.h:44
Catch::ResultDisposition::FalseTest
@ FalseTest
Definition
catch_result_type.h:43
Catch::ResultWas
Definition
catch.hpp:1063
Catch::ResultWas::OfType
OfType
Definition
catch_result_type.h:14
Catch::ResultWas::ExplicitFailure
@ ExplicitFailure
Definition
catch_result_type.h:23
Catch::ResultWas::Warning
@ Warning
Definition
catch_result_type.h:18
Catch::ResultWas::ThrewException
@ ThrewException
Definition
catch_result_type.h:27
Catch::ResultWas::DidntThrowException
@ DidntThrowException
Definition
catch_result_type.h:28
Catch::ResultWas::ExpressionFailed
@ ExpressionFailed
Definition
catch_result_type.h:22
Catch::ResultWas::FatalErrorCondition
@ FatalErrorCondition
Definition
catch_result_type.h:30
Catch::ResultWas::Ok
@ Ok
Definition
catch_result_type.h:16
Catch::ResultWas::FailureBit
@ FailureBit
Definition
catch_result_type.h:20
Catch::ResultWas::Info
@ Info
Definition
catch_result_type.h:17
flags
pInfo flags
Definition
yubihsm_pkcs11.c:540
libraries
sys-vm
external
Catch2
include
internal
catch_result_type.h
Generated by
1.12.0