MCPcopy Create free account
hub / github.com/cli/cli / Test_List_perRepository

Function Test_List_perRepository

pkg/cmd/run/download/http_test.go:44–58  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

42}
43
44func Test_List_perRepository(t *testing.T) {
45 reg := &httpmock.Registry{}
46 defer reg.Verify(t)
47
48 reg.Register(
49 httpmock.REST("GET", "repos/OWNER/REPO/actions/artifacts"),
50 httpmock.StringResponse(`{}`))
51
52 api := &apiPlatform{
53 client: &http.Client{Transport: reg},
54 repo: ghrepo.New("OWNER", "REPO"),
55 }
56 _, err := api.List("")
57 require.NoError(t, err)
58}
59
60func Test_Download(t *testing.T) {
61 tmpDir := t.TempDir()

Callers

nothing calls this directly

Calls 6

VerifyMethod · 0.95
RegisterMethod · 0.95
ListMethod · 0.95
RESTFunction · 0.92
StringResponseFunction · 0.92
NewFunction · 0.92

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…