Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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]
43
fn 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
53
use blog_os::allocator::HEAP_SIZE;
Callers
nothing calls this directly
Calls
1
push
Method · 0.45
Tested by
no test coverage detected