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

Function test_clear

src/kernel_sigset.rs:241–252  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

239
240 #[test]
241 fn test_clear() {
242 let mut set = KernelSigSet::empty();
243 for sig in sigs() {
244 set.insert(sig);
245 }
246
247 set.clear();
248
249 for sig in sigs() {
250 assert!(!set.contains(sig));
251 }
252 }
253
254 // io_uring libraries assume that libc's `sigset_t` matches the layout
255 // of the Linux kernel's `kernel_sigset_t`. Test that rustix's layout

Callers

nothing calls this directly

Calls 3

sigsFunction · 0.85
insertMethod · 0.80
clearMethod · 0.45

Tested by

no test coverage detected