Skip to content

Commit

Permalink
remove unnecessary tests
Browse files Browse the repository at this point in the history
  • Loading branch information
KmakD committed Jun 6, 2024
1 parent c600d57 commit 016b3b9
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 36 deletions.
16 changes: 0 additions & 16 deletions panther_manager/test/plugins/test_call_set_bool_service_node.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -135,22 +135,6 @@ TEST_F(TestCallSetBoolService, WrongSetBoolCallServiceFailure)
EXPECT_EQ(status, BT::NodeStatus::FAILURE);
}

TEST_F(TestCallSetBoolService, WrongServiceValueDefined)
{
std::map<std::string, std::string> service = {
{"service_name", "set_bool"}, {"data", "wrong_bool"}};

using std_srvs::srv::SetBool;
CreateService<SetBool>(
"set_bool",
[&](const SetBool::Request::SharedPtr request, SetBool::Response::SharedPtr response) {
ServiceCallback(request, response, true, true);
});
RegisterNodeWithParams<panther_manager::CallSetBoolService>("CallSetBoolService");

EXPECT_THROW({ CreateTree("CallSetBoolService", service); }, BT::LogicError);
}

int main(int argc, char ** argv)
{
testing::InitGoogleTest(&argc, argv);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -171,26 +171,6 @@ TEST_F(TestCallSetLedAnimationService, WrongSetLedAnimationCallServiceFailure)
EXPECT_EQ(status, BT::NodeStatus::FAILURE);
}

TEST_F(TestCallSetLedAnimationService, WrongRepeatingServiceValueDefined)
{
std::map<std::string, std::string> service = {
{"service_name", "set_led_animation"}, {"id", "0"}, {"param", ""}, {"repeating", "wrong_bool"}};

RegisterNodeWithParams<panther_manager::CallSetLedAnimationService>("CallSetLedAnimationService");

EXPECT_THROW({ CreateTree("CallSetLedAnimationService", service); }, BT::LogicError);
}

TEST_F(TestCallSetLedAnimationService, WrongIdServiceValueDefined)
{
std::map<std::string, std::string> service = {
{"service_name", "set_led_animation"}, {"id", "-5"}, {"param", ""}, {"repeating", "true"}};

RegisterNodeWithParams<panther_manager::CallSetLedAnimationService>("CallSetLedAnimationService");

EXPECT_THROW({ CreateTree("CallSetLedAnimationService", service); }, BT::LogicError);
}

int main(int argc, char ** argv)
{
testing::InitGoogleTest(&argc, argv);
Expand Down

0 comments on commit 016b3b9

Please sign in to comment.