ifw-daq
2.1.0-pre1
IFW Data Acquisition modules
Main Page
Related Pages
Modules
Namespaces
Namespace List
Namespace Members
All
a
c
d
e
f
g
h
i
j
k
l
m
n
o
p
r
s
t
u
v
w
Functions
a
c
d
e
f
g
h
i
k
l
m
n
o
p
r
s
t
u
w
Variables
a
c
e
h
i
k
l
m
n
p
r
s
t
v
Typedefs
Enumerations
Enumerator
Classes
Class List
Class Index
Class Hierarchy
Class Members
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
~
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
w
~
Variables
a
b
c
d
e
f
h
i
j
k
l
m
n
o
p
r
s
t
v
w
Typedefs
a
c
d
e
h
k
m
p
r
s
t
v
Enumerations
Enumerator
Related Functions
Files
File List
File Members
All
b
c
d
e
g
j
m
o
p
s
t
Functions
c
m
o
p
s
t
Variables
Typedefs
Macros
•
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Modules
Pages
common
utSupport
src
include
daq
test
expect.hpp
Go to the documentation of this file.
1
/**
2
* @file
3
* @ingroup daq_test
4
* @copyright ESO - European Southern Observatory
5
*/
6
#ifndef DAQ_TEST_EXPECT_HPP
7
#define DAQ_TEST_EXPECT_HPP
8
9
#include <
daq/error/report.hpp
>
10
11
/**
12
* Expect that stmt throws exception of type etype
13
* and that the exception message matches matcher.
14
*/
15
#define EXPECT_THROW_WITH_MESSAGE(stmt, etype, matcher) \
16
EXPECT_THROW( \
17
try { stmt; } catch (const etype& ex) { \
18
std::stringstream ss; \
19
daq::error::ReportNestedExceptions(ss, ex); \
20
EXPECT_THAT(ss.str(), matcher); \
21
throw; \
22
}, \
23
etype)
24
#endif // #ifndef DAQ_TEST_EXPECT_HPP
report.hpp
Generated by
1.8.20