Skip to content

Commit

Permalink
Revert "Add unit test"
Browse files Browse the repository at this point in the history
This reverts commit 8d5a03c.
  • Loading branch information
uweseimet committed Sep 24, 2023
1 parent 8d5a03c commit c789363
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 20 deletions.
18 changes: 0 additions & 18 deletions cpp/test/disk_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -103,24 +103,6 @@ TEST(DiskTest, ReassignBlocks)
EXPECT_EQ(status::good, controller->GetStatus());
}

TEST(DiskTest, Read)
{
MockDisk disk;

disk.SetBlockCount(1);
vector<uint8_t> buf(512);
EXPECT_THROW(disk.Read(buf, 0), scsi_exception);
}

TEST(DiskTest, Write)
{
MockDisk disk;

disk.SetBlockCount(1);
vector<uint8_t> buf(512);
EXPECT_THROW(disk.Write(buf, 0), scsi_exception);
}

TEST(DiskTest, Seek6)
{
auto [controller, disk] = CreateDisk();
Expand Down
2 changes: 0 additions & 2 deletions cpp/test/mocks.h
Original file line number Diff line number Diff line change
Expand Up @@ -323,8 +323,6 @@ class MockDisk : public Disk
FRIEND_TEST(DiskTest, Rezero);
FRIEND_TEST(DiskTest, FormatUnit);
FRIEND_TEST(DiskTest, ReassignBlocks);
FRIEND_TEST(DiskTest, Read);
FRIEND_TEST(DiskTest, Write);
FRIEND_TEST(DiskTest, Seek6);
FRIEND_TEST(DiskTest, Seek10);
FRIEND_TEST(DiskTest, Read6);
Expand Down

0 comments on commit c789363

Please sign in to comment.