/
GitClient.go
102 lines (84 loc) · 2.71 KB
/
GitClient.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
// Code generated by mockery 2.7.5. DO NOT EDIT.
package mocks
import (
context "context"
github "github.com/google/go-github/github"
mock "github.com/stretchr/testify/mock"
)
// GitClient is an autogenerated mock type for the GitClient type
type GitClient struct {
mock.Mock
}
// CreateRef provides a mock function with given fields: _a0, _a1, _a2, _a3
func (_m *GitClient) CreateRef(_a0 context.Context, _a1 string, _a2 string, _a3 *github.Reference) (*github.Reference, *github.Response, error) {
ret := _m.Called(_a0, _a1, _a2, _a3)
var r0 *github.Reference
if rf, ok := ret.Get(0).(func(context.Context, string, string, *github.Reference) *github.Reference); ok {
r0 = rf(_a0, _a1, _a2, _a3)
} else {
if ret.Get(0) != nil {
r0 = ret.Get(0).(*github.Reference)
}
}
var r1 *github.Response
if rf, ok := ret.Get(1).(func(context.Context, string, string, *github.Reference) *github.Response); ok {
r1 = rf(_a0, _a1, _a2, _a3)
} else {
if ret.Get(1) != nil {
r1 = ret.Get(1).(*github.Response)
}
}
var r2 error
if rf, ok := ret.Get(2).(func(context.Context, string, string, *github.Reference) error); ok {
r2 = rf(_a0, _a1, _a2, _a3)
} else {
r2 = ret.Error(2)
}
return r0, r1, r2
}
// DeleteRef provides a mock function with given fields: _a0, _a1, _a2, _a3
func (_m *GitClient) DeleteRef(_a0 context.Context, _a1 string, _a2 string, _a3 string) (*github.Response, error) {
ret := _m.Called(_a0, _a1, _a2, _a3)
var r0 *github.Response
if rf, ok := ret.Get(0).(func(context.Context, string, string, string) *github.Response); ok {
r0 = rf(_a0, _a1, _a2, _a3)
} else {
if ret.Get(0) != nil {
r0 = ret.Get(0).(*github.Response)
}
}
var r1 error
if rf, ok := ret.Get(1).(func(context.Context, string, string, string) error); ok {
r1 = rf(_a0, _a1, _a2, _a3)
} else {
r1 = ret.Error(1)
}
return r0, r1
}
// GetRef provides a mock function with given fields: _a0, _a1, _a2, _a3
func (_m *GitClient) GetRef(_a0 context.Context, _a1 string, _a2 string, _a3 string) (*github.Reference, *github.Response, error) {
ret := _m.Called(_a0, _a1, _a2, _a3)
var r0 *github.Reference
if rf, ok := ret.Get(0).(func(context.Context, string, string, string) *github.Reference); ok {
r0 = rf(_a0, _a1, _a2, _a3)
} else {
if ret.Get(0) != nil {
r0 = ret.Get(0).(*github.Reference)
}
}
var r1 *github.Response
if rf, ok := ret.Get(1).(func(context.Context, string, string, string) *github.Response); ok {
r1 = rf(_a0, _a1, _a2, _a3)
} else {
if ret.Get(1) != nil {
r1 = ret.Get(1).(*github.Response)
}
}
var r2 error
if rf, ok := ret.Get(2).(func(context.Context, string, string, string) error); ok {
r2 = rf(_a0, _a1, _a2, _a3)
} else {
r2 = ret.Error(2)
}
return r0, r1, r2
}