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

Method CreateJobCalls

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

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

()

Source from the content-addressed store, hash-verified

181//
182// len(mockedCapiClient.CreateJobCalls())
183func (mock *CapiClientMock) CreateJobCalls() []struct {
184 Ctx context.Context
185 Owner string
186 Repo string
187 ProblemStatement string
188 BaseBranch string
189 CustomAgent string
190} {
191 var calls []struct {
192 Ctx context.Context
193 Owner string
194 Repo string
195 ProblemStatement string
196 BaseBranch string
197 CustomAgent string
198 }
199 mock.lockCreateJob.RLock()
200 calls = mock.calls.CreateJob
201 mock.lockCreateJob.RUnlock()
202 return calls
203}
204
205// GetJob calls GetJobFunc.
206func (mock *CapiClientMock) GetJob(ctx context.Context, owner string, repo string, jobID string) (*Job, error) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected