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

Method Update

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

Update calls UpdateFunc.

(repo ghrepo.Interface, input UpdateDiscussionInput)

Source from the content-addressed store, hash-verified

722
723// Update calls UpdateFunc.
724func (mock *DiscussionClientMock) Update(repo ghrepo.Interface, input UpdateDiscussionInput) (*Discussion, error) {
725 if mock.UpdateFunc == nil {
726 panic("DiscussionClientMock.UpdateFunc: method is nil but DiscussionClient.Update was just called")
727 }
728 callInfo := struct {
729 Repo ghrepo.Interface
730 Input UpdateDiscussionInput
731 }{
732 Repo: repo,
733 Input: input,
734 }
735 mock.lockUpdate.Lock()
736 mock.calls.Update = append(mock.calls.Update, callInfo)
737 mock.lockUpdate.Unlock()
738 return mock.UpdateFunc(repo, input)
739}
740
741// UpdateCalls gets all the calls that were made to Update.
742// Check the length with:

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected