ifw-daq  2.1.0-pre1
IFW Data Acquisition modules
testDpPart.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 Unit test for `daq::DpPart`
7  */
8 #include <daq/dpPart.hpp>
9 
10 #include <gtest/gtest.h>
11 
12 TEST(TestDpPart, Constructors) {
13  daq::DpPart p1;
14  auto p2 = p1;
15  auto p3(p2);
16  auto p4(std::move(p2));
17  auto p5 = std::move(p3);
18 }
19 
20 TEST(TestDpPart, Comparison) {
21  daq::DpPart p1;
22  daq::DpPart p2;
23  daq::DpPart p3;
24  p3.origin = "baz";
25  EXPECT_EQ(p1, p2);
26  EXPECT_NE(p1, p3);
27 }
TEST
TEST(TestDpPart, Constructors)
Definition: testDpPart.cpp:12
daq::DpPart::origin
std::string origin
Component/process origin of the file.
Definition: dpPart.hpp:41
dpPart.hpp
Contains declaration for DpPart.
daq::DpPart
Provides information of the location and origin of a FITS file or keywords produced by a data acquisi...
Definition: dpPart.hpp:26