MCPcopy Create free account
hub / github.com/bendudson/EuraliOS / test_two_frames

Function test_two_frames

kernel/src/memory/frame_allocator.rs:397–405  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

395
396#[test_case]
397fn test_two_frames() {
398 let memory_info = unsafe {MEMORY_INFO.as_mut().unwrap()};
399 let mut alloc = &mut memory_info.frame_allocator;
400
401 let frame1 = alloc.fetch_frame();
402 let frame2 = alloc.fetch_frame();
403
404 assert!(frame1 != frame2);
405}
406
407#[test_case]
408fn test_level2_cleared() {

Callers

nothing calls this directly

Calls 1

fetch_frameMethod · 0.80

Tested by

no test coverage detected