summaryrefslogtreecommitdiffstats
path: root/pkg/commands/files_test.go
diff options
context:
space:
mode:
authorJesse Duffield <jessedduffield@gmail.com>2021-11-21 12:48:49 +1100
committerJesse Duffield <jessedduffield@gmail.com>2021-12-06 22:37:28 +1100
commit1996eddd9124709431ced14b1650ae5a50963be7 (patch)
tree021b88b94139b21beae4cae92b9f0a119e7361f2 /pkg/commands/files_test.go
parentde0e885c65c7d6505055af490e58c21aad59f67e (diff)
more efficient context diff size changing
Diffstat (limited to 'pkg/commands/files_test.go')
-rw-r--r--pkg/commands/files_test.go16
1 files changed, 8 insertions, 8 deletions
diff --git a/pkg/commands/files_test.go b/pkg/commands/files_test.go
index a16c52a7d..6965f82c2 100644
--- a/pkg/commands/files_test.go
+++ b/pkg/commands/files_test.go
@@ -444,13 +444,13 @@ func TestGitCommandDiff(t *testing.T) {
// TestGitCommandShowFileDiff is a function.
func TestGitCommandShowFileDiff(t *testing.T) {
type scenario struct {
- testName string
- command func(string, ...string) *exec.Cmd
- from string
- to string
- reverse bool
- plain bool
- contextSize int
+ testName string
+ command func(string, ...string) *exec.Cmd
+ from string
+ to string
+ reverse bool
+ plain bool
+ contextSize int
}
scenarios := []scenario{
@@ -489,7 +489,7 @@ func TestGitCommandShowFileDiff(t *testing.T) {
gitCmd := NewDummyGitCommand()
gitCmd.OSCommand.Command = s.command
gitCmd.Config.GetUserConfig().Git.DiffContextSize = s.contextSize
- gitCmd.ShowFileDiff(s.from, s.to, s.reverse, "test.txt", s.plain)
+ _, _ = gitCmd.ShowFileDiff(s.from, s.to, s.reverse, "test.txt", s.plain)
})
}
}