1
0
mirror of https://github.com/jesseduffield/lazygit.git synced 2025-01-08 04:04:22 +02:00
lazygit/pkg
Jesse Duffield dad2c5fa52 Add tests for window arrangement code
The output of the GetWindowDimensions function is hard to understand just by looking at it,
so I've added a helper function in the tests to render the window layout as text, so that
in order to create a new test you just come up with some args and paste the output as the
expected output.

This has the same downsides that any snapshot-based testing has: it's more brittle than
targeted assertions. But it is much easier to make sense of these snapshots than it is
to make sense of more fine-grained assertions, and I like the fact that these tests can
serve as documentation.
2023-12-09 11:53:52 +01:00
..
app respect and env vars 2023-09-25 12:20:12 +02:00
cheatsheet Use go:generate for generating cheatsheets 2023-09-29 20:38:29 +02:00
commands feat: introduce a copy menu into the file view 2023-12-07 08:30:03 +01:00
common Add AppState to common.Common 2023-09-04 17:48:39 +02:00
config feat: introduce a copy menu into the file view 2023-12-07 08:30:03 +01:00
constants
env Support bare worktrees where worktree does not have its own .git file 2023-08-07 22:40:53 +10:00
fakes
gui Add tests for window arrangement code 2023-12-09 11:53:52 +01:00
i18n feat: introduce a copy menu into the file view 2023-12-07 08:30:03 +01:00
integration feat: introduce a copy menu into the file view 2023-12-07 08:30:03 +01:00
jsonschema Add UserConfig jsonschema generation script 2023-12-02 10:46:24 +01:00
logs Remove secureexec package 2023-07-30 19:59:51 +10:00
snake
tasks Remove secureexec package 2023-07-30 19:59:51 +10:00
theme Add a "Mark commit as base commit for rebase" command 2023-07-31 08:41:41 +02:00
updates
utils Pass "now" into utils.Loader 2023-10-16 09:03:07 +02:00