diff options
author | Liberatys <nick.flueckiger@renuo.ch> | 2021-08-03 22:47:11 +0200 |
---|---|---|
committer | Jesse Duffield <jessedduffield@gmail.com> | 2021-08-25 20:13:50 +1000 |
commit | 711bd5a670f5321495700a55503e4d4a9742f7ae (patch) | |
tree | 1f3d3b08ef6cde7bf6737b43a4203f51b1ab1f61 /pkg/gui/filetree | |
parent | 6b68f4f25d3c717d8540ce7ac5b2ccf4b82e41e3 (diff) |
Lint
Diffstat (limited to 'pkg/gui/filetree')
-rw-r--r-- | pkg/gui/filetree/file_manager_test.go | 32 |
1 files changed, 16 insertions, 16 deletions
diff --git a/pkg/gui/filetree/file_manager_test.go b/pkg/gui/filetree/file_manager_test.go index a365a37b5..36343bc13 100644 --- a/pkg/gui/filetree/file_manager_test.go +++ b/pkg/gui/filetree/file_manager_test.go @@ -105,40 +105,40 @@ func TestFilterAction(t *testing.T) { name: "filter files with unstaged changes", filter: DisplayUnstaged, files: []*models.File{ - &models.File{Name: "dir2/dir2/file4", ShortStatus: "M ", HasUnstagedChanges: true}, - &models.File{Name: "dir2/file5", ShortStatus: "M ", HasStagedChanges: true}, - &models.File{Name: "file1", ShortStatus: "M ", HasUnstagedChanges: true}, + {Name: "dir2/dir2/file4", ShortStatus: "M ", HasUnstagedChanges: true}, + {Name: "dir2/file5", ShortStatus: "M ", HasStagedChanges: true}, + {Name: "file1", ShortStatus: "M ", HasUnstagedChanges: true}, }, expected: []*models.File{ - &models.File{Name: "dir2/dir2/file4", ShortStatus: "M ", HasUnstagedChanges: true}, - &models.File{Name: "file1", ShortStatus: "M ", HasUnstagedChanges: true}, + {Name: "dir2/dir2/file4", ShortStatus: "M ", HasUnstagedChanges: true}, + {Name: "file1", ShortStatus: "M ", HasUnstagedChanges: true}, }, }, { name: "filter files with staged changes", filter: DisplayStaged, files: []*models.File{ - &models.File{Name: "dir2/dir2/file4", ShortStatus: "M ", HasStagedChanges: true}, - &models.File{Name: "dir2/file5", ShortStatus: "M ", HasStagedChanges: false}, - &models.File{Name: "file1", ShortStatus: "M ", HasStagedChanges: true}, + {Name: "dir2/dir2/file4", ShortStatus: "M ", HasStagedChanges: true}, + {Name: "dir2/file5", ShortStatus: "M ", HasStagedChanges: false}, + {Name: "file1", ShortStatus: "M ", HasStagedChanges: true}, }, expected: []*models.File{ - &models.File{Name: "dir2/dir2/file4", ShortStatus: "M ", HasStagedChanges: true}, - &models.File{Name: "file1", ShortStatus: "M ", HasStagedChanges: true}, + {Name: "dir2/dir2/file4", ShortStatus: "M ", HasStagedChanges: true}, + {Name: "file1", ShortStatus: "M ", HasStagedChanges: true}, }, }, { name: "filter all files", filter: DisplayAll, files: []*models.File{ - &models.File{Name: "dir2/dir2/file4", ShortStatus: "M ", HasUnstagedChanges: true}, - &models.File{Name: "dir2/file5", ShortStatus: "M ", HasUnstagedChanges: true}, - &models.File{Name: "file1", ShortStatus: "M ", HasUnstagedChanges: true}, + {Name: "dir2/dir2/file4", ShortStatus: "M ", HasUnstagedChanges: true}, + {Name: "dir2/file5", ShortStatus: "M ", HasUnstagedChanges: true}, + {Name: "file1", ShortStatus: "M ", HasUnstagedChanges: true}, }, expected: []*models.File{ - &models.File{Name: "dir2/dir2/file4", ShortStatus: "M ", HasUnstagedChanges: true}, - &models.File{Name: "dir2/file5", ShortStatus: "M ", HasUnstagedChanges: true}, - &models.File{Name: "file1", ShortStatus: "M ", HasUnstagedChanges: true}, + {Name: "dir2/dir2/file4", ShortStatus: "M ", HasUnstagedChanges: true}, + {Name: "dir2/file5", ShortStatus: "M ", HasUnstagedChanges: true}, + {Name: "file1", ShortStatus: "M ", HasUnstagedChanges: true}, }, }, } |