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

Function error_chain

crates/fuzzing/tests/oom/error.rs:53–62  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

51
52#[test]
53fn error_chain() -> Result<()> {
54 OomTest::new().test(|| {
55 let error = Error::msg("hello");
56 let error = error.context("goodbye");
57 for _ in error.chain() {
58 // Nothing to do here, just exercising the iteration.
59 }
60 ok_if_not_oom(error)
61 })
62}
63
64struct Null;
65impl Write for Null {

Callers

nothing calls this directly

Calls 6

msgFunction · 0.85
ok_if_not_oomFunction · 0.85
chainMethod · 0.80
newFunction · 0.50
testMethod · 0.45
contextMethod · 0.45

Tested by

no test coverage detected