Classes | Typedefs | Functions
test_parser.cpp File Reference
#include <boost/property_tree/ptree.hpp>
#include <canopen_master/objdict.h>
#include <gtest/gtest.h>
Include dependency graph for test_parser.cpp:

Go to the source code of this file.

Classes

class  TestHexTypes< T >
 

Typedefs

typedef ::testing::Types< uint8_t, uint16_t, uint32_t, uint64_t > PosTypes
 

Functions

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)
 

Typedef Documentation

◆ PosTypes

typedef ::testing::Types<uint8_t, uint16_t, uint32_t, uint64_t> PosTypes

Definition at line 27 of file test_parser.cpp.

Function Documentation

◆ main()

int main ( int  argc,
char **  argv 
)

Definition at line 152 of file test_parser.cpp.

◆ parse_int()

template<typename T >
canopen::HoldAny parse_int ( boost::property_tree::iptree &  pt,
const std::string &  key 
)

Definition at line 138 of file objdict.cpp.

◆ prepare_test()

template<typename T >
canopen::HoldAny prepare_test ( const std::string &  str)

Definition at line 11 of file test_parser.cpp.

◆ set_access()

void set_access ( canopen::ObjectDict::Entry entry,
std::string  access 
)

Definition at line 83 of file objdict.cpp.

◆ TEST() [1/9]

TEST ( TestAccessString  ,
TestConst   
)

Definition at line 143 of file test_parser.cpp.

◆ TEST() [2/9]

TEST ( TestAccessString  ,
TestRO   
)

Definition at line 119 of file test_parser.cpp.

◆ TEST() [3/9]

TEST ( TestAccessString  ,
TestRW   
)

Definition at line 131 of file test_parser.cpp.

◆ TEST() [4/9]

TEST ( TestAccessString  ,
TestWO   
)

Definition at line 125 of file test_parser.cpp.

◆ TEST() [5/9]

TEST ( TestHex  ,
checkCamelCase   
)

Definition at line 42 of file test_parser.cpp.

◆ TEST() [6/9]

TEST ( TestHex  ,
checkCommonObjects   
)

Definition at line 78 of file test_parser.cpp.

◆ TEST() [7/9]

TEST ( TestHex  ,
checkNodeCamelCase   
)

Definition at line 49 of file test_parser.cpp.

◆ TEST() [8/9]

TEST ( TestHex  ,
checkNodeSpaces   
)

Definition at line 65 of file test_parser.cpp.

◆ TEST() [9/9]

TEST ( TestHex  ,
checkSpaces   
)

Definition at line 59 of file test_parser.cpp.

◆ testAccess()

void testAccess ( bool  c,
bool  r,
bool  w,
const char *  variants[] 
)

Definition at line 103 of file test_parser.cpp.

◆ TYPED_TEST()

TYPED_TEST ( TestHexTypes  ,
checkZero   
)

Definition at line 31 of file test_parser.cpp.

◆ TYPED_TEST_CASE()

TYPED_TEST_CASE ( TestHexTypes  ,
PosTypes   
)


canopen_master
Author(s): Mathias Lüdtke
autogenerated on Wed Mar 2 2022 00:52:26