Skip to content

Commit 2d0d065

Browse files
committed
Testing++
1 parent d8f7eb6 commit 2d0d065

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

test/file_system_test.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -174,6 +174,8 @@ TEST_F(FileSystemTest, FileMove) {
174174
XBT_INFO("Create a 10kB file at /dev/a/foo.txt");
175175
ASSERT_NO_THROW(fs_->create_file("/dev/a/foo.txt", "10kB"));
176176
ASSERT_DOUBLE_EQ(fs_->partition_by_name("/dev/a/")->get_free_space(), 90*1000);
177+
ASSERT_DOUBLE_EQ(fs_->get_free_space_at_path("/dev/a/"), 90*1000);
178+
ASSERT_DOUBLE_EQ(fs_->get_free_space_at_path("/dev/a/foo.txt"), 90*1000);
177179
XBT_INFO("Try to move file /dev/a/foo.txt to the same path. This should work (no-op)");
178180
ASSERT_NO_THROW(fs_->move_file("/dev/a/foo.txt", "/dev/a/foo.txt"));
179181
XBT_INFO("Move file /dev/a/foo.txt to /dev/a/b/c/foo.txt");

0 commit comments

Comments
 (0)