#include "helper.hpp" #include #include #include #include #include #include #include namespace blobs { std::vector validateReply(ipmi::RspType> reply, bool hasData) { // Reply is in the form of // std::tuple>> EXPECT_EQ(::ipmi::ccSuccess, std::get<0>(reply)); auto actualReply = std::get<1>(reply); EXPECT_TRUE(actualReply.has_value()); auto data = std::get<0>(*actualReply); EXPECT_EQ(hasData, !data.empty()); return hasData ? data : std::vector{}; } } // namespace blobs