MCPcopy Create free account
hub / github.com/bytecodealliance/wasmtime / new_drops

Function new_drops

crates/core/tests/tests.rs:93–99  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

91
92#[test]
93fn new_drops() {
94 let drops = Arc::new(AtomicU32::new(0));
95 let error = Error::new(CountDrops::new(&drops));
96 assert_eq!(drops.load(SeqCst), 0);
97 drop(error);
98 assert_eq!(drops.load(SeqCst), 1);
99}
100
101#[test]
102fn from_error_with_large_align() {

Callers

nothing calls this directly

Calls 2

newFunction · 0.70
dropFunction · 0.50

Tested by

no test coverage detected