Get calls GetFunc.
(repo ghrepo.Interface, issueNumber int, number int)
| 238 | |
| 239 | // Get calls GetFunc. |
| 240 | func (mock *ArtifactClientMock) Get(repo ghrepo.Interface, issueNumber int, number int) (*ArtifactWithVersions, error) { |
| 241 | if mock.GetFunc == nil { |
| 242 | panic("ArtifactClientMock.GetFunc: method is nil but ArtifactClient.Get was just called") |
| 243 | } |
| 244 | callInfo := struct { |
| 245 | Repo ghrepo.Interface |
| 246 | IssueNumber int |
| 247 | Number int |
| 248 | }{ |
| 249 | Repo: repo, |
| 250 | IssueNumber: issueNumber, |
| 251 | Number: number, |
| 252 | } |
| 253 | mock.lockGet.Lock() |
| 254 | mock.calls.Get = append(mock.calls.Get, callInfo) |
| 255 | mock.lockGet.Unlock() |
| 256 | return mock.GetFunc(repo, issueNumber, number) |
| 257 | } |
| 258 | |
| 259 | // GetCalls gets all the calls that were made to Get. |
| 260 | // Check the length with: |
nothing calls this directly
no outgoing calls
no test coverage detected