()
| 649 | |
| 650 | #[test] |
| 651 | fn finish_with_value() { |
| 652 | let mut sink = ReportSink::new(); |
| 653 | |
| 654 | sink.append(Report::new(TestError(0))); |
| 655 | sink.append(Report::new(TestError(1))); |
| 656 | |
| 657 | let report = sink.finish_ok(8).expect_err("should have failed"); |
| 658 | |
| 659 | let contexts: BTreeSet<_> = report.current_contexts().collect(); |
| 660 | assert_eq!(contexts.len(), 2); |
| 661 | assert!(contexts.contains(&TestError(0))); |
| 662 | assert!(contexts.contains(&TestError(1))); |
| 663 | } |
| 664 | |
| 665 | #[test] |
| 666 | fn finish_with_value_ok() { |
nothing calls this directly
no test coverage detected