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

Method Create

pkg/cmd/discussion/client/client_mock.go:296–311  ·  view source on GitHub ↗

Create calls CreateFunc.

(repo ghrepo.Interface, input CreateDiscussionInput)

Source from the content-addressed store, hash-verified

294
295// Create calls CreateFunc.
296func (mock *DiscussionClientMock) Create(repo ghrepo.Interface, input CreateDiscussionInput) (*Discussion, error) {
297 if mock.CreateFunc == nil {
298 panic("DiscussionClientMock.CreateFunc: method is nil but DiscussionClient.Create was just called")
299 }
300 callInfo := struct {
301 Repo ghrepo.Interface
302 Input CreateDiscussionInput
303 }{
304 Repo: repo,
305 Input: input,
306 }
307 mock.lockCreate.Lock()
308 mock.calls.Create = append(mock.calls.Create, callInfo)
309 mock.lockCreate.Unlock()
310 return mock.CreateFunc(repo, input)
311}
312
313// CreateCalls gets all the calls that were made to Create.
314// Check the length with:

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected