jesseduffield.lazygit/pkg/gui/presentation
Stefan Haller 19d0048cc4 More explicit test of status panel content
Use Equals instead of Contains for asserting the status view content. This
solves the problem that we might assert Contains("↓2 repo"), but what it really
shows is "↑1↓2 repo", and the test still succeeds. At best this is confusing.

Also, this way we don't have to use the awkward DoesNotContain to check that it
really doesn't show a checkmark.

To do this, we need to fix two whitespace problems:
- there was always a space at the end for no reason. Simply remove it. It was
  added in efb51eee96, but from looking at that diff it seems it was added
  accidentally.
- there was a space at the beginning if the branch status was empty. This is
  actually a cosmetic problem, for branches without a status the text was
  indented by once space. Change this so that the space is added conditionally.
  It's a bit awkward that we have to use Decolorise here, but this will go away
  again later in this branch.
2024-06-03 13:02:46 +02:00
..
authors Right-align key labels in menu 2023-05-21 12:09:43 +10:00
graph Remove redundant variable dedeclarations 2024-05-19 16:38:21 +10:00
icons create iconProperties struct and convert iconMaps to use iconProperties 2023-10-18 21:21:36 +11:00
branches.go Rename Pushables/Pullables to AheadForPull/BehindForPull 2024-05-19 09:44:38 +02:00
branches_test.go Rename Pushables/Pullables to AheadForPull/BehindForPull 2024-05-19 09:44:38 +02:00
commits.go Enable the commit graph in the divergence view 2024-04-30 13:50:46 +02:00
commits_test.go Remove redundant variable dedeclarations 2024-05-19 16:38:21 +10:00
files.go Add config setting to suppress showing file icons 2024-01-22 08:40:03 +01:00
files_test.go Remove redundant variable dedeclarations 2024-05-19 16:38:21 +10:00
item_operations.go Show inline waiting status when checking out a local branch 2024-03-17 07:53:38 +01:00
reflog_commits.go rename sha to hash 10, last remaining sha (hopefully) 2024-04-12 08:33:47 +02:00
remote_branches.go Standardise on using lo for slice functions 2023-07-30 18:51:23 +10:00
remotes.go Add SpinnerConfig 2024-04-06 13:46:15 +02:00
stash_entries.go feat: add age on stash lines 2023-12-27 11:21:49 +01:00
status.go More explicit test of status panel content 2024-06-03 13:02:46 +02:00
submodules.go Show all submodules recursively 2024-03-07 20:16:28 +01:00
suggestions.go Standardise on using lo for slice functions 2023-07-30 18:51:23 +10:00
tags.go Add SpinnerConfig 2024-04-06 13:46:15 +02:00
working_tree.go Use sentence case everywhere 2023-05-25 23:52:19 +10:00
worktrees.go Use fields rather than methods on worktrees 2023-07-30 18:35:24 +10:00