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

Function push_append

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

Source from the content-addressed store, hash-verified

22
23#[test]
24fn push_append() {
25 let mut err1 = MyError.into_report().attach("Not Supported").expand();
26 let err2 = MyError.into_report().attach("Not Supported");
27 let mut err3 = MyError.into_report().attach("Not Supported").expand();
28
29 let count = expect_count(2) * 3;
30
31 err1.push(err2);
32 err3.append(err1);
33
34 assert_eq!(err3.current_frames().len(), 3);
35 assert_eq!(err3.frames().count(), count);
36}
37
38#[test]
39fn push() {

Callers

nothing calls this directly

Calls 6

expect_countFunction · 0.85
expandMethod · 0.80
pushMethod · 0.65
appendMethod · 0.65
attachMethod · 0.45
into_reportMethod · 0.45

Tested by

no test coverage detected