()
| 406 | |
| 407 | #[test_case] |
| 408 | fn test_level2_cleared() { |
| 409 | let memory_info = unsafe {MEMORY_INFO.as_mut().unwrap()}; |
| 410 | let mut alloc = &mut memory_info.frame_allocator; |
| 411 | |
| 412 | let frame1 = alloc.fetch_frame(); |
| 413 | // Move to next level-1 frame |
| 414 | for i in 0..32 { |
| 415 | alloc.allocate_frame(); |
| 416 | } |
| 417 | let frame2 = alloc.fetch_frame(); |
| 418 | assert!(frame1 != frame2); |
| 419 | } |
| 420 | |
| 421 | #[test_case] |
| 422 | fn test_quick_return() { |
nothing calls this directly
no test coverage detected