summaryrefslogtreecommitdiffstats
path: root/pkg/commands/dummies.go
diff options
context:
space:
mode:
authorJesse Duffield <jessedduffield@gmail.com>2022-01-03 15:15:26 +1100
committerJesse Duffield <jessedduffield@gmail.com>2022-01-04 09:07:15 +1100
commit95b2e9540a55973a6ab32dd4522648634ab15b0a (patch)
tree060e999ab894da8ecc6ead32cf0ccee64b05fd21 /pkg/commands/dummies.go
parent3911575041ab67731a59dd597332bfc4543a9569 (diff)
update tests
Diffstat (limited to 'pkg/commands/dummies.go')
-rw-r--r--pkg/commands/dummies.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/pkg/commands/dummies.go b/pkg/commands/dummies.go
index 126007baa..ae6ba81e9 100644
--- a/pkg/commands/dummies.go
+++ b/pkg/commands/dummies.go
@@ -16,8 +16,12 @@ func NewDummyGitCommand() *GitCommand {
// NewDummyGitCommandWithOSCommand creates a new dummy GitCommand for testing
func NewDummyGitCommandWithOSCommand(osCommand *oscommands.OSCommand) *GitCommand {
+ runner := &oscommands.FakeCmdObjRunner{}
+ builder := oscommands.NewDummyCmdObjBuilder(runner)
+
return &GitCommand{
Common: utils.NewDummyCommon(),
+ Cmd: builder,
OSCommand: osCommand,
GitConfig: git_config.NewFakeGitConfig(map[string]string{}),
GetCmdWriter: func() io.Writer { return ioutil.Discard },