Skip to main content

test_behavior_input_port_not_set.hpp File

Included Headers

#include <gmock/gmock.h> #include <moveit_pro_behavior_interface/shared_resources_node.hpp> #include <moveit_pro_behavior_interface/test_behavior.hpp> #include <moveit_pro_test_utils/ros_test.hpp> #include <moveit_studio_agent_msgs/msg/log.hpp>

Namespaces Index

namespacemoveit_pro
namespacetest_utils

Macro Definitions Index

#defineDEFAULT_FIXTURE_(behavior_class)     public ::moveit_pro::test_utils::WithBehavior<behavior_class>, public ::moveit_pro::test_utils::RosTest
#defineINSTANTIATE_BEHAVIOR_PORT_NOT_SET_TESTS_(test_fixture, behavior_class, input_port_setter_generator, output_port_setter_generator, pre_tick_code)
#defineINSTANTIATE_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...

#defineINSTANTIATE_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...

#defineINSTANTIATE_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_

#define DEFAULT_FIXTURE_(behavior_class)     public ::moveit_pro::test_utils::WithBehavior<behavior_class>, public ::moveit_pro::test_utils::RosTest

Definition at line 23 of file test_behavior_input_port_not_set.hpp.

INSTANTIATE_ACTION_BEHAVIOR_PORT_NOT_SET_TESTS

#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.

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

#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.

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_

#define INSTANTIATE_BEHAVIOR_PORT_NOT_SET_TESTS_(test_fixture, behavior_class, input_port_setter_generator, output_port_setter_generator, pre_tick_code)

Definition at line 27 of file test_behavior_input_port_not_set.hpp.

INSTANTIATE_SYNC_BEHAVIOR_PORT_NOT_SET_TESTS

#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.

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.