3#include <catch2/catch_all.hpp>
7TEST_CASE(
"Success::from(Assignment)",
"[Protocol][Protocol::Message]")
9 auto identifier = GENERATE(
"x",
"it",
"long_identifier");
25 auto valueOverride = GENERATE(
36TEST_CASE(
"Success::from(Inquiry)",
"[Protocol][Protocol::Message]")
38 auto identifier = GENERATE(
"x",
"it",
"long_identifier");
52TEST_CASE(
"Success::from(Command)",
"[Protocol][Protocol::Message]")
54 auto identifier = GENERATE(
"x",
"it",
"long_identifier");
std::variant< int, double, std::string > protocol_value_t
Variant type representing protocol values that can be one of several types.
Represents an assignment operation in the protocol.
Represents a command invocation in the protocol.
Represents a value inquiry in the protocol.
static Success from(const Assignment &msg, std::optional< irsol::types::protocol_value_t > overrideValue=std::nullopt)
Creates a success message from an Assignment.
Protocol success message representation.
CHECK_FALSE(result.hasBody())
CHECK(result.identifier==identifier)
irsol::protocol::Assignment assignment