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

Function test_v6

tests/net/v6.rs:69–89  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

67
68#[test]
69fn test_v6() {
70 crate::init();
71
72 let ready = Arc::new((Mutex::new(0_u16), Condvar::new()));
73 let ready_clone = Arc::clone(&ready);
74
75 let server = thread::Builder::new()
76 .name("server".to_string())
77 .spawn(move || {
78 server(ready);
79 })
80 .unwrap();
81 let client = thread::Builder::new()
82 .name("client".to_string())
83 .spawn(move || {
84 client(ready_clone);
85 })
86 .unwrap();
87 client.join().unwrap();
88 server.join().unwrap();
89}
90
91#[cfg(not(any(windows, target_os = "espidf", target_os = "redox", target_os = "wasi")))]
92#[test]

Callers

nothing calls this directly

Calls 3

initFunction · 0.70
serverFunction · 0.70
clientFunction · 0.70

Tested by

no test coverage detected