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

Function iter

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

Source from the content-addressed store, hash-verified

78/// results in `ABDECFGH`.
79#[test]
80fn iter() {
81 let report = build();
82
83 assert_eq!(
84 report
85 .frames()
86 .filter_map(|frame| frame.downcast_ref::<Char>().map(|ch| ch.0))
87 .collect::<Vec<_>>(),
88 ['A', 'B', 'C', 'D', 'E', 'F', 'G', 'H']
89 );
90}
91
92#[test]
93fn iter_mut() {

Callers

nothing calls this directly

Calls 1

buildFunction · 0.70

Tested by

no test coverage detected