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

Function push

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

Source from the content-addressed store, hash-verified

37
38#[test]
39fn push() {
40 let mut err1 = MyError.into_report().attach("Not Supported").expand();
41 let err2 = MyError.into_report().attach("Not Supported");
42 let err3 = MyError.into_report().attach("Not Supported");
43
44 let count = expect_count(2) * 3;
45
46 err1.push(err2);
47 err1.push(err3);
48
49 assert_eq!(err1.current_frames().len(), 3);
50 assert_eq!(err1.frames().count(), count);
51}
52
53#[test]
54fn extend() {

Callers 4

PageFunction · 0.50
FlowVisualizerFunction · 0.50
TopbarFunction · 0.50
createGoalFunction · 0.50

Calls 5

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

Tested by

no test coverage detected