测试基本挂载/卸载
| 35 | |
| 36 | // 测试基本挂载/卸载 |
| 37 | TEST_F(RamFsTest, MountUnmount) { |
| 38 | // SetUp 中已经挂载,这里测试重复挂载 |
| 39 | auto result = ramfs_.Mount(nullptr); |
| 40 | EXPECT_FALSE(result.has_value()); // 应该失败,因为已经挂载 |
| 41 | } |
| 42 | |
| 43 | TEST_F(RamFsTest, GetName) { EXPECT_STREQ(ramfs_.GetName(), "ramfs"); } |
| 44 |
nothing calls this directly
no test coverage detected