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

Function TEST_P

tests/gtest_async_action_node.cpp:55–69  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

53 BT::NodeStatus::FAILURE));
54
55TEST_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
71TEST_F(MockedThreadedActionFixture, no_halt)
72{

Callers

nothing calls this directly

Calls 1

spinUntilDoneMethod · 0.80

Tested by

no test coverage detected