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

Function collect_single

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

Source from the content-addressed store, hash-verified

63
64#[test]
65fn collect_single() {
66 let report: Option<Report<[MyError]>> = vec![
67 MyError.into_report(),
68 MyError.into_report(),
69 MyError.into_report(),
70 ]
71 .into_iter()
72 .collect();
73
74 let report = report.expect("should be some");
75 assert_eq!(report.current_frames().len(), 3);
76 assert_eq!(report.frames().count(), expect_count(1) * 3);
77}
78
79#[test]
80fn collect_multiple() {

Callers

nothing calls this directly

Calls 3

collectMethod · 0.80
into_iterMethod · 0.45
expectMethod · 0.45

Tested by

no test coverage detected