Functions | Variables
gtest_factory.cpp File Reference
#include <gtest/gtest.h>
#include "action_test_node.h"
#include "condition_test_node.h"
#include "behaviortree_cpp_v3/xml_parsing.h"
#include "environment.h"
#include "../sample_nodes/crossdoor_nodes.h"
#include "../sample_nodes/dummy_nodes.h"
Include dependency graph for gtest_factory.cpp:

Go to the source code of this file.

Functions

 TEST (BehaviorTreeFactory, CreateTreeFromFile)
 
 TEST (BehaviorTreeFactory, CreateTreeFromFileWhichIncludesFileFromChildDirectory)
 
 TEST (BehaviorTreeFactory, CreateTreeFromFileWhichIncludesFileFromChildDirectoryWhichIncludesFileFromChildDirectory)
 
 TEST (BehaviorTreeFactory, CreateTreeFromFileWhichIncludesFileFromChildDirectoryWhichIncludesFileFromParentDirectory)
 
 TEST (BehaviorTreeFactory, CreateTreeFromFileWhichIncludesFileFromChildDirectoryWhichIncludesFileFromSameDirectory)
 
 TEST (BehaviorTreeFactory, CreateTreeFromFileWhichIncludesFileFromSameDirectory)
 
 TEST (BehaviorTreeFactory, DecoratorWithoutChildThrows)
 
 TEST (BehaviorTreeFactory, DecoratorWithTwoChildrenThrows)
 
 TEST (BehaviorTreeFactory, FactoryClearRegisteredBehaviorTrees)
 
 TEST (BehaviorTreeFactory, Issue7)
 
 TEST (BehaviorTreeFactory, ParserClearRegisteredBehaviorTrees)
 
 TEST (BehaviorTreeFactory, RegisterInvalidXMLBadActionNodeThrows)
 
 TEST (BehaviorTreeFactory, RegisterInvalidXMLNoRootThrows)
 
 TEST (BehaviorTreeFactory, RegisterValidAndInvalidTrees)
 
 TEST (BehaviorTreeFactory, Subtree)
 
 TEST (BehaviorTreeFactory, SubTreeWithRemapping)
 
 TEST (BehaviorTreeFactory, VerifyLargeTree)
 
 TEST (BehaviorTreeFactory, XMLParsingOrder)
 

Variables

static const char * xml_ports_subtree
 
static const char * xml_text
 
static const char * xml_text_subtree
 
static const char * xml_text_subtree_part1
 
static const char * xml_text_subtree_part2
 

Function Documentation

◆ TEST() [1/18]

TEST ( BehaviorTreeFactory  ,
CreateTreeFromFile   
)

Definition at line 311 of file gtest_factory.cpp.

◆ TEST() [2/18]

TEST ( BehaviorTreeFactory  ,
CreateTreeFromFileWhichIncludesFileFromChildDirectory   
)

Definition at line 333 of file gtest_factory.cpp.

◆ TEST() [3/18]

TEST ( BehaviorTreeFactory  ,
CreateTreeFromFileWhichIncludesFileFromChildDirectoryWhichIncludesFileFromChildDirectory   
)

Definition at line 358 of file gtest_factory.cpp.

◆ TEST() [4/18]

TEST ( BehaviorTreeFactory  ,
CreateTreeFromFileWhichIncludesFileFromChildDirectoryWhichIncludesFileFromParentDirectory   
)

Definition at line 372 of file gtest_factory.cpp.

◆ TEST() [5/18]

TEST ( BehaviorTreeFactory  ,
CreateTreeFromFileWhichIncludesFileFromChildDirectoryWhichIncludesFileFromSameDirectory   
)

Definition at line 344 of file gtest_factory.cpp.

◆ TEST() [6/18]

TEST ( BehaviorTreeFactory  ,
CreateTreeFromFileWhichIncludesFileFromSameDirectory   
)

Definition at line 322 of file gtest_factory.cpp.

◆ TEST() [7/18]

TEST ( BehaviorTreeFactory  ,
DecoratorWithoutChildThrows   
)

Definition at line 387 of file gtest_factory.cpp.

◆ TEST() [8/18]

TEST ( BehaviorTreeFactory  ,
DecoratorWithTwoChildrenThrows   
)

Definition at line 402 of file gtest_factory.cpp.

◆ TEST() [9/18]

TEST ( BehaviorTreeFactory  ,
FactoryClearRegisteredBehaviorTrees   
)

Definition at line 525 of file gtest_factory.cpp.

◆ TEST() [10/18]

TEST ( BehaviorTreeFactory  ,
Issue7   
)

Definition at line 212 of file gtest_factory.cpp.

◆ TEST() [11/18]

TEST ( BehaviorTreeFactory  ,
ParserClearRegisteredBehaviorTrees   
)

Definition at line 501 of file gtest_factory.cpp.

◆ TEST() [12/18]

TEST ( BehaviorTreeFactory  ,
RegisterInvalidXMLBadActionNodeThrows   
)

Definition at line 452 of file gtest_factory.cpp.

◆ TEST() [13/18]

TEST ( BehaviorTreeFactory  ,
RegisterInvalidXMLNoRootThrows   
)

Definition at line 478 of file gtest_factory.cpp.

◆ TEST() [14/18]

TEST ( BehaviorTreeFactory  ,
RegisterValidAndInvalidTrees   
)

Definition at line 420 of file gtest_factory.cpp.

◆ TEST() [15/18]

TEST ( BehaviorTreeFactory  ,
Subtree   
)

Definition at line 177 of file gtest_factory.cpp.

◆ TEST() [16/18]

TEST ( BehaviorTreeFactory  ,
SubTreeWithRemapping   
)

Definition at line 260 of file gtest_factory.cpp.

◆ TEST() [17/18]

TEST ( BehaviorTreeFactory  ,
VerifyLargeTree   
)

Definition at line 136 of file gtest_factory.cpp.

◆ TEST() [18/18]

TEST ( BehaviorTreeFactory  ,
XMLParsingOrder   
)

Definition at line 103 of file gtest_factory.cpp.

Variable Documentation

◆ xml_ports_subtree

const char* xml_ports_subtree
static
Initial value:
= R"(
<root main_tree_to_execute = "MainTree" >
<BehaviorTree ID="TalkToMe">
<Sequence>
<SaySomething message="{hello_msg}" />
<SaySomething message="{bye_msg}" />
<SetBlackboard output_key="output" value="done!" />
</Sequence>
</BehaviorTree>
<BehaviorTree ID="MainTree">
<Sequence>
<SetBlackboard output_key="talk_hello" value="hello" />
<SetBlackboard output_key="talk_bye" value="bye bye" />
<SubTree ID="TalkToMe" hello_msg="talk_hello"
bye_msg="talk_bye"
output="talk_out" />
<SaySomething message="{talk_out}" />
</Sequence>
</BehaviorTree>
</root> )"

Definition at line 233 of file gtest_factory.cpp.

◆ xml_text

const char* xml_text
static

Definition at line 13 of file gtest_factory.cpp.

◆ xml_text_subtree

const char* xml_text_subtree
static
Initial value:
= R"(
<root main_tree_to_execute = "MainTree" >
<BehaviorTree ID="CrossDoorSubtree">
<Sequence name="door_sequence">
<Decorator ID="Inverter">
<Action ID="IsDoorLocked" />
</Decorator>
<Action ID="OpenDoor" />
<Action ID="PassThroughDoor" />
<Action ID="CloseDoor" />
</Sequence>
</BehaviorTree>
<!-- This tree will include the other one -->
<BehaviorTree ID="MainTree">
<Fallback name="root_selector">
<SubTree ID="CrossDoorSubtree" />
<Action ID="PassThroughWindow" />
</Fallback>
</BehaviorTree>
</root> )"

Definition at line 50 of file gtest_factory.cpp.

◆ xml_text_subtree_part1

const char* xml_text_subtree_part1
static
Initial value:
= R"(
<root>
<BehaviorTree ID="MainTree">
<Fallback name="root_selector">
<SubTree ID="CrossDoorSubtree" />
<Action ID="PassThroughWindow" />
</Fallback>
</BehaviorTree>
</root> )"

Definition at line 75 of file gtest_factory.cpp.

◆ xml_text_subtree_part2

const char* xml_text_subtree_part2
static
Initial value:
= R"(
<root>
<BehaviorTree ID="CrossDoorSubtree">
<Sequence name="door_sequence">
<Decorator ID="Inverter">
<Action ID="IsDoorLocked" />
</Decorator>
<Action ID="OpenDoor" />
<Action ID="PassThroughDoor" />
<Action ID="CloseDoor" />
</Sequence>
</BehaviorTree>
</root> )"

Definition at line 86 of file gtest_factory.cpp.



behaviortree_cpp_v3
Author(s): Michele Colledanchise, Davide Faconti
autogenerated on Wed Jun 26 2024 02:51:19