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

Method SetUp

tests/unit_test/vfs_test.cpp:100–104  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

98class BaseEnvTest : public ::testing::Test {
99 protected:
100 void SetUp() override {
101 env_state_.InitializeCores(1);
102 env_state_.SetCurrentThreadEnvironment();
103 env_state_.BindThreadToCore(std::this_thread::get_id(), 0);
104 }
105 void TearDown() override { env_state_.ClearCurrentThreadEnvironment(); }
106 test_env::TestEnvironmentState env_state_;
107};

Callers

nothing calls this directly

Calls 3

InitializeCoresMethod · 0.80
BindThreadToCoreMethod · 0.80

Tested by

no test coverage detected