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

Method GetJob

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

GetJob calls GetJobFunc.

(ctx context.Context, owner string, repo string, jobID string)

Source from the content-addressed store, hash-verified

204
205// GetJob calls GetJobFunc.
206func (mock *CapiClientMock) GetJob(ctx context.Context, owner string, repo string, jobID string) (*Job, error) {
207 if mock.GetJobFunc == nil {
208 panic("CapiClientMock.GetJobFunc: method is nil but CapiClient.GetJob was just called")
209 }
210 callInfo := struct {
211 Ctx context.Context
212 Owner string
213 Repo string
214 JobID string
215 }{
216 Ctx: ctx,
217 Owner: owner,
218 Repo: repo,
219 JobID: jobID,
220 }
221 mock.lockGetJob.Lock()
222 mock.calls.GetJob = append(mock.calls.GetJob, callInfo)
223 mock.lockGetJob.Unlock()
224 return mock.GetJobFunc(ctx, owner, repo, jobID)
225}
226
227// GetJobCalls gets all the calls that were made to GetJob.
228// Check the length with:

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected