()
| 727 | |
| 728 | #[test] |
| 729 | fn test_output_line_empty() { |
| 730 | // Empty span (start == end) |
| 731 | let node = GraphNode::new( |
| 732 | NodeId::new(1), |
| 733 | ChangePosition::new(0), |
| 734 | ChangePosition::new(0), |
| 735 | ); |
| 736 | |
| 737 | let buffer = with_writer(|writer| { |
| 738 | let result: Result<(), std::io::Error> = writer.output_line(node, |_buf| { |
| 739 | panic!("Should not be called for empty node"); |
| 740 | }); |
| 741 | |
| 742 | assert!(result.is_ok()); |
| 743 | }); |
| 744 | assert!(buffer.is_empty()); |
| 745 | } |
| 746 | |
| 747 | // ------------------------------------------------------------------------ |
| 748 | // Count Digits Tests |
nothing calls this directly
no test coverage detected