Documentation ¶
Overview ¶
Package gh is a generated GoMock package.
Index ¶
- Variables
- type CallClient
- type GitHub
- type MockclientI
- func (m *MockclientI) EXPECT() *MockclientIMockRecorder
- func (m *MockclientI) GetCommentByID(commentID int64) *github.PullRequestComment
- func (m *MockclientI) GetCommentList() []*github.PullRequestComment
- func (m *MockclientI) GetPR() PR
- func (m *MockclientI) PRCommits() []*github.RepositoryCommit
- func (m *MockclientI) SendReply(arg0 Reply) error
- type MockclientIMockRecorder
- func (mr *MockclientIMockRecorder) GetCommentByID(commentID interface{}) *gomock.Call
- func (mr *MockclientIMockRecorder) GetCommentList() *gomock.Call
- func (mr *MockclientIMockRecorder) GetPR() *gomock.Call
- func (mr *MockclientIMockRecorder) PRCommits() *gomock.Call
- func (mr *MockclientIMockRecorder) SendReply(arg0 interface{}) *gomock.Call
- type PR
- type Reply
Constants ¶
This section is empty.
Variables ¶
var (
NotFoundGitRemoteError = errors.New("not found remote URL...")
)
Functions ¶
This section is empty.
Types ¶
type CallClient ¶
type CallClient struct { API clientI Writer io.Writer Commits []*github.RepositoryCommit Replys []Reply PRComment string }
func NewClient ¶
func NewClient(api clientI, writer io.Writer) *CallClient
func (*CallClient) Display ¶
func (c *CallClient) Display()
func (*CallClient) FetchCommentById ¶
func (c *CallClient) FetchCommentById()
func (*CallClient) FetchPRComment ¶
func (c *CallClient) FetchPRComment()
func (*CallClient) GetCommits ¶
func (c *CallClient) GetCommits()
func (*CallClient) ParseCommit ¶
func (c *CallClient) ParseCommit()
func (*CallClient) SendReply ¶
func (c *CallClient) SendReply() error
func (*CallClient) ValidCount ¶
func (c *CallClient) ValidCount() int
func (*CallClient) Validate ¶
func (c *CallClient) Validate()
type GitHub ¶
func (*GitHub) GetCommentByID ¶
func (gh *GitHub) GetCommentByID(commentID int64) *github.PullRequestComment
func (*GitHub) GetCommentList ¶
func (gh *GitHub) GetCommentList() []*github.PullRequestComment
func (*GitHub) PRCommits ¶
func (gh *GitHub) PRCommits() []*github.RepositoryCommit
type MockclientI ¶
type MockclientI struct {
// contains filtered or unexported fields
}
MockclientI is a mock of clientI interface.
func NewMockclientI ¶
func NewMockclientI(ctrl *gomock.Controller) *MockclientI
NewMockclientI creates a new mock instance.
func (*MockclientI) EXPECT ¶
func (m *MockclientI) EXPECT() *MockclientIMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockclientI) GetCommentByID ¶
func (m *MockclientI) GetCommentByID(commentID int64) *github.PullRequestComment
GetCommentByID mocks base method.
func (*MockclientI) GetCommentList ¶
func (m *MockclientI) GetCommentList() []*github.PullRequestComment
GetCommentList mocks base method.
func (*MockclientI) PRCommits ¶
func (m *MockclientI) PRCommits() []*github.RepositoryCommit
PRCommits mocks base method.
func (*MockclientI) SendReply ¶
func (m *MockclientI) SendReply(arg0 Reply) error
SendReply mocks base method.
type MockclientIMockRecorder ¶
type MockclientIMockRecorder struct {
// contains filtered or unexported fields
}
MockclientIMockRecorder is the mock recorder for MockclientI.
func (*MockclientIMockRecorder) GetCommentByID ¶
func (mr *MockclientIMockRecorder) GetCommentByID(commentID interface{}) *gomock.Call
GetCommentByID indicates an expected call of GetCommentByID.
func (*MockclientIMockRecorder) GetCommentList ¶
func (mr *MockclientIMockRecorder) GetCommentList() *gomock.Call
GetCommentList indicates an expected call of GetCommentList.
func (*MockclientIMockRecorder) GetPR ¶
func (mr *MockclientIMockRecorder) GetPR() *gomock.Call
GetPR indicates an expected call of GetPR.
func (*MockclientIMockRecorder) PRCommits ¶
func (mr *MockclientIMockRecorder) PRCommits() *gomock.Call
PRCommits indicates an expected call of PRCommits.
func (*MockclientIMockRecorder) SendReply ¶
func (mr *MockclientIMockRecorder) SendReply(arg0 interface{}) *gomock.Call
SendReply indicates an expected call of SendReply.