CreateCalls gets all the calls that were made to Create. Check the length with: len(mockedArtifactClient.CreateCalls())
()
| 177 | // |
| 178 | // len(mockedArtifactClient.CreateCalls()) |
| 179 | func (mock *ArtifactClientMock) CreateCalls() []struct { |
| 180 | Repo ghrepo.Interface |
| 181 | IssueNumber int |
| 182 | ArtifactType string |
| 183 | Name string |
| 184 | Body string |
| 185 | } { |
| 186 | var calls []struct { |
| 187 | Repo ghrepo.Interface |
| 188 | IssueNumber int |
| 189 | ArtifactType string |
| 190 | Name string |
| 191 | Body string |
| 192 | } |
| 193 | mock.lockCreate.RLock() |
| 194 | calls = mock.calls.Create |
| 195 | mock.lockCreate.RUnlock() |
| 196 | return calls |
| 197 | } |
| 198 | |
| 199 | // Delete calls DeleteFunc. |
| 200 | func (mock *ArtifactClientMock) Delete(repo ghrepo.Interface, issueNumber int, number int) error { |
no outgoing calls