MCPcopy Index your code
hub / github.com/cli/cli / Test_transferRun_noflags

Function Test_transferRun_noflags

pkg/cmd/issue/transfer/transfer_test.go:146–157  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

144}
145
146func Test_transferRun_noflags(t *testing.T) {
147 http := &httpmock.Registry{}
148 defer http.Verify(t)
149
150 output, err := runCommand(http, "")
151
152 if err != nil {
153 assert.Equal(t, "issue and destination repository are required", err.Error())
154 }
155
156 assert.Equal(t, "", output.String())
157}
158
159func Test_transferRunSuccessfulIssueTransfer(t *testing.T) {
160 http := &httpmock.Registry{}

Callers

nothing calls this directly

Calls 5

VerifyMethod · 0.95
EqualMethod · 0.80
runCommandFunction · 0.70
ErrorMethod · 0.45
StringMethod · 0.45

Tested by

no test coverage detected