MCPcopy Create free account
hub / github.com/cloud-hypervisor/cloud-hypervisor / test_punch_hole

Function test_punch_hole

block/src/raw_sync.rs:165–170  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

163
164 #[test]
165 fn test_punch_hole() {
166 let temp_file = TempFile::new().unwrap();
167 let mut file = temp_file.into_file();
168 let mut async_io = RawFileSync::new(file.as_raw_fd());
169 raw_async_io_tests::test_punch_hole(&mut async_io, &mut file);
170 }
171
172 #[test]
173 fn test_write_zeroes() {

Callers

nothing calls this directly

Calls 2

newFunction · 0.85
as_raw_fdMethod · 0.45

Tested by

no test coverage detected