()
| 658 | |
| 659 | #[test] |
| 660 | fn test_take_conflicts() { |
| 661 | with_writer(|writer| { |
| 662 | writer.begin_conflict(1, None).unwrap(); |
| 663 | writer.end_conflict(1).unwrap(); |
| 664 | writer.begin_conflict(2, None).unwrap(); |
| 665 | writer.end_conflict(2).unwrap(); |
| 666 | |
| 667 | let conflicts = writer.take_conflicts(); |
| 668 | assert_eq!(conflicts.len(), 2); |
| 669 | assert!(writer.conflicts().is_empty()); |
| 670 | }); |
| 671 | } |
| 672 | |
| 673 | // ------------------------------------------------------------------------ |
| 674 | // Into Inner Tests |
nothing calls this directly
no test coverage detected