()
| 981 | |
| 982 | #[test] |
| 983 | fn test_total_lines() { |
| 984 | let old = b"a\nb\nc\n"; |
| 985 | let new = b"a\nx\ny\nc\n"; |
| 986 | let diff = UnifiedDiff::new(old, new, Algorithm::Myers); |
| 987 | |
| 988 | let total = diff.total_lines(); |
| 989 | let actual: Vec<_> = diff.lines().collect(); |
| 990 | assert_eq!(actual.len(), total); |
| 991 | } |
| 992 | } |
nothing calls this directly
no test coverage detected