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

Function test_nonzero_bit_index

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

Source from the content-addressed store, hash-verified

31
32#[test_case]
33fn test_nonzero_bit_index() {
34 assert_eq!(nonzero_bit_index(1), 0);
35 assert_eq!(nonzero_bit_index(32), 5);
36}
37
38/// Calculate the number of bitmap levels needed
39///

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected