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

Class FdTableTest

tests/unit_test/vfs_test.cpp:153–166  ·  view source on GitHub ↗

测试文件描述符表

Source from the content-addressed store, hash-verified

151
152// 测试文件描述符表
153class FdTableTest : public BaseEnvTest {
154 protected:
155 FileDescriptorTable* fd_table_;
156
157 void SetUp() override {
158 BaseEnvTest::SetUp();
159 fd_table_ = new FileDescriptorTable();
160 }
161
162 void TearDown() override {
163 delete fd_table_;
164 BaseEnvTest::TearDown();
165 }
166};
167
168TEST_F(FdTableTest, AllocAndFree) {
169 // 创建模拟文件

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected