9#include <gmock/gmock.h>
10#include <gtest/gtest.h>
12using namespace ::testing;
16TEST(TestDaqContext, Files) {
19 EXPECT_TRUE(ctx.
results.empty());
21 std::vector<DpPart> files1{{
"origin1",
"path1"}, {
"origin2",
"path2"}};
22 std::vector<DpPart> files2{{
"origin3",
"path3"}};
25 EXPECT_FALSE(ctx.
results.empty());
33 files3.insert(files3.end(), files2.begin(), files2.end());
37MATCHER_P2(KeywordEq, name, type,
"keyword name and type equality") {
39 *result_listener <<
"keyword is " << (arg);
40 return kw.name == name && kw.type == type;
43TEST(TestDaqContext, Keywords) {
Represents the literal 80-character FITS keyword record.
Contains declaration of daq::Context.
constexpr KeywordNameView GetKeywordName(EsoKeyword const &keyword) noexcept
Get keyword name from keyword.
@ Eso
An ESO hiearchical keyword.
std::vector< KeywordVariant > KeywordVector
Vector of keywords.
BasicKeyword< EsoKeywordTraits > EsoKeyword
ESO hiearchical keyword.
void UpdateKeywords(fits::KeywordVector &out, fits::KeywordVector const &in, fits::KeywordFormatter const &fmt)
Updates (adds or replaces) primary HDU keywords.
void AddDpParts(DaqContext &ctx, std::vector< DpPart > const &parts)
MATCHER_P2(KeywordEq, name, type, "keyword name and type equality")
TEST(TestDaqContext, Files)
Structure carrying context needed to start a Data Acquisition and construct a Data Product Specificat...
DpParts results
Results from Data Acquisition (FITS files and keywords).
std::vector< daq::fits::KeywordVariant > keywords
Keyword list provided by OCM to Data Product.
A type safe version of LiteralKeyword that consist of the three basic components of a FITS keyword ke...
EXPECT_EQ(meta.rr_uri, "zpb.rr://meta")