73 lines
2.1 KiB
Go
73 lines
2.1 KiB
Go
// Code generated by MockGen. DO NOT EDIT.
|
|
// Source: ./validate.go
|
|
//
|
|
// Generated by this command:
|
|
//
|
|
// mockgen -source=./validate.go -destination=../../mock/lib/validate.go -package=lib
|
|
//
|
|
|
|
// Package lib is a generated GoMock package.
|
|
package lib
|
|
|
|
import (
|
|
required "ark-permission/internal/lib/required"
|
|
reflect "reflect"
|
|
|
|
gomock "go.uber.org/mock/gomock"
|
|
)
|
|
|
|
// MockValidate is a mock of Validate interface.
|
|
type MockValidate struct {
|
|
ctrl *gomock.Controller
|
|
recorder *MockValidateMockRecorder
|
|
}
|
|
|
|
// MockValidateMockRecorder is the mock recorder for MockValidate.
|
|
type MockValidateMockRecorder struct {
|
|
mock *MockValidate
|
|
}
|
|
|
|
// NewMockValidate creates a new mock instance.
|
|
func NewMockValidate(ctrl *gomock.Controller) *MockValidate {
|
|
mock := &MockValidate{ctrl: ctrl}
|
|
mock.recorder = &MockValidateMockRecorder{mock}
|
|
return mock
|
|
}
|
|
|
|
// EXPECT returns an object that allows the caller to indicate expected use.
|
|
func (m *MockValidate) EXPECT() *MockValidateMockRecorder {
|
|
return m.recorder
|
|
}
|
|
|
|
// BindToValidator mocks base method.
|
|
func (m *MockValidate) BindToValidator(opts ...required.Option) error {
|
|
m.ctrl.T.Helper()
|
|
varargs := []any{}
|
|
for _, a := range opts {
|
|
varargs = append(varargs, a)
|
|
}
|
|
ret := m.ctrl.Call(m, "BindToValidator", varargs...)
|
|
ret0, _ := ret[0].(error)
|
|
return ret0
|
|
}
|
|
|
|
// BindToValidator indicates an expected call of BindToValidator.
|
|
func (mr *MockValidateMockRecorder) BindToValidator(opts ...any) *gomock.Call {
|
|
mr.mock.ctrl.T.Helper()
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "BindToValidator", reflect.TypeOf((*MockValidate)(nil).BindToValidator), opts...)
|
|
}
|
|
|
|
// ValidateAll mocks base method.
|
|
func (m *MockValidate) ValidateAll(obj any) error {
|
|
m.ctrl.T.Helper()
|
|
ret := m.ctrl.Call(m, "ValidateAll", obj)
|
|
ret0, _ := ret[0].(error)
|
|
return ret0
|
|
}
|
|
|
|
// ValidateAll indicates an expected call of ValidateAll.
|
|
func (mr *MockValidateMockRecorder) ValidateAll(obj any) *gomock.Call {
|
|
mr.mock.ctrl.T.Helper()
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ValidateAll", reflect.TypeOf((*MockValidate)(nil).ValidateAll), obj)
|
|
}
|