CreateJobCalls gets all the calls that were made to CreateJob. Check the length with: len(mockedCapiClient.CreateJobCalls())
()
| 181 | // |
| 182 | // len(mockedCapiClient.CreateJobCalls()) |
| 183 | func (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. |
| 206 | func (mock *CapiClientMock) GetJob(ctx context.Context, owner string, repo string, jobID string) (*Job, error) { |
nothing calls this directly
no outgoing calls
no test coverage detected