Wire Sysio
Wire Sysion 1.0.0
Loading...
Searching...
No Matches
catch_result_type.cpp
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
9
#include "
catch_result_type.h
"
10
11
namespace
Catch
{
12
13
bool
isOk
(
ResultWas::OfType
resultType ) {
14
return
( resultType &
ResultWas::FailureBit
) == 0;
15
}
16
bool
isJustInfo
(
int
flags
) {
17
return
flags
==
ResultWas::Info
;
18
}
19
20
ResultDisposition::Flags
operator |
(
ResultDisposition::Flags
lhs,
ResultDisposition::Flags
rhs ) {
21
return
static_cast<
ResultDisposition::Flags
>
(
static_cast<
int
>
( lhs ) |
static_cast<
int
>
( rhs ) );
22
}
23
24
bool
shouldContinueOnFailure
(
int
flags
) {
return
(
flags
&
ResultDisposition::ContinueOnFailure
) != 0; }
25
bool
shouldSuppressFailure
(
int
flags
) {
return
(
flags
&
ResultDisposition::SuppressFail
) != 0; }
26
27
}
// end namespace Catch
catch_result_type.h
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::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::Flags
Flags
Definition
catch_result_type.h:39
Catch::ResultDisposition::ContinueOnFailure
@ ContinueOnFailure
Definition
catch_result_type.h:42
Catch::ResultDisposition::SuppressFail
@ SuppressFail
Definition
catch_result_type.h:44
Catch::ResultWas::OfType
OfType
Definition
catch_result_type.h:14
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.cpp
Generated by
1.12.0