test_behavior_input_port_not_set.hpp File
Included Headers
Namespaces Index
| namespace | moveit_pro |
| namespace | test_utils |
Macro Definitions Index
| #define | DEFAULT_FIXTURE_(behavior_class) public ::moveit_pro::test_utils::WithBehavior<behavior_class>, public ::moveit_pro::test_utils::RosTest |
| #define | INSTANTIATE_BEHAVIOR_PORT_NOT_SET_TESTS_(test_fixture, behavior_class, input_port_setter_generator, output_port_setter_generator, pre_tick_code) |
| #define | INSTANTIATE_SYNC_BEHAVIOR_PORT_NOT_SET_TESTS(behavior_class, input_port_setter_generator, output_port_setter_generator) ... |
|
Automatically instantiates tests for the "input Behavior port not set" situation for synchronous Behaviors with context. More... | |
| #define | INSTANTIATE_ASYNC_BEHAVIOR_PORT_NOT_SET_TESTS(behavior_class, input_port_setter_generator, output_port_setter_generator) ... |
|
Automatically instantiates tests for the "input Behavior port not set" situation for asynchronous Behaviors with context. More... | |
| #define | INSTANTIATE_ACTION_BEHAVIOR_PORT_NOT_SET_TESTS(test_fixture, behavior_class, input_port_setter_generator, output_port_setter_generator) ... |
|
Automatically instantiates tests for the "input Behavior port not set" situation for asynchronous Behaviors with context that require a specific text fixture. More... | |
Macro Definitions
DEFAULT_FIXTURE_
|
Definition at line 23 of file test_behavior_input_port_not_set.hpp.
INSTANTIATE_ACTION_BEHAVIOR_PORT_NOT_SET_TESTS
|
Automatically instantiates tests for the "input Behavior port not set" situation for asynchronous Behaviors with context that require a specific text fixture.
- Value
-
INSTANTIATE_BEHAVIOR_PORT_NOT_SET_TESTS_( \ public test_fixture, behavior_class, input_port_setter_generator, output_port_setter_generator, \ ASSERT_EQ(behavior().executeTick(), BT::NodeStatus::RUNNING) \ << "Should you use INSTANTIATE_SYNC_BEHAVIOR_PORT_NOT_SET_TESTS instead?"; \ std::this_thread::sleep_for(::moveit_pro::test_utils::kPortNotSetTestsMaxTimeBehaviorIsInRunningStatus);)
One test is generated for each Behavior input port.
- Parameters
-
test_fixture Test fixture that sets up all action server mocks.
behavior_class Class of the behavior under test. It cannot have namespace qualifiers. If those are needed, please use a using statement in the test file.
input_port_setter_generator A port setter map generator defining the expected input ports.
output_port_setter_generator A port setter map generator defining the expected output ports.
Definition at line 104 of file test_behavior_input_port_not_set.hpp.
INSTANTIATE_ASYNC_BEHAVIOR_PORT_NOT_SET_TESTS
|
Automatically instantiates tests for the "input Behavior port not set" situation for asynchronous Behaviors with context.
- Value
-
INSTANTIATE_BEHAVIOR_PORT_NOT_SET_TESTS_( \ DEFAULT_FIXTURE_(behavior_class), behavior_class, input_port_setter_generator, output_port_setter_generator, \ ASSERT_EQ(behavior().executeTick(), BT::NodeStatus::RUNNING) \ << "Should you use INSTANTIATE_SYNC_BEHAVIOR_PORT_NOT_SET_TESTS instead?"; \ std::this_thread::sleep_for(::moveit_pro::test_utils::kPortNotSetTestsMaxTimeBehaviorIsInRunningStatus);)
One test is generated for each Behavior input port.
- Parameters
-
behavior_class Class of the behavior under test. It cannot have namespace qualifiers. If those are needed, please use a using statement in the test file.
input_port_setter_generator A port setter map generator defining the expected input ports.
output_port_setter_generator A port setter map generator defining the expected output ports.
Definition at line 86 of file test_behavior_input_port_not_set.hpp.
INSTANTIATE_BEHAVIOR_PORT_NOT_SET_TESTS_
|
Definition at line 27 of file test_behavior_input_port_not_set.hpp.
INSTANTIATE_SYNC_BEHAVIOR_PORT_NOT_SET_TESTS
|
Automatically instantiates tests for the "input Behavior port not set" situation for synchronous Behaviors with context.
- Value
-
INSTANTIATE_BEHAVIOR_PORT_NOT_SET_TESTS_(DEFAULT_FIXTURE_(behavior_class), behavior_class, \ input_port_setter_generator, output_port_setter_generator, )
One test is generated for each Behavior input port.
- Parameters
-
behavior_class Class of the behavior under test. It cannot have namespace qualifiers. If those are needed, please use a using statement in the test file.
input_port_setter_generator A port setter map generator defining the expected input ports.
output_port_setter_generator A port setter map generator defining the expected output ports.
Definition at line 72 of file test_behavior_input_port_not_set.hpp.
Generated via doxygen2docusaurus 2.2.2 by Doxygen 1.9.8.