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

Function large_vec

kernel/tests/heap_allocation.rs:43–50  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

41
42#[test_case]
43fn large_vec() {
44 let n = 1000;
45 let mut vec = Vec::new();
46 for i in 0..n {
47 vec.push(i);
48 }
49 assert_eq!(vec.iter().sum::<u64>(), (n - 1) * n / 2);
50}
51
52
53use blog_os::allocator::HEAP_SIZE;

Callers

nothing calls this directly

Calls 1

pushMethod · 0.45

Tested by

no test coverage detected