MCPcopy Create free account
hub / github.com/NodeDB-Lab/nodedb / warning_pressure_allows

Function warning_pressure_allows

nodedb/src/data/executor/core_loop/pressure.rs:258–266  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

256
257 #[test]
258 fn warning_pressure_allows() {
259 let (mut core, _tx, _rx, _dir) = make_core();
260 core.set_governor(make_governor_at(EngineId::Vector, 75));
261 let task = make_task();
262 assert!(
263 core.check_engine_pressure(&task, EngineId::Vector)
264 .is_none()
265 );
266 }
267
268 #[test]
269 fn critical_pressure_allows_and_increments_metric() {

Callers

nothing calls this directly

Calls 4

make_coreFunction · 0.70
make_governor_atFunction · 0.70
make_taskFunction · 0.70
set_governorMethod · 0.45

Tested by

no test coverage detected