GetPullRequestDatabaseID calls GetPullRequestDatabaseIDFunc.
(ctx context.Context, hostname string, owner string, repo string, number int)
| 248 | |
| 249 | // GetPullRequestDatabaseID calls GetPullRequestDatabaseIDFunc. |
| 250 | func (mock *CapiClientMock) GetPullRequestDatabaseID(ctx context.Context, hostname string, owner string, repo string, number int) (int64, string, error) { |
| 251 | if mock.GetPullRequestDatabaseIDFunc == nil { |
| 252 | panic("CapiClientMock.GetPullRequestDatabaseIDFunc: method is nil but CapiClient.GetPullRequestDatabaseID was just called") |
| 253 | } |
| 254 | callInfo := struct { |
| 255 | Ctx context.Context |
| 256 | Hostname string |
| 257 | Owner string |
| 258 | Repo string |
| 259 | Number int |
| 260 | }{ |
| 261 | Ctx: ctx, |
| 262 | Hostname: hostname, |
| 263 | Owner: owner, |
| 264 | Repo: repo, |
| 265 | Number: number, |
| 266 | } |
| 267 | mock.lockGetPullRequestDatabaseID.Lock() |
| 268 | mock.calls.GetPullRequestDatabaseID = append(mock.calls.GetPullRequestDatabaseID, callInfo) |
| 269 | mock.lockGetPullRequestDatabaseID.Unlock() |
| 270 | return mock.GetPullRequestDatabaseIDFunc(ctx, hostname, owner, repo, number) |
| 271 | } |
| 272 | |
| 273 | // GetPullRequestDatabaseIDCalls gets all the calls that were made to GetPullRequestDatabaseID. |
| 274 | // Check the length with: |
nothing calls this directly
no outgoing calls
no test coverage detected