-
Notifications
You must be signed in to change notification settings - Fork 0
/
githubclient.go
55 lines (46 loc) · 1.52 KB
/
githubclient.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
// Code generated by MockGen. DO NOT EDIT.
// Source: internal/githubclt/client.go
//
// Generated by this command:
//
// mockgen -package mocks -source internal/githubclt/client.go -destination internal/autoupdate/mocks/githubclient.go
//
// Package mocks is a generated GoMock package.
package mocks
import (
reflect "reflect"
github "github.com/google/go-github/v59/github"
gomock "go.uber.org/mock/gomock"
)
// MockPRIterator is a mock of PRIterator interface.
type MockPRIterator struct {
ctrl *gomock.Controller
recorder *MockPRIteratorMockRecorder
}
// MockPRIteratorMockRecorder is the mock recorder for MockPRIterator.
type MockPRIteratorMockRecorder struct {
mock *MockPRIterator
}
// NewMockPRIterator creates a new mock instance.
func NewMockPRIterator(ctrl *gomock.Controller) *MockPRIterator {
mock := &MockPRIterator{ctrl: ctrl}
mock.recorder = &MockPRIteratorMockRecorder{mock}
return mock
}
// EXPECT returns an object that allows the caller to indicate expected use.
func (m *MockPRIterator) EXPECT() *MockPRIteratorMockRecorder {
return m.recorder
}
// Next mocks base method.
func (m *MockPRIterator) Next() (*github.PullRequest, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "Next")
ret0, _ := ret[0].(*github.PullRequest)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// Next indicates an expected call of Next.
func (mr *MockPRIteratorMockRecorder) Next() *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Next", reflect.TypeOf((*MockPRIterator)(nil).Next))
}