7 #include <gtest/gtest.h> 15 TEST(StateEnumTest, StateEnumToIdWorksCorrectly)
26 TEST(StateEnumTest, StateIdToEnumWorksCorrectly)
37 TEST(StateEnumTest, StateEnumToNameWorksCorrectly)
47 TEST(StateEnumTest, StateNameToEnumWorksCorrectly)
TEST(StateEnumTest, StateEnumToIdWorksCorrectly)
#define ROKUBIMINI_STATE_ID_FATAL
#define ROKUBIMINI_STATE_ID_OPERATIONAL
StateEnum stateNameToEnum(const std::string &string)
Gets a state enumeration matching the state name.
#define ROKUBIMINI_STATE_NAME_FATAL
#define ROKUBIMINI_STATE_NAME_DEVICE_MISSING
#define ROKUBIMINI_STATE_NAME_NA
#define ROKUBIMINI_STATE_NAME_STANDBY
#define ROKUBIMINI_STATE_NAME_CALIBRATE
#define ROKUBIMINI_STATE_NAME_OPERATIONAL
#define ROKUBIMINI_STATE_NAME_ERROR
#define ROKUBIMINI_STATE_ID_DEVICE_MISSING
#define ROKUBIMINI_STATE_ID_CALIBRATE
uint16_t stateEnumToId(const StateEnum stateEnum)
Gets an ID matching the state enumeration.
StateEnum stateIdToEnum(uint16_t stateId)
Gets a state enumeration matching the state ID.
#define ROKUBIMINI_STATE_ID_STANDBY
#define ROKUBIMINI_STATE_ID_ERROR
#define ROKUBIMINI_STATE_ID_NA
std::string stateEnumToName(const StateEnum stateEnum)
Gets a name matching the state enumeration.