github.com/go-email-validator/go-email-validator@v0.0.0-20230409163946-b8b9e6a0552e/test/mock/ev/validator.go (about) 1 // Code generated by MockGen. DO NOT EDIT. 2 // Source: pkg/ev/validator.go 3 4 // Package mockev is a generated GoMock package. 5 package mockev 6 7 import ( 8 ev "github.com/go-email-validator/go-email-validator/pkg/ev" 9 gomock "github.com/golang/mock/gomock" 10 reflect "reflect" 11 ) 12 13 // MockValidator is a mock of Validator interface 14 type MockValidator struct { 15 ctrl *gomock.Controller 16 recorder *MockValidatorMockRecorder 17 } 18 19 // MockValidatorMockRecorder is the mock recorder for MockValidator 20 type MockValidatorMockRecorder struct { 21 mock *MockValidator 22 } 23 24 // NewMockValidator creates a new mock instance 25 func NewMockValidator(ctrl *gomock.Controller) *MockValidator { 26 mock := &MockValidator{ctrl: ctrl} 27 mock.recorder = &MockValidatorMockRecorder{mock} 28 return mock 29 } 30 31 // EXPECT returns an object that allows the caller to indicate expected use 32 func (m *MockValidator) EXPECT() *MockValidatorMockRecorder { 33 return m.recorder 34 } 35 36 // GetDeps mocks base method 37 func (m *MockValidator) GetDeps() []ev.ValidatorName { 38 m.ctrl.T.Helper() 39 ret := m.ctrl.Call(m, "GetDeps") 40 ret0, _ := ret[0].([]ev.ValidatorName) 41 return ret0 42 } 43 44 // GetDeps indicates an expected call of GetDeps 45 func (mr *MockValidatorMockRecorder) GetDeps() *gomock.Call { 46 mr.mock.ctrl.T.Helper() 47 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetDeps", reflect.TypeOf((*MockValidator)(nil).GetDeps)) 48 } 49 50 // Validate mocks base method 51 func (m *MockValidator) Validate(input ev.Input, results ...ev.ValidationResult) ev.ValidationResult { 52 m.ctrl.T.Helper() 53 varargs := []interface{}{input} 54 for _, a := range results { 55 varargs = append(varargs, a) 56 } 57 ret := m.ctrl.Call(m, "Validate", varargs...) 58 ret0, _ := ret[0].(ev.ValidationResult) 59 return ret0 60 } 61 62 // Validate indicates an expected call of Validate 63 func (mr *MockValidatorMockRecorder) Validate(input interface{}, results ...interface{}) *gomock.Call { 64 mr.mock.ctrl.T.Helper() 65 varargs := append([]interface{}{input}, results...) 66 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Validate", reflect.TypeOf((*MockValidator)(nil).Validate), varargs...) 67 } 68 69 // MockChangeableValidationResult is a mock of ChangeableValidationResult interface 70 type MockChangeableValidationResult struct { 71 ctrl *gomock.Controller 72 recorder *MockChangeableValidationResultMockRecorder 73 } 74 75 // MockChangeableValidationResultMockRecorder is the mock recorder for MockChangeableValidationResult 76 type MockChangeableValidationResultMockRecorder struct { 77 mock *MockChangeableValidationResult 78 } 79 80 // NewMockChangeableValidationResult creates a new mock instance 81 func NewMockChangeableValidationResult(ctrl *gomock.Controller) *MockChangeableValidationResult { 82 mock := &MockChangeableValidationResult{ctrl: ctrl} 83 mock.recorder = &MockChangeableValidationResultMockRecorder{mock} 84 return mock 85 } 86 87 // EXPECT returns an object that allows the caller to indicate expected use 88 func (m *MockChangeableValidationResult) EXPECT() *MockChangeableValidationResultMockRecorder { 89 return m.recorder 90 } 91 92 // SetErrors mocks base method 93 func (m *MockChangeableValidationResult) SetErrors(arg0 []error) { 94 m.ctrl.T.Helper() 95 m.ctrl.Call(m, "SetErrors", arg0) 96 } 97 98 // SetErrors indicates an expected call of SetErrors 99 func (mr *MockChangeableValidationResultMockRecorder) SetErrors(arg0 interface{}) *gomock.Call { 100 mr.mock.ctrl.T.Helper() 101 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetErrors", reflect.TypeOf((*MockChangeableValidationResult)(nil).SetErrors), arg0) 102 } 103 104 // SetWarnings mocks base method 105 func (m *MockChangeableValidationResult) SetWarnings(arg0 []error) { 106 m.ctrl.T.Helper() 107 m.ctrl.Call(m, "SetWarnings", arg0) 108 } 109 110 // SetWarnings indicates an expected call of SetWarnings 111 func (mr *MockChangeableValidationResultMockRecorder) SetWarnings(arg0 interface{}) *gomock.Call { 112 mr.mock.ctrl.T.Helper() 113 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetWarnings", reflect.TypeOf((*MockChangeableValidationResult)(nil).SetWarnings), arg0) 114 } 115 116 // MockValidationResult is a mock of ValidationResult interface 117 type MockValidationResult struct { 118 ctrl *gomock.Controller 119 recorder *MockValidationResultMockRecorder 120 } 121 122 // MockValidationResultMockRecorder is the mock recorder for MockValidationResult 123 type MockValidationResultMockRecorder struct { 124 mock *MockValidationResult 125 } 126 127 // NewMockValidationResult creates a new mock instance 128 func NewMockValidationResult(ctrl *gomock.Controller) *MockValidationResult { 129 mock := &MockValidationResult{ctrl: ctrl} 130 mock.recorder = &MockValidationResultMockRecorder{mock} 131 return mock 132 } 133 134 // EXPECT returns an object that allows the caller to indicate expected use 135 func (m *MockValidationResult) EXPECT() *MockValidationResultMockRecorder { 136 return m.recorder 137 } 138 139 // IsValid mocks base method 140 func (m *MockValidationResult) IsValid() bool { 141 m.ctrl.T.Helper() 142 ret := m.ctrl.Call(m, "IsValid") 143 ret0, _ := ret[0].(bool) 144 return ret0 145 } 146 147 // IsValid indicates an expected call of IsValid 148 func (mr *MockValidationResultMockRecorder) IsValid() *gomock.Call { 149 mr.mock.ctrl.T.Helper() 150 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "IsValid", reflect.TypeOf((*MockValidationResult)(nil).IsValid)) 151 } 152 153 // Errors mocks base method 154 func (m *MockValidationResult) Errors() []error { 155 m.ctrl.T.Helper() 156 ret := m.ctrl.Call(m, "Errors") 157 ret0, _ := ret[0].([]error) 158 return ret0 159 } 160 161 // Errors indicates an expected call of Errors 162 func (mr *MockValidationResultMockRecorder) Errors() *gomock.Call { 163 mr.mock.ctrl.T.Helper() 164 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Errors", reflect.TypeOf((*MockValidationResult)(nil).Errors)) 165 } 166 167 // HasErrors mocks base method 168 func (m *MockValidationResult) HasErrors() bool { 169 m.ctrl.T.Helper() 170 ret := m.ctrl.Call(m, "HasErrors") 171 ret0, _ := ret[0].(bool) 172 return ret0 173 } 174 175 // HasErrors indicates an expected call of HasErrors 176 func (mr *MockValidationResultMockRecorder) HasErrors() *gomock.Call { 177 mr.mock.ctrl.T.Helper() 178 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "HasErrors", reflect.TypeOf((*MockValidationResult)(nil).HasErrors)) 179 } 180 181 // Warnings mocks base method 182 func (m *MockValidationResult) Warnings() []error { 183 m.ctrl.T.Helper() 184 ret := m.ctrl.Call(m, "Warnings") 185 ret0, _ := ret[0].([]error) 186 return ret0 187 } 188 189 // Warnings indicates an expected call of Warnings 190 func (mr *MockValidationResultMockRecorder) Warnings() *gomock.Call { 191 mr.mock.ctrl.T.Helper() 192 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Warnings", reflect.TypeOf((*MockValidationResult)(nil).Warnings)) 193 } 194 195 // HasWarnings mocks base method 196 func (m *MockValidationResult) HasWarnings() bool { 197 m.ctrl.T.Helper() 198 ret := m.ctrl.Call(m, "HasWarnings") 199 ret0, _ := ret[0].(bool) 200 return ret0 201 } 202 203 // HasWarnings indicates an expected call of HasWarnings 204 func (mr *MockValidationResultMockRecorder) HasWarnings() *gomock.Call { 205 mr.mock.ctrl.T.Helper() 206 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "HasWarnings", reflect.TypeOf((*MockValidationResult)(nil).HasWarnings)) 207 } 208 209 // ValidatorName mocks base method 210 func (m *MockValidationResult) ValidatorName() ev.ValidatorName { 211 m.ctrl.T.Helper() 212 ret := m.ctrl.Call(m, "ValidatorName") 213 ret0, _ := ret[0].(ev.ValidatorName) 214 return ret0 215 } 216 217 // ValidatorName indicates an expected call of ValidatorName 218 func (mr *MockValidationResultMockRecorder) ValidatorName() *gomock.Call { 219 mr.mock.ctrl.T.Helper() 220 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ValidatorName", reflect.TypeOf((*MockValidationResult)(nil).ValidatorName)) 221 }