#include <boost/property_tree/ptree.hpp>
#include <canopen_master/objdict.h>
#include <gtest/gtest.h>
Go to the source code of this file.
|
typedef ::testing::Types< uint8_t, uint16_t, uint32_t, uint64_t > | PosTypes |
|
|
int | main (int argc, char **argv) |
|
template<typename T > |
canopen::HoldAny | parse_int (boost::property_tree::iptree &pt, const std::string &key) |
|
template<typename T > |
canopen::HoldAny | prepare_test (const std::string &str) |
|
void | set_access (canopen::ObjectDict::Entry &entry, std::string access) |
|
| TEST (TestAccessString, TestConst) |
|
| TEST (TestAccessString, TestRO) |
|
| TEST (TestAccessString, TestRW) |
|
| TEST (TestAccessString, TestWO) |
|
| TEST (TestHex, checkCamelCase) |
|
| TEST (TestHex, checkCommonObjects) |
|
| TEST (TestHex, checkNodeCamelCase) |
|
| TEST (TestHex, checkNodeSpaces) |
|
| TEST (TestHex, checkSpaces) |
|
void | testAccess (bool c, bool r, bool w, const char *variants[]) |
|
| TYPED_TEST (TestHexTypes, checkZero) |
|
| TYPED_TEST_CASE (TestHexTypes, PosTypes) |
|
◆ PosTypes
typedef ::testing::Types<uint8_t, uint16_t, uint32_t, uint64_t> PosTypes |
◆ main()
int main |
( |
int |
argc, |
|
|
char ** |
argv |
|
) |
| |
◆ parse_int()
template<typename T >
canopen::HoldAny parse_int |
( |
boost::property_tree::iptree & |
pt, |
|
|
const std::string & |
key |
|
) |
| |
◆ prepare_test()
◆ set_access()
◆ TEST() [1/9]
TEST |
( |
TestAccessString |
, |
|
|
TestConst |
|
|
) |
| |
◆ TEST() [2/9]
TEST |
( |
TestAccessString |
, |
|
|
TestRO |
|
|
) |
| |
◆ TEST() [3/9]
TEST |
( |
TestAccessString |
, |
|
|
TestRW |
|
|
) |
| |
◆ TEST() [4/9]
TEST |
( |
TestAccessString |
, |
|
|
TestWO |
|
|
) |
| |
◆ TEST() [5/9]
TEST |
( |
TestHex |
, |
|
|
checkCamelCase |
|
|
) |
| |
◆ TEST() [6/9]
TEST |
( |
TestHex |
, |
|
|
checkCommonObjects |
|
|
) |
| |
◆ TEST() [7/9]
TEST |
( |
TestHex |
, |
|
|
checkNodeCamelCase |
|
|
) |
| |
◆ TEST() [8/9]
TEST |
( |
TestHex |
, |
|
|
checkNodeSpaces |
|
|
) |
| |
◆ TEST() [9/9]
TEST |
( |
TestHex |
, |
|
|
checkSpaces |
|
|
) |
| |
◆ testAccess()
void testAccess |
( |
bool |
c, |
|
|
bool |
r, |
|
|
bool |
w, |
|
|
const char * |
variants[] |
|
) |
| |
◆ TYPED_TEST()
◆ TYPED_TEST_CASE()