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

Function TEST

tests/gtest_blackboard.cpp:51–67  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

49};
50
51TEST(BlackboardTest, GetInputsFromBlackboard)
52{
53 auto bb = Blackboard::create();
54
55 NodeConfig config;
56 assignDefaultRemapping<BB_TestNode>(config);
57
58 config.blackboard = bb;
59 bb->set("in_port", 11);
60
61 BB_TestNode node("good_one", config);
62
63 // this should read and write "my_entry" in tick()
64 node.executeTick();
65
66 ASSERT_EQ(bb->get<int>("out_port"), 22);
67}
68
69TEST(BlackboardTest, BasicRemapping)
70{

Callers

nothing calls this directly

Calls 15

createFunction · 0.85
BlackboardBackupFunction · 0.85
stringFunction · 0.85
BlackboardRestoreFunction · 0.85
setMethod · 0.80
createTreeFromTextMethod · 0.80
tickWhileRunningMethod · 0.80
refCountMethod · 0.80
getAnyLockedMethod · 0.80
createTreeMethod · 0.80
debugMessageMethod · 0.80

Tested by

no test coverage detected