GetJobCalls gets all the calls that were made to GetJob. Check the length with: len(mockedCapiClient.GetJobCalls())
()
| 229 | // |
| 230 | // len(mockedCapiClient.GetJobCalls()) |
| 231 | func (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. |
| 250 | func (mock *CapiClientMock) GetPullRequestDatabaseID(ctx context.Context, hostname string, owner string, repo string, number int) (int64, string, error) { |
nothing calls this directly
no outgoing calls
no test coverage detected