github.com/go-email-validator/go-email-validator@v0.0.0-20230409163946-b8b9e6a0552e/test/mock/ev/evcache/evcache.go (about) 1 // Code generated by MockGen. DO NOT EDIT. 2 // Source: pkg/ev/evcache/evcache.go 3 4 // Package mockevcache is a generated GoMock package. 5 package mockevcache 6 7 import ( 8 store "github.com/eko/gocache/store" 9 gomock "github.com/golang/mock/gomock" 10 reflect "reflect" 11 ) 12 13 // MockInterface is a mock of Interface interface 14 type MockInterface struct { 15 ctrl *gomock.Controller 16 recorder *MockInterfaceMockRecorder 17 } 18 19 // MockInterfaceMockRecorder is the mock recorder for MockInterface 20 type MockInterfaceMockRecorder struct { 21 mock *MockInterface 22 } 23 24 // NewMockInterface creates a new mock instance 25 func NewMockInterface(ctrl *gomock.Controller) *MockInterface { 26 mock := &MockInterface{ctrl: ctrl} 27 mock.recorder = &MockInterfaceMockRecorder{mock} 28 return mock 29 } 30 31 // EXPECT returns an object that allows the caller to indicate expected use 32 func (m *MockInterface) EXPECT() *MockInterfaceMockRecorder { 33 return m.recorder 34 } 35 36 // Get mocks base method 37 func (m *MockInterface) Get(key interface{}) (interface{}, error) { 38 m.ctrl.T.Helper() 39 ret := m.ctrl.Call(m, "Get", key) 40 ret0, _ := ret[0].(interface{}) 41 ret1, _ := ret[1].(error) 42 return ret0, ret1 43 } 44 45 // Get indicates an expected call of Get 46 func (mr *MockInterfaceMockRecorder) Get(key interface{}) *gomock.Call { 47 mr.mock.ctrl.T.Helper() 48 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Get", reflect.TypeOf((*MockInterface)(nil).Get), key) 49 } 50 51 // Set mocks base method 52 func (m *MockInterface) Set(key, object interface{}) error { 53 m.ctrl.T.Helper() 54 ret := m.ctrl.Call(m, "Set", key, object) 55 ret0, _ := ret[0].(error) 56 return ret0 57 } 58 59 // Set indicates an expected call of Set 60 func (mr *MockInterfaceMockRecorder) Set(key, object interface{}) *gomock.Call { 61 mr.mock.ctrl.T.Helper() 62 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Set", reflect.TypeOf((*MockInterface)(nil).Set), key, object) 63 } 64 65 // MockMarshaler is a mock of Marshaler interface 66 type MockMarshaler struct { 67 ctrl *gomock.Controller 68 recorder *MockMarshalerMockRecorder 69 } 70 71 // MockMarshalerMockRecorder is the mock recorder for MockMarshaler 72 type MockMarshalerMockRecorder struct { 73 mock *MockMarshaler 74 } 75 76 // NewMockMarshaler creates a new mock instance 77 func NewMockMarshaler(ctrl *gomock.Controller) *MockMarshaler { 78 mock := &MockMarshaler{ctrl: ctrl} 79 mock.recorder = &MockMarshalerMockRecorder{mock} 80 return mock 81 } 82 83 // EXPECT returns an object that allows the caller to indicate expected use 84 func (m *MockMarshaler) EXPECT() *MockMarshalerMockRecorder { 85 return m.recorder 86 } 87 88 // Get mocks base method 89 func (m *MockMarshaler) Get(key, returnObj interface{}) (interface{}, error) { 90 m.ctrl.T.Helper() 91 ret := m.ctrl.Call(m, "Get", key, returnObj) 92 ret0, _ := ret[0].(interface{}) 93 ret1, _ := ret[1].(error) 94 return ret0, ret1 95 } 96 97 // Get indicates an expected call of Get 98 func (mr *MockMarshalerMockRecorder) Get(key, returnObj interface{}) *gomock.Call { 99 mr.mock.ctrl.T.Helper() 100 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Get", reflect.TypeOf((*MockMarshaler)(nil).Get), key, returnObj) 101 } 102 103 // Set mocks base method 104 func (m *MockMarshaler) Set(key, object interface{}, options *store.Options) error { 105 m.ctrl.T.Helper() 106 ret := m.ctrl.Call(m, "Set", key, object, options) 107 ret0, _ := ret[0].(error) 108 return ret0 109 } 110 111 // Set indicates an expected call of Set 112 func (mr *MockMarshalerMockRecorder) Set(key, object, options interface{}) *gomock.Call { 113 mr.mock.ctrl.T.Helper() 114 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Set", reflect.TypeOf((*MockMarshaler)(nil).Set), key, object, options) 115 } 116 117 // Delete mocks base method 118 func (m *MockMarshaler) Delete(key interface{}) error { 119 m.ctrl.T.Helper() 120 ret := m.ctrl.Call(m, "Delete", key) 121 ret0, _ := ret[0].(error) 122 return ret0 123 } 124 125 // Delete indicates an expected call of Delete 126 func (mr *MockMarshalerMockRecorder) Delete(key interface{}) *gomock.Call { 127 mr.mock.ctrl.T.Helper() 128 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Delete", reflect.TypeOf((*MockMarshaler)(nil).Delete), key) 129 } 130 131 // Invalidate mocks base method 132 func (m *MockMarshaler) Invalidate(options store.InvalidateOptions) error { 133 m.ctrl.T.Helper() 134 ret := m.ctrl.Call(m, "Invalidate", options) 135 ret0, _ := ret[0].(error) 136 return ret0 137 } 138 139 // Invalidate indicates an expected call of Invalidate 140 func (mr *MockMarshalerMockRecorder) Invalidate(options interface{}) *gomock.Call { 141 mr.mock.ctrl.T.Helper() 142 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Invalidate", reflect.TypeOf((*MockMarshaler)(nil).Invalidate), options) 143 } 144 145 // Clear mocks base method 146 func (m *MockMarshaler) Clear() error { 147 m.ctrl.T.Helper() 148 ret := m.ctrl.Call(m, "Clear") 149 ret0, _ := ret[0].(error) 150 return ret0 151 } 152 153 // Clear indicates an expected call of Clear 154 func (mr *MockMarshalerMockRecorder) Clear() *gomock.Call { 155 mr.mock.ctrl.T.Helper() 156 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Clear", reflect.TypeOf((*MockMarshaler)(nil).Clear)) 157 }