Classes | Namespaces | Functions | Variables
unittest_modbus_adapter_run_permitted.cpp File Reference
#include <string>
#include <vector>
#include <stdexcept>
#include <memory>
#include <functional>
#include <gtest/gtest.h>
#include <gmock/gmock.h>
#include <prbt_hardware_support/modbus_api_spec.h>
#include <prbt_hardware_support/param_names.h>
#include <prbt_hardware_support/ModbusMsgInStamped.h>
#include <prbt_hardware_support/modbus_msg_run_permitted_wrapper.h>
#include <prbt_hardware_support/modbus_msg_in_builder.h>
#include <prbt_hardware_support/modbus_adapter_run_permitted.h>
#include <prbt_hardware_support/register_container.h>
Include dependency graph for unittest_modbus_adapter_run_permitted.cpp:

Go to the source code of this file.

Classes

class  prbt_hardware_support::ModbusAdapterRunPermittedTest
 

Namespaces

 prbt_hardware_support
 

Functions

int main (int argc, char **argv)
 
 prbt_hardware_support::TEST_F (ModbusAdapterRunPermittedTest, testModbusMsgWrapperExceptionDtor)
 Test increases function coverage by ensuring that all Dtor variants are called. More...
 
 prbt_hardware_support::TEST_F (ModbusAdapterRunPermittedTest, testModbusMsgRunPermittedWrapperDtor)
 Test increases function coverage by ensuring that all Dtor variants are called. More...
 
 prbt_hardware_support::TEST_F (ModbusAdapterRunPermittedTest, testRunPermittedClearMsg)
 Tests that a modbus message giving RUN_PERMITTED true leads to RUN_PERMITTED true update. More...
 
 prbt_hardware_support::TEST_F (ModbusAdapterRunPermittedTest, testRunPermittedActiveMsg)
 Tests that a modbus message giving RUN_PERMITTED false leads to RUN_PERMITTED false update. More...
 
 prbt_hardware_support::TEST_F (ModbusAdapterRunPermittedTest, testRunPermittedInvalidMsg)
 Tests that a modbus message giving an invalid RUN_PERMITTED status leads to RUN_PERMITTED false update. More...
 
 prbt_hardware_support::TEST_F (ModbusAdapterRunPermittedTest, testDisconnectNoRunPermittedMsg)
 
 prbt_hardware_support::TEST_F (ModbusAdapterRunPermittedTest, testDisconnectWithRunPermittedMsg)
 
 prbt_hardware_support::TEST_F (ModbusAdapterRunPermittedTest, testDisconnectPure)
 
 prbt_hardware_support::TEST_F (ModbusAdapterRunPermittedTest, testNoVersion)
 
 prbt_hardware_support::TEST_F (ModbusAdapterRunPermittedTest, testWrongVersion)
 
 prbt_hardware_support::TEST_F (ModbusAdapterRunPermittedTest, testVersion1)
 
 prbt_hardware_support::TEST_F (ModbusAdapterRunPermittedTest, testVersion2)
 
 prbt_hardware_support::TEST_F (ModbusAdapterRunPermittedTest, testNoRunPermitted)
 
 prbt_hardware_support::TEST_F (ModbusAdapterRunPermittedTest, ModbusMsgExceptionCTOR)
 Check construction of the exception (essentially for full function coverage) More...
 

Variables

static constexpr uint16_t prbt_hardware_support::RUN_PERMITTED_INVALID_VALUE { 2 }
 
static const ModbusApiSpec prbt_hardware_support::TEST_API_SPEC { { modbus_api_spec::VERSION, 513 }, { modbus_api_spec::RUN_PERMITTED, 512 } }
 

Function Documentation

◆ main()

int main ( int  argc,
char **  argv 
)

Definition at line 288 of file unittest_modbus_adapter_run_permitted.cpp.



prbt_hardware_support
Author(s):
autogenerated on Fri Aug 7 2020 03:13:41