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 clearance leads to RUN_PERMITTED clear message. More...
 
 prbt_hardware_support::TEST_F (ModbusAdapterRunPermittedTest, testRunPermittedActiveMsg)
 Tests that a modbus message giving RUN_PERMITTED leads to RUN_PERMITTED active message. 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, testNoRunPermitted)
 
 prbt_hardware_support::TEST_F (ModbusAdapterRunPermittedTest, ModbusMsgExceptionCTOR)
 Check construction of the exception (essentially for full function coverage) More...
 

Variables

static constexpr int prbt_hardware_support::MODBUS_API_VERSION_FOR_TESTING { 2 }
 
static constexpr bool prbt_hardware_support::RUN_PERMITTED_ACTIVE { false }
 
static constexpr bool prbt_hardware_support::RUN_PERMITTED_CLEAR { true }
 
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 260 of file unittest_modbus_adapter_run_permitted.cpp.



prbt_hardware_support
Author(s):
autogenerated on Thu May 28 2020 03:13:50