MCPcopy Create free account
hub / github.com/bytecodealliance/rustix / raw_dir_entries_unaligned

Function raw_dir_entries_unaligned

tests/fs/readdir.rs:132–139  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

130#[test]
131#[cfg(linux_kernel)]
132fn raw_dir_entries_unaligned() {
133 let mut buf = [MaybeUninit::uninit(); 2048];
134 let buf = &mut buf[1..];
135
136 assert!(!(buf.as_ptr() as usize).is_power_of_two());
137
138 test_raw_dir(buf);
139}
140
141#[test]
142fn dir_from_openat() {

Callers

nothing calls this directly

Calls 1

test_raw_dirFunction · 0.85

Tested by

no test coverage detected