Classes | Functions
unittest_modbus_api_spec.cpp File Reference
#include <gtest/gtest.h>
#include <gmock/gmock.h>
#include <string>
#include <memory>
#include <prbt_hardware_support/modbus_api_spec.h>
Include dependency graph for unittest_modbus_api_spec.cpp:

Go to the source code of this file.

Classes

class  NodeHandleMock
 

Functions

int main (int argc, char **argv)
 
 TEST (ModbusApiSpecTest, testModbusApiSpecExceptionDtor)
 Test increases function coverage by ensuring that all Dtor variants are called. More...
 
 TEST (ModbusApiSpecTest, ConstructionViaInitilizerListRead)
 
 TEST (ModbusApiSpecTest, ConstructionViaInitilizerListReadNonExistent)
 
 TEST (ModbusApiSpecTest, ConstructionViaInitilizerListOverwrite)
 
 TEST (ModbusApiSpecTest, NodeHandleConstructionSimpleRead)
 
 TEST (ModbusApiSpecTest, NodeHandleConstructionMissingApiSpec)
 

Function Documentation

◆ main()

int main ( int  argc,
char **  argv 
)

Definition at line 106 of file unittest_modbus_api_spec.cpp.

◆ TEST() [1/6]

TEST ( ModbusApiSpecTest  ,
testModbusApiSpecExceptionDtor   
)

Test increases function coverage by ensuring that all Dtor variants are called.

Definition at line 40 of file unittest_modbus_api_spec.cpp.

◆ TEST() [2/6]

TEST ( ModbusApiSpecTest  ,
ConstructionViaInitilizerListRead   
)

Definition at line 45 of file unittest_modbus_api_spec.cpp.

◆ TEST() [3/6]

TEST ( ModbusApiSpecTest  ,
ConstructionViaInitilizerListReadNonExistent   
)

Definition at line 55 of file unittest_modbus_api_spec.cpp.

◆ TEST() [4/6]

TEST ( ModbusApiSpecTest  ,
ConstructionViaInitilizerListOverwrite   
)

Definition at line 63 of file unittest_modbus_api_spec.cpp.

◆ TEST() [5/6]

TEST ( ModbusApiSpecTest  ,
NodeHandleConstructionSimpleRead   
)

Definition at line 78 of file unittest_modbus_api_spec.cpp.

◆ TEST() [6/6]

TEST ( ModbusApiSpecTest  ,
NodeHandleConstructionMissingApiSpec   
)

Definition at line 92 of file unittest_modbus_api_spec.cpp.



prbt_hardware_support
Author(s):
autogenerated on Mon Feb 28 2022 23:14:34