jesseduffield.lazygit/pkg/commands
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
..
git_commands Fix seg-fault when opening submodule in nested folder 2023-08-07 23:57:28 +10:00
git_config Remove secureexec package 2023-07-30 19:59:51 +10:00
hosting_service Standardise on using lo for slice functions 2023-07-30 18:51:23 +10:00
models Use fields rather than methods on worktrees 2023-07-30 18:35:24 +10:00
oscommands Appease linter 2023-08-02 08:32:57 +10:00
patch Add test case for LineNumberOfLine() 2023-08-10 07:22:42 +02:00
testdata Support opening lazygit in a submodule 2019-05-12 17:59:49 +10:00
types/enums more refactoring 2022-01-04 09:07:15 +11:00
git.go Write unit tests with the help of afero 2023-07-30 18:35:36 +10:00
git_cmd_obj_builder.go Construct arg vector manually rather than parse string 2023-05-23 19:49:19 +10:00
git_cmd_obj_runner.go Retry on index.lock error 2023-07-10 19:13:18 +10:00
git_test.go Write unit tests with the help of afero 2023-07-30 18:35:36 +10:00