mirror of
https://github.com/jesseduffield/lazygit.git
synced 2025-06-15 00:15:32 +02:00
commit files kind of generalised
This commit is contained in:
@ -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))
|
||||
})
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user