2019-04-24 21:52:08 +00:00
|
|
|
// Code generated by MockGen. DO NOT EDIT.
|
2021-08-11 01:04:35 +00:00
|
|
|
// Source: github.com/authelia/authelia/v4/internal/authentication (interfaces: UserProvider)
|
2019-04-24 21:52:08 +00:00
|
|
|
|
|
|
|
// Package mocks is a generated GoMock package.
|
|
|
|
package mocks
|
|
|
|
|
|
|
|
import (
|
2021-11-23 09:45:38 +00:00
|
|
|
reflect "reflect"
|
2019-04-24 21:52:08 +00:00
|
|
|
|
2021-11-23 09:45:38 +00:00
|
|
|
gomock "github.com/golang/mock/gomock"
|
2020-04-05 12:37:21 +00:00
|
|
|
|
2021-11-23 09:45:38 +00:00
|
|
|
authentication "github.com/authelia/authelia/v4/internal/authentication"
|
2019-04-24 21:52:08 +00:00
|
|
|
)
|
|
|
|
|
2020-05-04 19:39:25 +00:00
|
|
|
// MockUserProvider is a mock of UserProvider interface.
|
2019-04-24 21:52:08 +00:00
|
|
|
type MockUserProvider struct {
|
|
|
|
ctrl *gomock.Controller
|
|
|
|
recorder *MockUserProviderMockRecorder
|
|
|
|
}
|
|
|
|
|
2020-05-04 19:39:25 +00:00
|
|
|
// MockUserProviderMockRecorder is the mock recorder for MockUserProvider.
|
2019-04-24 21:52:08 +00:00
|
|
|
type MockUserProviderMockRecorder struct {
|
|
|
|
mock *MockUserProvider
|
|
|
|
}
|
|
|
|
|
2020-05-04 19:39:25 +00:00
|
|
|
// NewMockUserProvider creates a new mock instance.
|
2019-04-24 21:52:08 +00:00
|
|
|
func NewMockUserProvider(ctrl *gomock.Controller) *MockUserProvider {
|
|
|
|
mock := &MockUserProvider{ctrl: ctrl}
|
|
|
|
mock.recorder = &MockUserProviderMockRecorder{mock}
|
|
|
|
return mock
|
|
|
|
}
|
|
|
|
|
2020-05-04 19:39:25 +00:00
|
|
|
// EXPECT returns an object that allows the caller to indicate expected use.
|
2019-04-24 21:52:08 +00:00
|
|
|
func (m *MockUserProvider) EXPECT() *MockUserProviderMockRecorder {
|
|
|
|
return m.recorder
|
|
|
|
}
|
|
|
|
|
2020-05-04 19:39:25 +00:00
|
|
|
// CheckUserPassword mocks base method.
|
2019-04-24 21:52:08 +00:00
|
|
|
func (m *MockUserProvider) CheckUserPassword(arg0, arg1 string) (bool, error) {
|
|
|
|
m.ctrl.T.Helper()
|
|
|
|
ret := m.ctrl.Call(m, "CheckUserPassword", arg0, arg1)
|
|
|
|
ret0, _ := ret[0].(bool)
|
|
|
|
ret1, _ := ret[1].(error)
|
|
|
|
return ret0, ret1
|
|
|
|
}
|
|
|
|
|
2020-05-04 19:39:25 +00:00
|
|
|
// CheckUserPassword indicates an expected call of CheckUserPassword.
|
2019-04-24 21:52:08 +00:00
|
|
|
func (mr *MockUserProviderMockRecorder) CheckUserPassword(arg0, arg1 interface{}) *gomock.Call {
|
|
|
|
mr.mock.ctrl.T.Helper()
|
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CheckUserPassword", reflect.TypeOf((*MockUserProvider)(nil).CheckUserPassword), arg0, arg1)
|
|
|
|
}
|
|
|
|
|
2020-05-04 19:39:25 +00:00
|
|
|
// GetDetails mocks base method.
|
2019-04-24 21:52:08 +00:00
|
|
|
func (m *MockUserProvider) GetDetails(arg0 string) (*authentication.UserDetails, error) {
|
|
|
|
m.ctrl.T.Helper()
|
|
|
|
ret := m.ctrl.Call(m, "GetDetails", arg0)
|
|
|
|
ret0, _ := ret[0].(*authentication.UserDetails)
|
|
|
|
ret1, _ := ret[1].(error)
|
|
|
|
return ret0, ret1
|
|
|
|
}
|
|
|
|
|
2020-05-04 19:39:25 +00:00
|
|
|
// GetDetails indicates an expected call of GetDetails.
|
2019-04-24 21:52:08 +00:00
|
|
|
func (mr *MockUserProviderMockRecorder) GetDetails(arg0 interface{}) *gomock.Call {
|
|
|
|
mr.mock.ctrl.T.Helper()
|
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetDetails", reflect.TypeOf((*MockUserProvider)(nil).GetDetails), arg0)
|
|
|
|
}
|
|
|
|
|
2021-11-23 09:45:38 +00:00
|
|
|
// StartupCheck mocks base method.
|
|
|
|
func (m *MockUserProvider) StartupCheck() error {
|
2019-04-24 21:52:08 +00:00
|
|
|
m.ctrl.T.Helper()
|
2021-11-23 09:45:38 +00:00
|
|
|
ret := m.ctrl.Call(m, "StartupCheck")
|
2019-04-24 21:52:08 +00:00
|
|
|
ret0, _ := ret[0].(error)
|
|
|
|
return ret0
|
|
|
|
}
|
|
|
|
|
2021-11-23 09:45:38 +00:00
|
|
|
// StartupCheck indicates an expected call of StartupCheck.
|
|
|
|
func (mr *MockUserProviderMockRecorder) StartupCheck() *gomock.Call {
|
2019-04-24 21:52:08 +00:00
|
|
|
mr.mock.ctrl.T.Helper()
|
2021-11-23 09:45:38 +00:00
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "StartupCheck", reflect.TypeOf((*MockUserProvider)(nil).StartupCheck))
|
2019-04-24 21:52:08 +00:00
|
|
|
}
|
2021-09-17 09:53:59 +00:00
|
|
|
|
2021-11-23 09:45:38 +00:00
|
|
|
// UpdatePassword mocks base method.
|
|
|
|
func (m *MockUserProvider) UpdatePassword(arg0, arg1 string) error {
|
2021-09-17 09:53:59 +00:00
|
|
|
m.ctrl.T.Helper()
|
2021-11-23 09:45:38 +00:00
|
|
|
ret := m.ctrl.Call(m, "UpdatePassword", arg0, arg1)
|
2021-09-17 09:53:59 +00:00
|
|
|
ret0, _ := ret[0].(error)
|
|
|
|
return ret0
|
|
|
|
}
|
|
|
|
|
2021-11-23 09:45:38 +00:00
|
|
|
// UpdatePassword indicates an expected call of UpdatePassword.
|
|
|
|
func (mr *MockUserProviderMockRecorder) UpdatePassword(arg0, arg1 interface{}) *gomock.Call {
|
2021-09-17 09:53:59 +00:00
|
|
|
mr.mock.ctrl.T.Helper()
|
2021-11-23 09:45:38 +00:00
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdatePassword", reflect.TypeOf((*MockUserProvider)(nil).UpdatePassword), arg0, arg1)
|
2021-09-17 09:53:59 +00:00
|
|
|
}
|