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

Method CreateCalls

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

CreateCalls gets all the calls that were made to Create. Check the length with: len(mockedArtifactClient.CreateCalls())

()

Source from the content-addressed store, hash-verified

177//
178// len(mockedArtifactClient.CreateCalls())
179func (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.
200func (mock *ArtifactClientMock) Delete(repo ghrepo.Interface, issueNumber int, number int) error {

Callers 1

TestCreateRunFunction · 0.95

Calls

no outgoing calls

Tested by 1

TestCreateRunFunction · 0.76