Classes | Functions | Variables
gtest_switch.cpp File Reference
#include <gtest/gtest.h>
#include "action_test_node.h"
#include "condition_test_node.h"
#include "behaviortree_cpp/behavior_tree.h"
#include "behaviortree_cpp/tree_node.h"
#include "behaviortree_cpp/bt_factory.h"
Include dependency graph for gtest_switch.cpp:

Go to the source code of this file.

Classes

struct  SwitchTest
 

Functions

 TEST_F (SwitchTest, ActionFailure)
 
 TEST_F (SwitchTest, Case1)
 
 TEST_F (SwitchTest, Case2)
 
 TEST_F (SwitchTest, CaseNone)
 
 TEST_F (SwitchTest, CaseSwitchToAction2)
 
 TEST_F (SwitchTest, CaseSwitchToDefault)
 
 TEST_F (SwitchTest, DefaultCase)
 
BT::NodeStatus TickWhileRunning (BT::TreeNode &node)
 

Variables

static const char * xml_text
 

Function Documentation

◆ TEST_F() [1/7]

TEST_F ( SwitchTest  ,
ActionFailure   
)

Definition at line 217 of file gtest_switch.cpp.

◆ TEST_F() [2/7]

TEST_F ( SwitchTest  ,
Case1   
)

Definition at line 90 of file gtest_switch.cpp.

◆ TEST_F() [3/7]

TEST_F ( SwitchTest  ,
Case2   
)

Definition at line 109 of file gtest_switch.cpp.

◆ TEST_F() [4/7]

TEST_F ( SwitchTest  ,
CaseNone   
)

Definition at line 128 of file gtest_switch.cpp.

◆ TEST_F() [5/7]

TEST_F ( SwitchTest  ,
CaseSwitchToAction2   
)

Definition at line 190 of file gtest_switch.cpp.

◆ TEST_F() [6/7]

TEST_F ( SwitchTest  ,
CaseSwitchToDefault   
)

Definition at line 147 of file gtest_switch.cpp.

◆ TEST_F() [7/7]

TEST_F ( SwitchTest  ,
DefaultCase   
)

Definition at line 72 of file gtest_switch.cpp.

◆ TickWhileRunning()

BT::NodeStatus TickWhileRunning ( BT::TreeNode node)

Definition at line 26 of file gtest_switch.cpp.

Variable Documentation

◆ xml_text

const char* xml_text
static
Initial value:
= R"(
<root BTCPP_format="4" >
<BehaviorTree ID="MainTree">
<Switch3 name="simple_switch" variable="{my_var}" case_1="1" case_2="42 case_3="666" >
<AsyncActionTest name="action_1"/>
<AsyncActionTest name="action_42"/>
<AsyncActionTest name="action_666"/>
<AsyncActionTest name="action_default"/>
</Switch3>
</BehaviorTree>
</root>
)"

Definition at line 11 of file gtest_switch.cpp.



behaviortree_cpp_v4
Author(s): Davide Faconti
autogenerated on Fri Dec 13 2024 03:19:18