| 125 | /****************TESTS START HERE***************************/ |
| 126 | |
| 127 | TEST_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 | |
| 138 | TEST_F(SimpleFallbackTest, ConditionChangeWhileRunning) |
| 139 | { |
nothing calls this directly
no test coverage detected