18 #include <gtest/gtest.h> 28 rdt.
set<uint8_t>(1, 58);
32 ASSERT_TRUE(state.
parseWith(bp)) <<
"parse() returned false";
56 ASSERT_TRUE(bp.empty()) <<
"Did not consume all data";
62 rdt.
set<uint8_t>(1, 62);
65 ASSERT_TRUE(state.
parseWith(bp)) <<
"parse() returned false";
89 rdt.
skip(
sizeof(uint32_t));
91 ASSERT_TRUE(bp.empty()) <<
"Did not consume all data";
97 rdt.
set<uint8_t>(1, 62);
100 ASSERT_TRUE(state.
parseWith(bp)) <<
"parse() returned false";
123 rdt.
skip(
sizeof(uint32_t));
127 ASSERT_TRUE(bp.empty()) <<
"Did not consume all data";
135 EXPECT_FALSE(state.
parseWith(bp)) <<
"parse() should fail when buffer not big enough";
143 EXPECT_FALSE(state.
parseWith(bp)) <<
"parse() should fail when buffer not big enough";
151 EXPECT_FALSE(state.
parseWith(bp)) <<
"parse() should fail when buffer not big enough";
float master_board_temperature
std::bitset< 10 > digital_output_bits
int8_t analog_input_range1
bool euromap67_interface_installed
uint8_t three_position_enabling_device_input
BinParser getParser(bool skip=false)
std::bitset< 10 > digital_input_bits
virtual bool parseWith(BinParser &bp)
int8_t analog_output_domain0
uint8_t operational_mode_selector_input
uint8_t master_safety_state
virtual bool parseWith(BinParser &bp)
int32_t euromap_output_bits
int8_t analog_output_domain1
virtual bool parseWith(BinParser &bp)
std::bitset< 18 > digital_output_bits
TEST(MasterBoardData_V1_X, testRandomDataParsing)
void set(T data, size_t pos)
int8_t analog_input_range0
std::bitset< 18 > digital_input_bits
int32_t euromap_input_bits