| 53 | BT::NodeStatus::FAILURE)); |
| 54 | |
| 55 | TEST_P(NodeStatusFixture, normal_routine) |
| 56 | { |
| 57 | // Test verifies the "normal" operation: We correctly propagate the result |
| 58 | // from the tick to the caller. |
| 59 | const BT::NodeStatus state = GetParam(); |
| 60 | |
| 61 | // Setup the mock-expectations. |
| 62 | EXPECT_CALL(sn, tick()).WillOnce(testing::Invoke([&]() { |
| 63 | std::this_thread::sleep_for(std::chrono::milliseconds(10)); |
| 64 | return state; |
| 65 | })); |
| 66 | |
| 67 | // Spin the node and check the final status. |
| 68 | ASSERT_EQ(sn.spinUntilDone(), state); |
| 69 | } |
| 70 | |
| 71 | TEST_F(MockedThreadedActionFixture, no_halt) |
| 72 | { |
nothing calls this directly
no test coverage detected