()
| 455 | |
| 456 | #[test] |
| 457 | fn capture_multiple() { |
| 458 | let mut sink = ReportSink::new(); |
| 459 | |
| 460 | sink.capture(TestError(0)); |
| 461 | sink.capture(TestError(1)); |
| 462 | |
| 463 | let report = sink.finish().expect_err("should have failed"); |
| 464 | |
| 465 | let contexts: BTreeSet<_> = report.current_contexts().collect(); |
| 466 | assert_eq!(contexts.len(), 2); |
| 467 | assert!(contexts.contains(&TestError(0))); |
| 468 | assert!(contexts.contains(&TestError(1))); |
| 469 | } |
| 470 | |
| 471 | #[test] |
| 472 | fn new_does_not_panic() { |
nothing calls this directly
no test coverage detected