Delete calls DeleteFunc.
(repo ghrepo.Interface, issueNumber int, number int)
| 198 | |
| 199 | // Delete calls DeleteFunc. |
| 200 | func (mock *ArtifactClientMock) Delete(repo ghrepo.Interface, issueNumber int, number int) error { |
| 201 | if mock.DeleteFunc == nil { |
| 202 | panic("ArtifactClientMock.DeleteFunc: method is nil but ArtifactClient.Delete was just called") |
| 203 | } |
| 204 | callInfo := struct { |
| 205 | Repo ghrepo.Interface |
| 206 | IssueNumber int |
| 207 | Number int |
| 208 | }{ |
| 209 | Repo: repo, |
| 210 | IssueNumber: issueNumber, |
| 211 | Number: number, |
| 212 | } |
| 213 | mock.lockDelete.Lock() |
| 214 | mock.calls.Delete = append(mock.calls.Delete, callInfo) |
| 215 | mock.lockDelete.Unlock() |
| 216 | return mock.DeleteFunc(repo, issueNumber, number) |
| 217 | } |
| 218 | |
| 219 | // DeleteCalls gets all the calls that were made to Delete. |
| 220 | // Check the length with: |
nothing calls this directly
no outgoing calls
no test coverage detected