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