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

Method SetUp

tests/unit_test/ramfs_test.cpp:22–28  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

20 test_env::TestEnvironmentState env_state_;
21
22 void SetUp() override {
23 env_state_.InitializeCores(1);
24 env_state_.SetCurrentThreadEnvironment();
25 env_state_.BindThreadToCore(std::this_thread::get_id(), 0);
26 auto result = ramfs_.Mount(nullptr);
27 EXPECT_TRUE(result.has_value());
28 }
29
30 void TearDown() override {
31 (void)ramfs_.Unmount();

Callers

nothing calls this directly

Calls 4

InitializeCoresMethod · 0.80
BindThreadToCoreMethod · 0.80
MountMethod · 0.45

Tested by

no test coverage detected