lazygit/pkg/commands/patch
Stefan Haller bf699d3a79 Add test case for LineNumberOfLine()
There's a bug in LineNumberOfLine, but the existing test coverage doesn't catch
it, as the only test case for this was one where oldStart and newStart were the
same for all hunks. Add a test case where newStart is different for one of the
hunks; this demonstrates a bug, where all expected results from index 12 on are
off by one.
2023-08-10 07:22:42 +02:00
..
format.go refactor patch code 2023-03-19 16:30:39 +11:00
hunk.go refactor patch code 2023-03-19 16:30:39 +11:00
parse.go refactor patch code 2023-03-19 16:30:39 +11:00
patch.go refactor patch code 2023-03-19 16:30:39 +11:00
patch_builder.go Standardise on using lo for slice functions 2023-07-30 18:51:23 +10:00
patch_line.go refactor patch code 2023-03-19 16:30:39 +11:00
patch_test.go Add test case for LineNumberOfLine() 2023-08-10 07:22:42 +02:00
transform.go refactor patch code 2023-03-19 16:30:39 +11:00