Classes | Namespaces | Functions | Variables
unittest_modbus_check_ip_connection.cpp File Reference
#include <gtest/gtest.h>
#include <numeric>
#include <modbus/modbus.h>
#include <prbt_hardware_support/libmodbus_client.h>
#include <prbt_hardware_support/modbus_check_ip_connection.h>
#include <prbt_hardware_support/pilz_modbus_server_mock.h>
#include <prbt_hardware_support/pilz_modbus_exceptions.h>
#include <prbt_hardware_support/client_tests_common.h>
Include dependency graph for unittest_modbus_check_ip_connection.cpp:

Go to the source code of this file.

Classes

class  modbus_socket_connection_check_test::ModbusConnectionCheckTestsuite
 

Namespaces

 modbus_socket_connection_check_test
 

Functions

int main (int argc, char *argv[])
 
 modbus_socket_connection_check_test::TEST_F (ModbusConnectionCheckTestsuite, testReactionToCorrectConnection)
 
 modbus_socket_connection_check_test::TEST_F (ModbusConnectionCheckTestsuite, testReactionToIncorrectPort)
 
 modbus_socket_connection_check_test::TEST_F (ModbusConnectionCheckTestsuite, testReactionToIncorrectIP)
 
 modbus_socket_connection_check_test::TEST_F (ModbusConnectionCheckTestsuite, testReactionToIncorrectPortAndIncorrectIP)
 

Variables

constexpr unsigned int modbus_socket_connection_check_test::DEFAULT_REGISTER_SIZE { 514 }
 
constexpr unsigned int modbus_socket_connection_check_test::DEFAULT_WRITE_IDX { 512 }
 
constexpr unsigned int modbus_socket_connection_check_test::END_PORT { 20700 }
 
constexpr unsigned int modbus_socket_connection_check_test::START_PORT { 20600 }
 
constexpr unsigned int modbus_socket_connection_check_test::WRONG_PORT = 4711
 

Function Documentation

◆ main()

int main ( int  argc,
char *  argv[] 
)

Definition at line 136 of file unittest_modbus_check_ip_connection.cpp.



prbt_hardware_support
Author(s):
autogenerated on Wed Nov 25 2020 03:10:38