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

Method GetCore

tests/unit_test/mocks/test_environment_state.cpp:53–59  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

51}
52
53auto TestEnvironmentState::GetCore(size_t core_id) -> CoreEnvironment& {
54 std::lock_guard<std::mutex> lock(map_mutex_);
55 if (core_id >= cores_.size()) {
56 throw std::out_of_range("Invalid core_id: " + std::to_string(core_id));
57 }
58 return cores_[core_id];
59}
60
61auto TestEnvironmentState::GetCoreCount() const -> size_t {
62 std::lock_guard<std::mutex> lock(map_mutex_);

Callers

nothing calls this directly

Calls 1

sizeMethod · 0.80

Tested by

no test coverage detected