MCPcopy Create free account
hub / github.com/hashintel/hash / downcast_mut_miss

Function downcast_mut_miss

libs/error-stack/tests/test_downcast.rs:98–101  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

96
97#[test]
98fn downcast_mut_miss() {
99 let mut report = create_report().attach_opaque(AttachmentA(10));
100 assert!(report.downcast_mut::<AttachmentB>().is_none());
101}

Callers

nothing calls this directly

Calls 3

AttachmentAClass · 0.85
create_reportFunction · 0.70
attach_opaqueMethod · 0.45

Tested by

no test coverage detected