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