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

Function collect_multiple

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

Source from the content-addressed store, hash-verified

78
79#[test]
80fn collect_multiple() {
81 let report: Option<Report<[MyError]>> = vec![
82 MyError.into_report().expand(),
83 MyError.into_report().expand(),
84 MyError.into_report().expand(),
85 ]
86 .into_iter()
87 .collect();
88
89 let report = report.expect("should be some");
90 assert_eq!(report.current_frames().len(), 3);
91 assert_eq!(report.frames().count(), expect_count(1) * 3);
92}
93
94#[test]
95fn collect_none() {

Callers

nothing calls this directly

Calls 3

collectMethod · 0.80
into_iterMethod · 0.45
expectMethod · 0.45

Tested by

no test coverage detected