-
Notifications
You must be signed in to change notification settings - Fork 0
/
github_mock_test.go
68 lines (57 loc) · 2.53 KB
/
github_mock_test.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
// Code generated by MockGen. DO NOT EDIT.
// Source: github/client.go
// Package main is a generated GoMock package.
package main
import (
context "context"
reflect "reflect"
gomock "github.com/golang/mock/gomock"
github "github.com/google/go-github/github"
)
// MockAppClientIface is a mock of AppClientIface interface.
type MockAppClientIface struct {
ctrl *gomock.Controller
recorder *MockAppClientIfaceMockRecorder
}
// MockAppClientIfaceMockRecorder is the mock recorder for MockAppClientIface.
type MockAppClientIfaceMockRecorder struct {
mock *MockAppClientIface
}
// NewMockAppClientIface creates a new mock instance.
func NewMockAppClientIface(ctrl *gomock.Controller) *MockAppClientIface {
mock := &MockAppClientIface{ctrl: ctrl}
mock.recorder = &MockAppClientIfaceMockRecorder{mock}
return mock
}
// EXPECT returns an object that allows the caller to indicate expected use.
func (m *MockAppClientIface) EXPECT() *MockAppClientIfaceMockRecorder {
return m.recorder
}
// AddAssignees mocks base method.
func (m *MockAppClientIface) AddAssignees(ctx context.Context, owner, repo string, number int, assignees []string) (*github.Issue, *github.Response, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "AddAssignees", ctx, owner, repo, number, assignees)
ret0, _ := ret[0].(*github.Issue)
ret1, _ := ret[1].(*github.Response)
ret2, _ := ret[2].(error)
return ret0, ret1, ret2
}
// AddAssignees indicates an expected call of AddAssignees.
func (mr *MockAppClientIfaceMockRecorder) AddAssignees(ctx, owner, repo, number, assignees interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AddAssignees", reflect.TypeOf((*MockAppClientIface)(nil).AddAssignees), ctx, owner, repo, number, assignees)
}
// AddReviewers mocks base method.
func (m *MockAppClientIface) AddReviewers(ctx context.Context, owner, repo string, number int, reviewers []string) (*github.PullRequest, *github.Response, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "AddReviewers", ctx, owner, repo, number, reviewers)
ret0, _ := ret[0].(*github.PullRequest)
ret1, _ := ret[1].(*github.Response)
ret2, _ := ret[2].(error)
return ret0, ret1, ret2
}
// AddReviewers indicates an expected call of AddReviewers.
func (mr *MockAppClientIfaceMockRecorder) AddReviewers(ctx, owner, repo, number, reviewers interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AddReviewers", reflect.TypeOf((*MockAppClientIface)(nil).AddReviewers), ctx, owner, repo, number, reviewers)
}