9 #include <gtest/gtest.h>
11 #include <fmt/format.h>
12 #include <fmt/ostream.h>
17 EXPECT_EQ(
"NotStarted", fmt::format(
"{}", State::NotStarted));
18 EXPECT_EQ(
"Starting", fmt::format(
"{}", State::Starting));
19 EXPECT_EQ(
"Acquiring", fmt::format(
"{}", State::Acquiring));
20 EXPECT_EQ(
"Stopping", fmt::format(
"{}", State::Stopping));
21 EXPECT_EQ(
"Stopped", fmt::format(
"{}", State::Stopped));
23 EXPECT_EQ(
"NotScheduled", fmt::format(
"{}", State::NotScheduled));
24 EXPECT_EQ(
"Scheduled", fmt::format(
"{}", State::Scheduled));
25 EXPECT_EQ(
"Transferring", fmt::format(
"{}", State::Transferring));
26 EXPECT_EQ(
"Merging", fmt::format(
"{}", State::Merging));
27 EXPECT_EQ(
"Releasing", fmt::format(
"{}", State::Releasing));
29 EXPECT_EQ(
"AbortingAcquiring", fmt::format(
"{}", State::AbortingAcquiring));
30 EXPECT_EQ(
"AbortingMerging", fmt::format(
"{}", State::AbortingMerging));
31 EXPECT_EQ(
"Aborted", fmt::format(
"{}", State::Aborted));
33 EXPECT_EQ(
"Completed", fmt::format(
"{}", State::Completed));
38 auto standard_without_final = {State::NotStarted,
66 for (
auto state : standard_without_final) {
TEST(State, IsStateValid)
Declares daq::State and related functions.
bool IsSubsequentState(State state1, State state2) noexcept
Compares states and returns whether state1 occurs after state2.
State
Observable states of the data acquisition process.
EXPECT_EQ(meta.rr_uri, "zpb.rr://meta")