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

Function test_fcntl_getpipe_size

tests/pipe/fcntl.rs:3–11  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1#[cfg(linux_kernel)]
2#[test]
3fn test_fcntl_getpipe_size() {
4 use rustix::pipe::fcntl_getpipe_size;
5
6 let (reader, writer) = rustix::pipe::pipe().unwrap();
7
8 let reader_size = fcntl_getpipe_size(&reader).unwrap();
9 let writer_size = fcntl_getpipe_size(&writer).unwrap();
10 assert_eq!(reader_size, writer_size);
11}
12
13#[cfg(linux_kernel)]
14#[test]

Callers

nothing calls this directly

Calls 2

pipeFunction · 0.50
fcntl_getpipe_sizeFunction · 0.50

Tested by

no test coverage detected