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

Method SetUp

tests/unit_test/vfs_test.cpp:85–91  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

83class VfsTest : public ::testing::Test {
84 protected:
85 void SetUp() override {
86 env_state_.InitializeCores(1);
87 env_state_.SetCurrentThreadEnvironment();
88 env_state_.BindThreadToCore(std::this_thread::get_id(), 0);
89 auto result = vfs::Init();
90 EXPECT_TRUE(result.has_value());
91 }
92
93 void TearDown() override { env_state_.ClearCurrentThreadEnvironment(); }
94

Callers

nothing calls this directly

Calls 4

InitFunction · 0.85
InitializeCoresMethod · 0.80
BindThreadToCoreMethod · 0.80

Tested by

no test coverage detected