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

Method GetJobCalls

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

GetJobCalls gets all the calls that were made to GetJob. Check the length with: len(mockedCapiClient.GetJobCalls())

()

Source from the content-addressed store, hash-verified

229//
230// len(mockedCapiClient.GetJobCalls())
231func (mock *CapiClientMock) GetJobCalls() []struct {
232 Ctx context.Context
233 Owner string
234 Repo string
235 JobID string
236} {
237 var calls []struct {
238 Ctx context.Context
239 Owner string
240 Repo string
241 JobID string
242 }
243 mock.lockGetJob.RLock()
244 calls = mock.calls.GetJob
245 mock.lockGetJob.RUnlock()
246 return calls
247}
248
249// GetPullRequestDatabaseID calls GetPullRequestDatabaseIDFunc.
250func (mock *CapiClientMock) GetPullRequestDatabaseID(ctx context.Context, hostname string, owner string, repo string, number int) (int64, string, error) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected