MCPcopy Create free account
hub / github.com/cli/cli / Delete

Method Delete

pkg/cmd/issue/artifact/client/client_mock.go:200–217  ·  view source on GitHub ↗

Delete calls DeleteFunc.

(repo ghrepo.Interface, issueNumber int, number int)

Source from the content-addressed store, hash-verified

198
199// Delete calls DeleteFunc.
200func (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:

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected