ifw-daq 3.1.0
IFW Data Acquisition modules
Loading...
Searching...
No Matches
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
12TEST(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
20TEST(TestDpPart, Comparison) {
21 daq::DpPart p1;
22 daq::DpPart p2;
23 daq::DpPart p3;
24 p3.SourceName() = "baz";
25 EXPECT_EQ(p1, p2);
26 EXPECT_NE(p1, p3);
27}
Provides information of the location and source of a FITS file or keywords produced by a data acquisi...
Definition: dpPart.hpp:26
auto SourceName() const noexcept -> std::string const &
Source name of the part.
Definition: dpPart.hpp:44
Contains declaration for DpPart.
TEST(TestDpPart, Constructors)
Definition: testDpPart.cpp:12
EXPECT_EQ(meta.rr_uri, "zpb.rr://meta")