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

Function extend

libs/error-stack/tests/test_extend.rs:54–62  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

52
53#[test]
54fn extend() {
55 let mut err1 = MyError.into_report().attach("Not Supported").expand();
56 let err2 = MyError.into_report().attach("Not Supported");
57 let err3 = MyError.into_report().attach("Not Supported");
58
59 err1.extend([err2, err3]);
60 assert_eq!(err1.current_frames().len(), 3);
61 assert_eq!(err1.frames().count(), expect_count(2) * 3);
62}
63
64#[test]
65fn collect_single() {

Callers

nothing calls this directly

Calls 4

expandMethod · 0.80
attachMethod · 0.45
into_reportMethod · 0.45
extendMethod · 0.45

Tested by

no test coverage detected