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

Function check_os_send

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

Source from the content-addressed store, hash-verified

580}
581#[quickcheck_macros::quickcheck]
582fn check_os_send(fd: usize, vec_buf: Vec<u8>, cnt: usize, flags: i32) -> TestResult {
583 init();
584 let buf = &vec_buf[..];
585 if !(buf.len() >= cnt) {
586 return TestResult::discard();
587 }
588 let result = os_send(fd, buf, cnt, flags);
589 if !(true) {
590 return TestResult::failed();
591 }
592 TestResult::passed()
593}
594#[quickcheck_macros::quickcheck]
595fn check_os_shutdown(fd: usize, how: libc::c_int) -> TestResult {
596 init();

Callers

nothing calls this directly

Calls 2

initFunction · 0.85
lenMethod · 0.45

Tested by

no test coverage detected