()
| 442 | |
| 443 | #[test] |
| 444 | fn capture_single() { |
| 445 | let mut sink = ReportSink::new(); |
| 446 | |
| 447 | sink.capture(TestError(0)); |
| 448 | |
| 449 | let report = sink.finish().expect_err("should have failed"); |
| 450 | |
| 451 | let contexts: BTreeSet<_> = report.current_contexts().collect(); |
| 452 | assert_eq!(contexts.len(), 1); |
| 453 | assert!(contexts.contains(&TestError(0))); |
| 454 | } |
| 455 | |
| 456 | #[test] |
| 457 | fn capture_multiple() { |
nothing calls this directly
no test coverage detected