ifw-daq  2.1.0-pre1
IFW Data Acquisition modules
testException.cpp
Go to the documentation of this file.
1 /**
2  * @file
3  * @ingroup daq_ocm_libdaq_test
4  * @copyright 2022 ESO - European Southern Observatory
5  *
6  * @brief Exception test
7  */
8 #include <gtest/gtest.h>
9 #include <daq/error.hpp>
10 
11 #include <fmt/format.h>
12 #include <fmt/ostream.h>
13 
14 TEST(Exception, TestMessage) {
15  EXPECT_NO_THROW(daq::DaqSourceError("request", "source", "message").what());
16 }
17 
daq::DaqSourceError
Represents error in single source.
Definition: error.hpp:67
TEST
TEST(Exception, TestMessage)
Definition: testException.cpp:14
error.hpp
Contains error related declarations for DAQ.