()
| 110 | |
| 111 | #[allow(unused)] |
| 112 | pub fn frame_allocator_test() { |
| 113 | let mut v: Vec<FrameTracker> = Vec::new(); |
| 114 | for i in 0..5 { |
| 115 | let frame = frame_alloc().unwrap(); |
| 116 | println!("{:?}", frame); |
| 117 | v.push(frame); |
| 118 | } |
| 119 | v.clear(); |
| 120 | for i in 0..5 { |
| 121 | let frame = frame_alloc().unwrap(); |
| 122 | println!("{:?}", frame); |
| 123 | v.push(frame); |
| 124 | } |
| 125 | drop(v); |
| 126 | println!("frame_allocator_test passed!"); |
| 127 | } |
nothing calls this directly
no test coverage detected