MCPcopy Create free account
hub / github.com/BehaviorTree/BehaviorTree.CPP / BehaviorTreeTest

Method BehaviorTreeTest

tests/gtest_tree.cpp:35–48  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

33 BT::FallbackNode fal_conditions;
34
35 BehaviorTreeTest()
36 : root("root_sequence")
37 , action_1("action_1", milliseconds(100))
38 , condition_1("condition_1")
39 , condition_2("condition_2")
40 , fal_conditions("fallback_conditions")
41 {
42 root.addChild(&fal_conditions);
43 {
44 fal_conditions.addChild(&condition_1);
45 fal_conditions.addChild(&condition_2);
46 }
47 root.addChild(&action_1);
48 }
49 ~BehaviorTreeTest() override = default;
50 BehaviorTreeTest(const BehaviorTreeTest&) = delete;
51 BehaviorTreeTest& operator=(const BehaviorTreeTest&) = delete;

Callers

nothing calls this directly

Calls 1

addChildMethod · 0.80

Tested by

no test coverage detected