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

Function uploadMatcher

internal/attachments/test.go:61–66  ·  view source on GitHub ↗
(repositoryID int64, name string)

Source from the content-addressed store, hash-verified

59}
60
61func uploadMatcher(repositoryID int64, name string) httpmock.Matcher {
62 return httpmock.QueryMatcher("POST", "user-attachments/assets", url.Values{
63 "repository_id": []string{strconv.FormatInt(repositoryID, 10)},
64 "name": []string{name},
65 })
66}
67
68// UploadStub is one stubbed reply from the asset upload endpoint, named for the
69// file it answers for. StubUpload registers one.

Callers 2

StubUploadFunction · 0.85
StubUploadToHostFunction · 0.85

Calls 1

QueryMatcherFunction · 0.92

Tested by

no test coverage detected