2 #include <gtest/gtest.h> 8 virtual bool read(
const uint16_t &sw) {
return false; }
12 typedef ::testing::Types<uint8_t, int8_t, uint16_t, int16_t, uint32_t, int32_t, uint64_t, int64_t>
MyTypes;
17 ASSERT_FALSE(this->
setTarget(std::numeric_limits<double>::quiet_NaN()));
29 double max =
static_cast<double>(std::numeric_limits<TypeParam>::max());
42 double min =
static_cast<double>(std::numeric_limits<TypeParam>::min());
54 int main(
int argc,
char **argv){
55 testing::InitGoogleTest(&argc, argv);
56 return RUN_ALL_TESTS();
ModeTargetHelper(uint16_t mode)
virtual bool write(canopen::Mode::OpModeAccesser &cw)
TYPED_TEST_CASE(ModeTargetHelperTest, MyTypes)
int main(int argc, char **argv)
TYPED_TEST(ModeTargetHelperTest, CheckNaN)
virtual bool read(const uint16_t &sw)
::testing::Types< uint8_t, int8_t, uint16_t, int16_t, uint32_t, int32_t, uint64_t, int64_t > MyTypes
virtual bool setTarget(const double &val)