diff options
author | Jesse Duffield <jessedduffield@gmail.com> | 2020-08-21 19:53:45 +1000 |
---|---|---|
committer | Jesse Duffield <jessedduffield@gmail.com> | 2020-08-23 14:29:18 +1000 |
commit | 2d90e1e8ee5ccb3d2acd8678e68137645c9e65bd (patch) | |
tree | cb623a51873bd086967ea794b21210861ce5031e /pkg/commands/git_test.go | |
parent | ddf25e14afe5ddfc2527149c54ea55ea2e83610a (diff) |
commit files kind of generalised
Diffstat (limited to 'pkg/commands/git_test.go')
-rw-r--r-- | pkg/commands/git_test.go | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/pkg/commands/git_test.go b/pkg/commands/git_test.go index a376e10bf..fba4d0482 100644 --- a/pkg/commands/git_test.go +++ b/pkg/commands/git_test.go @@ -1852,8 +1852,8 @@ func TestGitCommandShowCommitFile(t *testing.T) { } } -// TestGitCommandGetCommitFiles is a function. -func TestGitCommandGetCommitFiles(t *testing.T) { +// TestGitCommandGetFilesInRef is a function. +func TestGitCommandGetFilesInRef(t *testing.T) { type scenario struct { testName string commitSha string @@ -1886,7 +1886,7 @@ func TestGitCommandGetCommitFiles(t *testing.T) { for _, s := range scenarios { t.Run(s.testName, func(t *testing.T) { gitCmd.OSCommand.command = s.command - s.test(gitCmd.GetCommitFiles(s.commitSha, nil)) + s.test(gitCmd.GetFilesInRef(s.commitSha, false, nil)) }) } } |