From 23432dd90976976004ad9b4c6aca4d2ed8318c37 Mon Sep 17 00:00:00 2001 From: Jesse Duffield Date: Sat, 22 Aug 2020 18:51:07 +1000 Subject: [PATCH] remove test --- pkg/commands/git_test.go | 38 -------------------------------------- 1 file changed, 38 deletions(-) diff --git a/pkg/commands/git_test.go b/pkg/commands/git_test.go index dc04e2018..6e0d345ee 100644 --- a/pkg/commands/git_test.go +++ b/pkg/commands/git_test.go @@ -1814,44 +1814,6 @@ func TestGitCommandDiscardOldFileChanges(t *testing.T) { } } -// TestGitCommandShowCommitFile is a function. -func TestGitCommandShowCommitFile(t *testing.T) { - type scenario struct { - testName string - commitSha string - fileName string - command func(string, ...string) *exec.Cmd - test func(string, error) - } - - scenarios := []scenario{ - { - "valid case", - "123456", - "hello.txt", - test.CreateMockCommand(t, []*test.CommandSwapper{ - { - Expect: "git show --no-renames --color=never 123456 -- hello.txt", - Replace: "echo -n hello", - }, - }), - func(str string, err error) { - assert.NoError(t, err) - assert.Equal(t, "hello", str) - }, - }, - } - - gitCmd := NewDummyGitCommand() - - for _, s := range scenarios { - t.Run(s.testName, func(t *testing.T) { - gitCmd.OSCommand.command = s.command - s.test(gitCmd.ShowFileDiff(s.commitSha+"^", s.commitSha, false, s.fileName, true)) - }) - } -} - // TestGitCommandDiscardUnstagedFileChanges is a function. func TestGitCommandDiscardUnstagedFileChanges(t *testing.T) { type scenario struct {