Classes | Namespaces | Functions
unittest_brake_test_executor.cpp File Reference
#include <functional>
#include <memory>
#include <gtest/gtest.h>
#include <gmock/gmock.h>
#include <std_srvs/Trigger.h>
#include <pilz_msgs/BrakeTest.h>
#include <prbt_hardware_support/brake_test_executor.h>
#include <prbt_hardware_support/BrakeTestErrorCodes.h>
#include <prbt_hardware_support/brake_test_executor_node_service_calls.h>
Include dependency graph for unittest_brake_test_executor.cpp:

Go to the source code of this file.

Classes

class  brake_test_executor_test::BrakeTestServiceMock
 
class  brake_test_executor_test::SendBrakeTestResltServiceMock
 
class  brake_test_executor_test::SystemMock
 
class  brake_test_executor_test::TriggerServiceMock
 

Namespaces

 brake_test_executor_test
 

Functions

int main (int argc, char *argv[])
 
 brake_test_executor_test::MATCHER (IsRequestResultFalse, "")
 
 brake_test_executor_test::TEST (BrakeTestExecutorTest, testBrakeTestTriggeringRobotNotMoving)
 
 brake_test_executor_test::TEST (BrakeTestExecutorTest, testBrakeTestServiceWithRobotMotion)
 
 brake_test_executor_test::TEST (BrakeTestExecutorTest, testBrakeTestServiceTriggerFails)
 
 brake_test_executor_test::TEST (BrakeTestExecutorTest, testBrakeTestResultServiceFails)
 
 brake_test_executor_test::TEST (BrakeTestExecutorTest, testMissingHoldFunc)
 Checks that exception is thrown if function to hold controller is missing. More...
 
 brake_test_executor_test::TEST (BrakeTestExecutorTest, testMissingUnholdFunc)
 Checks that exception is thrown if function to unhold controller is missing. More...
 
 brake_test_executor_test::TEST (BrakeTestExecutorTest, testMissingDetectMotionFunc)
 Checks that exception is thrown if function to detect robot motion is missing. More...
 
 brake_test_executor_test::TEST (BrakeTestExecutorTest, testMissingExecuteBrakeTestFunc)
 Checks that exception is thrown if function to execute brake test on robot is missing. More...
 
 brake_test_executor_test::TEST (BrakeTestExecutorTest, testMissingSendBrakeTestResultFunc)
 Checks that exception is thrown if function to send brake test result is missing. More...
 
 brake_test_executor_test::TEST (BrakeTestExecutorTest, testDtorBrakeTestExecutorException)
 Test increases function coverage by ensuring that all Dtor variants are called. More...
 
 brake_test_executor_test::TEST (BrakeTestExecutorTest, testTriggerServiceCallFailure)
 Tests case that trigger service fails. More...
 
 brake_test_executor_test::TEST (BrakeTestExecutorTest, testTriggerServiceCallResponseFalse)
 Tests what happens in case service is response is false (Tests mainly exists to complete code coverage). More...
 
 brake_test_executor_test::TEST (BrakeTestExecutorTest, testExecuteBrakeTestCallFailure)
 Tests that: More...
 
 brake_test_executor_test::TEST (BrakeTestExecutorTest, testSendBrakeTestResultCallFailure)
 Tests that false is returned if SendBrakeTestResult service fails. More...
 
 brake_test_executor_test::TEST (BrakeTestExecutorTest, testSendBrakeTestResultCallSuccess)
 Tests that SendBrakeTestResult service is called with correct value. More...
 

Function Documentation

◆ main()

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

Definition at line 380 of file unittest_brake_test_executor.cpp.



prbt_hardware_support
Author(s):
autogenerated on Thu Nov 19 2020 03:11:51