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

Method ResolveCommentNodeID

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

ResolveCommentNodeID calls ResolveCommentNodeIDFunc.

(repo ghrepo.Interface, commentDatabaseID int64)

Source from the content-addressed store, hash-verified

642
643// ResolveCommentNodeID calls ResolveCommentNodeIDFunc.
644func (mock *DiscussionClientMock) ResolveCommentNodeID(repo ghrepo.Interface, commentDatabaseID int64) (string, error) {
645 if mock.ResolveCommentNodeIDFunc == nil {
646 panic("DiscussionClientMock.ResolveCommentNodeIDFunc: method is nil but DiscussionClient.ResolveCommentNodeID was just called")
647 }
648 callInfo := struct {
649 Repo ghrepo.Interface
650 CommentDatabaseID int64
651 }{
652 Repo: repo,
653 CommentDatabaseID: commentDatabaseID,
654 }
655 mock.lockResolveCommentNodeID.Lock()
656 mock.calls.ResolveCommentNodeID = append(mock.calls.ResolveCommentNodeID, callInfo)
657 mock.lockResolveCommentNodeID.Unlock()
658 return mock.ResolveCommentNodeIDFunc(repo, commentDatabaseID)
659}
660
661// ResolveCommentNodeIDCalls gets all the calls that were made to ResolveCommentNodeID.
662// Check the length with:

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected