X Tutup
Skip to content

Commit cb897fd

Browse files
committed
remove unused errorStub from 'pr checkout' test
1 parent 696cbfc commit cb897fd

File tree

1 file changed

+0
-13
lines changed

1 file changed

+0
-13
lines changed

pkg/cmd/pr/checkout/checkout_test.go

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ package checkout
33
import (
44
"bytes"
55
"encoding/json"
6-
"errors"
76
"io/ioutil"
87
"net/http"
98
"testing"
@@ -22,18 +21,6 @@ import (
2221
"github.com/stretchr/testify/assert"
2322
)
2423

25-
type errorStub struct {
26-
message string
27-
}
28-
29-
func (s errorStub) Output() ([]byte, error) {
30-
return nil, errors.New(s.message)
31-
}
32-
33-
func (s errorStub) Run() error {
34-
return errors.New(s.message)
35-
}
36-
3724
func runCommand(rt http.RoundTripper, remotes context.Remotes, branch string, cli string) (*test.CmdOut, error) {
3825
io, _, stdout, stderr := iostreams.Test()
3926

0 commit comments

Comments
 (0)
X Tutup