MCPcopy Create free account
hub / github.com/PLSysSec/wave / check_os_write

Function check_os_write

tools/fuzz-gen/out.rs:416–427  ·  view source on GitHub ↗
(fd: usize, vec_buf: Vec<u8>, cnt: usize)

Source from the content-addressed store, hash-verified

414}
415#[quickcheck_macros::quickcheck]
416fn check_os_write(fd: usize, vec_buf: Vec<u8>, cnt: usize) -> TestResult {
417 init();
418 let buf = &vec_buf[..];
419 if !(buf.len() >= cnt) {
420 return TestResult::discard();
421 }
422 let result = os_write(fd, buf, cnt);
423 if !(true) {
424 return TestResult::failed();
425 }
426 TestResult::passed()
427}
428#[quickcheck_macros::quickcheck]
429fn check_os_seek(fd: usize, offset: i64, whence: i32) -> TestResult {
430 init();

Callers

nothing calls this directly

Calls 2

initFunction · 0.85
lenMethod · 0.45

Tested by

no test coverage detected