GetJob calls GetJobFunc.
(ctx context.Context, owner string, repo string, jobID string)
| 204 | |
| 205 | // GetJob calls GetJobFunc. |
| 206 | func (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: |
nothing calls this directly
no outgoing calls
no test coverage detected