MCPcopy Create free account
hub / github.com/Simple-XX/SimpleKernel / TEST

Function TEST

tests/unit_test/vfs_test.cpp:278–285  ·  view source on GitHub ↗

File 结构测试

Source from the content-addressed store, hash-verified

276
277// File 结构测试
278TEST(FileStructTest, FileOperations) {
279 File file;
280 EXPECT_EQ(file.offset, 0);
281 EXPECT_EQ(file.flags, 0);
282 EXPECT_EQ(file.ops, nullptr);
283 EXPECT_EQ(file.inode, nullptr);
284 EXPECT_EQ(file.dentry, nullptr);
285}
286
287// Inode 结构测试
288TEST(InodeStructTest, InodeDefaults) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected