()
| 965 | |
| 966 | #[test] |
| 967 | fn test_change_hunk_extract() { |
| 968 | let content = b"hello world"; |
| 969 | let hunk = ChangeHunk::new(0, 5, HunkKind::Deleted); |
| 970 | assert_eq!(hunk.extract(content), b"hello"); |
| 971 | |
| 972 | let hunk2 = ChangeHunk::new(6, 11, HunkKind::Inserted); |
| 973 | assert_eq!(hunk2.extract(content), b"world"); |
| 974 | } |
| 975 | |
| 976 | #[test] |
| 977 | fn test_change_hunk_try_extract() { |
nothing calls this directly
no outgoing calls
no test coverage detected