gh

package
v0.2.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 10, 2022 License: GPL-3.0 Imports: 15 Imported by: 0

Documentation

Overview

Package gh is a generated GoMock package.

Index

Constants

This section is empty.

Variables

View Source
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

type GitHub struct {
	Client *github.Client
	PR     PR
}

func New

func New(PRnumber int) (*GitHub, error)

func (*GitHub) GetCommentByID

func (gh *GitHub) GetCommentByID(commentID int64) *github.PullRequestComment

func (*GitHub) GetCommentList

func (gh *GitHub) GetCommentList() []*github.PullRequestComment

func (*GitHub) GetPR

func (gh *GitHub) GetPR() PR

func (*GitHub) PRCommits

func (gh *GitHub) PRCommits() []*github.RepositoryCommit

func (*GitHub) SendReply

func (gh *GitHub) SendReply(r Reply) error

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) GetPR

func (m *MockclientI) GetPR() PR

GetPR 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.

type PR

type PR struct {
	User   string
	Repo   string
	Number int
}

type Reply

type Reply struct {
	ReplyID         int64
	GitHash         string
	CommitMsg       string
	OriginalComment string
	IsValid         bool
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL