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

Function msg_drops

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

Source from the content-addressed store, hash-verified

136
137#[test]
138fn msg_drops() {
139 let drops = Arc::new(AtomicU32::new(0));
140 let error = Error::msg(CountDrops::new(&drops));
141 assert_eq!(drops.load(SeqCst), 0);
142 drop(error);
143 assert_eq!(drops.load(SeqCst), 1);
144}
145
146#[test]
147fn from_error() {

Callers

nothing calls this directly

Calls 3

msgFunction · 0.85
newFunction · 0.70
dropFunction · 0.50

Tested by

no test coverage detected