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

Function format_err_macro_core_error

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

Source from the content-addressed store, hash-verified

269
270#[test]
271fn format_err_macro_core_error() {
272 let error = TestError(42);
273 let error = format_err!(error);
274 assert!(error.is::<TestError>());
275 assert_eq!(error.to_string(), "TestError(42)");
276}
277
278#[test]
279fn format_err_macro_core_error_chain() {

Callers

nothing calls this directly

Calls 1

TestErrorClass · 0.70

Tested by

no test coverage detected