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

Method GetPullRequestDatabaseID

pkg/cmd/agent-task/capi/client_mock.go:250–271  ·  view source on GitHub ↗

GetPullRequestDatabaseID calls GetPullRequestDatabaseIDFunc.

(ctx context.Context, hostname string, owner string, repo string, number int)

Source from the content-addressed store, hash-verified

248
249// GetPullRequestDatabaseID calls GetPullRequestDatabaseIDFunc.
250func (mock *CapiClientMock) GetPullRequestDatabaseID(ctx context.Context, hostname string, owner string, repo string, number int) (int64, string, error) {
251 if mock.GetPullRequestDatabaseIDFunc == nil {
252 panic("CapiClientMock.GetPullRequestDatabaseIDFunc: method is nil but CapiClient.GetPullRequestDatabaseID was just called")
253 }
254 callInfo := struct {
255 Ctx context.Context
256 Hostname string
257 Owner string
258 Repo string
259 Number int
260 }{
261 Ctx: ctx,
262 Hostname: hostname,
263 Owner: owner,
264 Repo: repo,
265 Number: number,
266 }
267 mock.lockGetPullRequestDatabaseID.Lock()
268 mock.calls.GetPullRequestDatabaseID = append(mock.calls.GetPullRequestDatabaseID, callInfo)
269 mock.lockGetPullRequestDatabaseID.Unlock()
270 return mock.GetPullRequestDatabaseIDFunc(ctx, hostname, owner, repo, number)
271}
272
273// GetPullRequestDatabaseIDCalls gets all the calls that were made to GetPullRequestDatabaseID.
274// Check the length with:

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected