forked from mattermost/mattermost-plugin-mscalendar
-
Notifications
You must be signed in to change notification settings - Fork 0
/
mock_cluster.go
111 lines (94 loc) · 3.81 KB
/
mock_cluster.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
// Code generated by MockGen. DO NOT EDIT.
// Source: github.com/mattermost/mattermost-plugin-api/cluster (interfaces: JobPluginAPI)
// Package mock_cluster is a generated GoMock package.
package mock_cluster
import (
reflect "reflect"
gomock "github.com/golang/mock/gomock"
model "github.com/mattermost/mattermost-server/v6/model"
)
// MockJobPluginAPI is a mock of JobPluginAPI interface.
type MockJobPluginAPI struct {
ctrl *gomock.Controller
recorder *MockJobPluginAPIMockRecorder
}
// MockJobPluginAPIMockRecorder is the mock recorder for MockJobPluginAPI.
type MockJobPluginAPIMockRecorder struct {
mock *MockJobPluginAPI
}
// NewMockJobPluginAPI creates a new mock instance.
func NewMockJobPluginAPI(ctrl *gomock.Controller) *MockJobPluginAPI {
mock := &MockJobPluginAPI{ctrl: ctrl}
mock.recorder = &MockJobPluginAPIMockRecorder{mock}
return mock
}
// EXPECT returns an object that allows the caller to indicate expected use.
func (m *MockJobPluginAPI) EXPECT() *MockJobPluginAPIMockRecorder {
return m.recorder
}
// KVDelete mocks base method.
func (m *MockJobPluginAPI) KVDelete(arg0 string) *model.AppError {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "KVDelete", arg0)
ret0, _ := ret[0].(*model.AppError)
return ret0
}
// KVDelete indicates an expected call of KVDelete.
func (mr *MockJobPluginAPIMockRecorder) KVDelete(arg0 interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "KVDelete", reflect.TypeOf((*MockJobPluginAPI)(nil).KVDelete), arg0)
}
// KVGet mocks base method.
func (m *MockJobPluginAPI) KVGet(arg0 string) ([]byte, *model.AppError) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "KVGet", arg0)
ret0, _ := ret[0].([]byte)
ret1, _ := ret[1].(*model.AppError)
return ret0, ret1
}
// KVGet indicates an expected call of KVGet.
func (mr *MockJobPluginAPIMockRecorder) KVGet(arg0 interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "KVGet", reflect.TypeOf((*MockJobPluginAPI)(nil).KVGet), arg0)
}
// KVList mocks base method.
func (m *MockJobPluginAPI) KVList(arg0, arg1 int) ([]string, *model.AppError) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "KVList", arg0, arg1)
ret0, _ := ret[0].([]string)
ret1, _ := ret[1].(*model.AppError)
return ret0, ret1
}
// KVList indicates an expected call of KVList.
func (mr *MockJobPluginAPIMockRecorder) KVList(arg0, arg1 interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "KVList", reflect.TypeOf((*MockJobPluginAPI)(nil).KVList), arg0, arg1)
}
// KVSetWithOptions mocks base method.
func (m *MockJobPluginAPI) KVSetWithOptions(arg0 string, arg1 []byte, arg2 model.PluginKVSetOptions) (bool, *model.AppError) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "KVSetWithOptions", arg0, arg1, arg2)
ret0, _ := ret[0].(bool)
ret1, _ := ret[1].(*model.AppError)
return ret0, ret1
}
// KVSetWithOptions indicates an expected call of KVSetWithOptions.
func (mr *MockJobPluginAPIMockRecorder) KVSetWithOptions(arg0, arg1, arg2 interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "KVSetWithOptions", reflect.TypeOf((*MockJobPluginAPI)(nil).KVSetWithOptions), arg0, arg1, arg2)
}
// LogError mocks base method.
func (m *MockJobPluginAPI) LogError(arg0 string, arg1 ...interface{}) {
m.ctrl.T.Helper()
varargs := []interface{}{arg0}
for _, a := range arg1 {
varargs = append(varargs, a)
}
m.ctrl.Call(m, "LogError", varargs...)
}
// LogError indicates an expected call of LogError.
func (mr *MockJobPluginAPIMockRecorder) LogError(arg0 interface{}, arg1 ...interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
varargs := append([]interface{}{arg0}, arg1...)
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "LogError", reflect.TypeOf((*MockJobPluginAPI)(nil).LogError), varargs...)
}