INNER CODE UNIT · Go

NewMockPullRequest

zopdev/helm-charts · charts-lint/github/mock_interface.go:33

func NewMockPullRequest(ctrl *gomock.Controller) *MockPullRequest {
	mock := &MockPullRequest{ctrl: ctrl}
	mock.recorder = &MockPullRequestMockRecorder{mock}
	return mock
}

// EXPECT returns an object that allows the caller to indicate expected use.
func (m *MockPullRequest) EXPECT() *MockPullRequestMockRecorder {
	return m.recorder
}

// ListFiles mocks base method.
func (m *MockPullRequest) ListFiles(ctx context.Context, owner, repo string, number int, opts *github.ListOptions) ([]*github.CommitFile, *github.Response, error) {
	m.ctrl.T.Helper()
	ret := m.ctrl.Call(m, "ListFiles", ctx, owner, repo, number, opts)
	ret0, _ := ret[0].([]*github.CommitFile)
	ret1, _ := ret[1].(*github.Response)
	ret2, _ := ret[2].(error)

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…