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

Function uploadMatcher

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

Source from the content-addressed store, hash-verified

79}
80
81func uploadMatcher(repositoryID int64, name string) httpmock.Matcher {
82 return httpmock.QueryMatcher("POST", "user-attachments/assets", url.Values{
83 "repository_id": []string{strconv.FormatInt(repositoryID, 10)},
84 "name": []string{name},
85 })
86}
87
88// UploadStub is one stubbed reply from the asset upload endpoint, named for the
89// 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