Skip to content

Commit

Permalink
Add unit test
Browse files Browse the repository at this point in the history
  • Loading branch information
uweseimet committed Sep 24, 2023
1 parent 4902b0d commit de98e86
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions cpp/test/controller_manager_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -77,3 +77,10 @@ TEST(ControllerManagerTest, AttachToController)
EXPECT_TRUE(controller_manager.AttachToController(*bus, ID, device1));
EXPECT_FALSE(controller_manager.AttachToController(*bus, ID, device1));
}

TEST(ControllerManager, ProcessOnController)
{
ControllerManager controller_manager;

EXPECT_EQ(AbstractController::piscsi_shutdown_mode::NONE, controller_manager.ProcessOnController(0));
}

0 comments on commit de98e86

Please sign in to comment.