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

Function TEST_F

tests/gtest_fallback.cpp:127–136  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

125/****************TESTS START HERE***************************/
126
127TEST_F(SimpleFallbackTest, ConditionTrue)
128{
129 // Ticking the root node
130 condition.setExpectedResult(NodeStatus::SUCCESS);
131 BT::NodeStatus state = root.executeTick();
132
133 ASSERT_EQ(NodeStatus::SUCCESS, state);
134 ASSERT_EQ(NodeStatus::IDLE, condition.status());
135 ASSERT_EQ(NodeStatus::IDLE, action.status());
136}
137
138TEST_F(SimpleFallbackTest, ConditionChangeWhileRunning)
139{

Callers

nothing calls this directly

Calls 3

statusMethod · 0.80
setExpectedResultMethod · 0.45
executeTickMethod · 0.45

Tested by

no test coverage detected