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

Function collect_none

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

Source from the content-addressed store, hash-verified

93
94#[test]
95fn collect_none() {
96 let report: Option<Report<[MyError]>> = ([] as [Report<MyError>; 0]).into_iter().collect();
97
98 assert!(report.is_none());
99}

Callers

nothing calls this directly

Calls 2

collectMethod · 0.80
into_iterMethod · 0.45

Tested by

no test coverage detected