diff --git a/command/testing.go b/command/testing.go index e12cc38e3..367d510bb 100644 --- a/command/testing.go +++ b/command/testing.go @@ -2,7 +2,6 @@ package command import ( "bytes" - "errors" "fmt" "github.com/cli/cli/api" @@ -102,18 +101,6 @@ func RunCommand(args string) (*cmdOut, error) { return &cmdOut{&outBuf, &errBuf}, err } -type errorStub struct { - message string -} - -func (s errorStub) Output() ([]byte, error) { - return nil, errors.New(s.message) -} - -func (s errorStub) Run() error { - return errors.New(s.message) -} - func stubTerminal(connected bool) func() { isTerminal := utils.IsTerminal utils.IsTerminal = func(_ interface{}) bool {