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

Function stubRepository

pkg/cmd/skills/install/install_test.go:225–227  ·  view source on GitHub ↗

stubRepository registers the repository lookup made on every remote install.

(reg *httpmock.Registry, owner, repo string, resp httpmock.Responder)

Source from the content-addressed store, hash-verified

223
224// stubRepository registers the repository lookup made on every remote install.
225func stubRepository(reg *httpmock.Registry, owner, repo string, resp httpmock.Responder) {
226 reg.Register(httpmock.REST("GET", fmt.Sprintf("repos/%s/%s", owner, repo)), resp)
227}
228
229// stubResolveLatestTag registers API stubs for latest release + tag resolution.
230func stubResolveLatestTag(reg *httpmock.Registry, owner, repo, tag, sha string) {

Callers 5

stubResolveVersionFunction · 0.85
TestInstallRunFunction · 0.85

Calls 2

RESTFunction · 0.92
RegisterMethod · 0.45

Tested by

no test coverage detected