(report: &Report<E>)
| 7 | use error_stack::{AttachmentKind, FrameKind, FutureExt as _, Report, ResultExt as _}; |
| 8 | |
| 9 | fn test_messages<E>(report: &Report<E>) { |
| 10 | assert_eq!( |
| 11 | remove_builtin_messages(messages(report)), |
| 12 | remove_builtin_messages([ |
| 13 | "context B", |
| 14 | "context A", |
| 15 | "printable B", |
| 16 | "printable A", |
| 17 | "root error" |
| 18 | ]) |
| 19 | ); |
| 20 | } |
| 21 | |
| 22 | fn test_kinds<E>(report: &Report<E>) { |
| 23 | assert_kinds!( |
no outgoing calls
no test coverage detected