/
mock_plugin_picture.go
98 lines (83 loc) · 3.11 KB
/
mock_plugin_picture.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
// Code generated by MockGen. DO NOT EDIT.
// Source: github.com/duc-cnzj/mars/v4/internal/plugins (interfaces: PictureInterface)
//
// Generated by this command:
//
// mockgen -destination ../mock/mock_plugin_picture.go -package mock github.com/duc-cnzj/mars/v4/internal/plugins PictureInterface
//
// Package mock is a generated GoMock package.
package mock
import (
context "context"
reflect "reflect"
contracts "github.com/duc-cnzj/mars/v4/internal/contracts"
gomock "go.uber.org/mock/gomock"
)
// MockPictureInterface is a mock of PictureInterface interface.
type MockPictureInterface struct {
ctrl *gomock.Controller
recorder *MockPictureInterfaceMockRecorder
}
// MockPictureInterfaceMockRecorder is the mock recorder for MockPictureInterface.
type MockPictureInterfaceMockRecorder struct {
mock *MockPictureInterface
}
// NewMockPictureInterface creates a new mock instance.
func NewMockPictureInterface(ctrl *gomock.Controller) *MockPictureInterface {
mock := &MockPictureInterface{ctrl: ctrl}
mock.recorder = &MockPictureInterfaceMockRecorder{mock}
return mock
}
// EXPECT returns an object that allows the caller to indicate expected use.
func (m *MockPictureInterface) EXPECT() *MockPictureInterfaceMockRecorder {
return m.recorder
}
// Destroy mocks base method.
func (m *MockPictureInterface) Destroy() error {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "Destroy")
ret0, _ := ret[0].(error)
return ret0
}
// Destroy indicates an expected call of Destroy.
func (mr *MockPictureInterfaceMockRecorder) Destroy() *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Destroy", reflect.TypeOf((*MockPictureInterface)(nil).Destroy))
}
// Get mocks base method.
func (m *MockPictureInterface) Get(arg0 context.Context, arg1 bool) (*contracts.Picture, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "Get", arg0, arg1)
ret0, _ := ret[0].(*contracts.Picture)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// Get indicates an expected call of Get.
func (mr *MockPictureInterfaceMockRecorder) Get(arg0, arg1 any) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Get", reflect.TypeOf((*MockPictureInterface)(nil).Get), arg0, arg1)
}
// Initialize mocks base method.
func (m *MockPictureInterface) Initialize(arg0 map[string]any) error {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "Initialize", arg0)
ret0, _ := ret[0].(error)
return ret0
}
// Initialize indicates an expected call of Initialize.
func (mr *MockPictureInterfaceMockRecorder) Initialize(arg0 any) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Initialize", reflect.TypeOf((*MockPictureInterface)(nil).Initialize), arg0)
}
// Name mocks base method.
func (m *MockPictureInterface) Name() string {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "Name")
ret0, _ := ret[0].(string)
return ret0
}
// Name indicates an expected call of Name.
func (mr *MockPictureInterfaceMockRecorder) Name() *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Name", reflect.TypeOf((*MockPictureInterface)(nil).Name))
}