remove unused errorStub from 'pr checkout' test

This commit is contained in:
Devon Romanko 2021-01-27 08:04:57 -05:00
parent 696cbfc8d1
commit cb897fd7e2

View file

@ -3,7 +3,6 @@ package checkout
import (
"bytes"
"encoding/json"
"errors"
"io/ioutil"
"net/http"
"testing"
@ -22,18 +21,6 @@ import (
"github.com/stretchr/testify/assert"
)
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 runCommand(rt http.RoundTripper, remotes context.Remotes, branch string, cli string) (*test.CmdOut, error) {
io, _, stdout, stderr := iostreams.Test()