-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmock_github.go
122 lines (104 loc) · 4.97 KB
/
mock_github.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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
// Code generated by MockGen. DO NOT EDIT.
// Source: github.go
// Package mikku is a generated GoMock package.
package mikku
import (
context "context"
gomock "github.com/golang/mock/gomock"
github "github.com/google/go-github/v32/github"
reflect "reflect"
)
// MockgitHubRepositoriesClient is a mock of gitHubRepositoriesClient interface
type MockgitHubRepositoriesClient struct {
ctrl *gomock.Controller
recorder *MockgitHubRepositoriesClientMockRecorder
}
// MockgitHubRepositoriesClientMockRecorder is the mock recorder for MockgitHubRepositoriesClient
type MockgitHubRepositoriesClientMockRecorder struct {
mock *MockgitHubRepositoriesClient
}
// NewMockgitHubRepositoriesClient creates a new mock instance
func NewMockgitHubRepositoriesClient(ctrl *gomock.Controller) *MockgitHubRepositoriesClient {
mock := &MockgitHubRepositoriesClient{ctrl: ctrl}
mock.recorder = &MockgitHubRepositoriesClientMockRecorder{mock}
return mock
}
// EXPECT returns an object that allows the caller to indicate expected use
func (m *MockgitHubRepositoriesClient) EXPECT() *MockgitHubRepositoriesClientMockRecorder {
return m.recorder
}
// CreateRelease mocks base method
func (m *MockgitHubRepositoriesClient) CreateRelease(ctx context.Context, owner, repo string, release *github.RepositoryRelease) (*github.RepositoryRelease, *github.Response, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "CreateRelease", ctx, owner, repo, release)
ret0, _ := ret[0].(*github.RepositoryRelease)
ret1, _ := ret[1].(*github.Response)
ret2, _ := ret[2].(error)
return ret0, ret1, ret2
}
// CreateRelease indicates an expected call of CreateRelease
func (mr *MockgitHubRepositoriesClientMockRecorder) CreateRelease(ctx, owner, repo, release interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateRelease", reflect.TypeOf((*MockgitHubRepositoriesClient)(nil).CreateRelease), ctx, owner, repo, release)
}
// GetLatestRelease mocks base method
func (m *MockgitHubRepositoriesClient) GetLatestRelease(ctx context.Context, owner, repo string) (*github.RepositoryRelease, *github.Response, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "GetLatestRelease", ctx, owner, repo)
ret0, _ := ret[0].(*github.RepositoryRelease)
ret1, _ := ret[1].(*github.Response)
ret2, _ := ret[2].(error)
return ret0, ret1, ret2
}
// GetLatestRelease indicates an expected call of GetLatestRelease
func (mr *MockgitHubRepositoriesClientMockRecorder) GetLatestRelease(ctx, owner, repo interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetLatestRelease", reflect.TypeOf((*MockgitHubRepositoriesClient)(nil).GetLatestRelease), ctx, owner, repo)
}
// MockgitHubPullRequestsClient is a mock of gitHubPullRequestsClient interface
type MockgitHubPullRequestsClient struct {
ctrl *gomock.Controller
recorder *MockgitHubPullRequestsClientMockRecorder
}
// MockgitHubPullRequestsClientMockRecorder is the mock recorder for MockgitHubPullRequestsClient
type MockgitHubPullRequestsClientMockRecorder struct {
mock *MockgitHubPullRequestsClient
}
// NewMockgitHubPullRequestsClient creates a new mock instance
func NewMockgitHubPullRequestsClient(ctrl *gomock.Controller) *MockgitHubPullRequestsClient {
mock := &MockgitHubPullRequestsClient{ctrl: ctrl}
mock.recorder = &MockgitHubPullRequestsClientMockRecorder{mock}
return mock
}
// EXPECT returns an object that allows the caller to indicate expected use
func (m *MockgitHubPullRequestsClient) EXPECT() *MockgitHubPullRequestsClientMockRecorder {
return m.recorder
}
// List mocks base method
func (m *MockgitHubPullRequestsClient) List(ctx context.Context, owner, repo string, opt *github.PullRequestListOptions) ([]*github.PullRequest, *github.Response, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "List", ctx, owner, repo, opt)
ret0, _ := ret[0].([]*github.PullRequest)
ret1, _ := ret[1].(*github.Response)
ret2, _ := ret[2].(error)
return ret0, ret1, ret2
}
// List indicates an expected call of List
func (mr *MockgitHubPullRequestsClientMockRecorder) List(ctx, owner, repo, opt interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "List", reflect.TypeOf((*MockgitHubPullRequestsClient)(nil).List), ctx, owner, repo, opt)
}
// Create mocks base method
func (m *MockgitHubPullRequestsClient) Create(ctx context.Context, owner, repo string, pull *github.NewPullRequest) (*github.PullRequest, *github.Response, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "Create", ctx, owner, repo, pull)
ret0, _ := ret[0].(*github.PullRequest)
ret1, _ := ret[1].(*github.Response)
ret2, _ := ret[2].(error)
return ret0, ret1, ret2
}
// Create indicates an expected call of Create
func (mr *MockgitHubPullRequestsClientMockRecorder) Create(ctx, owner, repo, pull interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Create", reflect.TypeOf((*MockgitHubPullRequestsClient)(nil).Create), ctx, owner, repo, pull)
}