2021-12-01 19:11:29 +07:00
|
|
|
// Code generated by MockGen. DO NOT EDIT.
|
|
|
|
// Source: github.com/authelia/authelia/v4/internal/totp (interfaces: Provider)
|
|
|
|
|
|
|
|
// Package mocks is a generated GoMock package.
|
|
|
|
package mocks
|
|
|
|
|
|
|
|
import (
|
|
|
|
reflect "reflect"
|
|
|
|
|
|
|
|
gomock "github.com/golang/mock/gomock"
|
|
|
|
|
2022-03-17 11:02:54 +07:00
|
|
|
model "github.com/authelia/authelia/v4/internal/model"
|
2021-12-01 19:11:29 +07:00
|
|
|
)
|
|
|
|
|
|
|
|
// MockTOTP is a mock of Provider interface.
|
|
|
|
type MockTOTP struct {
|
|
|
|
ctrl *gomock.Controller
|
|
|
|
recorder *MockTOTPMockRecorder
|
|
|
|
}
|
|
|
|
|
|
|
|
// MockTOTPMockRecorder is the mock recorder for MockTOTP.
|
|
|
|
type MockTOTPMockRecorder struct {
|
|
|
|
mock *MockTOTP
|
|
|
|
}
|
|
|
|
|
|
|
|
// NewMockTOTP creates a new mock instance.
|
|
|
|
func NewMockTOTP(ctrl *gomock.Controller) *MockTOTP {
|
|
|
|
mock := &MockTOTP{ctrl: ctrl}
|
|
|
|
mock.recorder = &MockTOTPMockRecorder{mock}
|
|
|
|
return mock
|
|
|
|
}
|
|
|
|
|
|
|
|
// EXPECT returns an object that allows the caller to indicate expected use.
|
|
|
|
func (m *MockTOTP) EXPECT() *MockTOTPMockRecorder {
|
|
|
|
return m.recorder
|
|
|
|
}
|
|
|
|
|
|
|
|
// Generate mocks base method.
|
2022-03-17 11:02:54 +07:00
|
|
|
func (m *MockTOTP) Generate(arg0 string) (*model.TOTPConfiguration, error) {
|
2021-12-01 19:11:29 +07:00
|
|
|
m.ctrl.T.Helper()
|
|
|
|
ret := m.ctrl.Call(m, "Generate", arg0)
|
2022-03-17 11:02:54 +07:00
|
|
|
ret0, _ := ret[0].(*model.TOTPConfiguration)
|
2021-12-01 19:11:29 +07:00
|
|
|
ret1, _ := ret[1].(error)
|
|
|
|
return ret0, ret1
|
|
|
|
}
|
|
|
|
|
|
|
|
// Generate indicates an expected call of Generate.
|
|
|
|
func (mr *MockTOTPMockRecorder) Generate(arg0 interface{}) *gomock.Call {
|
|
|
|
mr.mock.ctrl.T.Helper()
|
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Generate", reflect.TypeOf((*MockTOTP)(nil).Generate), arg0)
|
|
|
|
}
|
|
|
|
|
|
|
|
// GenerateCustom mocks base method.
|
2022-04-08 06:01:01 +07:00
|
|
|
func (m *MockTOTP) GenerateCustom(arg0, arg1, arg2 string, arg3, arg4, arg5 uint) (*model.TOTPConfiguration, error) {
|
2021-12-01 19:11:29 +07:00
|
|
|
m.ctrl.T.Helper()
|
2022-04-08 06:01:01 +07:00
|
|
|
ret := m.ctrl.Call(m, "GenerateCustom", arg0, arg1, arg2, arg3, arg4, arg5)
|
2022-03-17 11:02:54 +07:00
|
|
|
ret0, _ := ret[0].(*model.TOTPConfiguration)
|
2021-12-01 19:11:29 +07:00
|
|
|
ret1, _ := ret[1].(error)
|
|
|
|
return ret0, ret1
|
|
|
|
}
|
|
|
|
|
|
|
|
// GenerateCustom indicates an expected call of GenerateCustom.
|
2022-04-08 06:01:01 +07:00
|
|
|
func (mr *MockTOTPMockRecorder) GenerateCustom(arg0, arg1, arg2, arg3, arg4, arg5 interface{}) *gomock.Call {
|
2021-12-01 19:11:29 +07:00
|
|
|
mr.mock.ctrl.T.Helper()
|
2022-04-08 06:01:01 +07:00
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GenerateCustom", reflect.TypeOf((*MockTOTP)(nil).GenerateCustom), arg0, arg1, arg2, arg3, arg4, arg5)
|
2021-12-01 19:11:29 +07:00
|
|
|
}
|
|
|
|
|
|
|
|
// Validate mocks base method.
|
2022-03-17 11:02:54 +07:00
|
|
|
func (m *MockTOTP) Validate(arg0 string, arg1 *model.TOTPConfiguration) (bool, error) {
|
2021-12-01 19:11:29 +07:00
|
|
|
m.ctrl.T.Helper()
|
|
|
|
ret := m.ctrl.Call(m, "Validate", arg0, arg1)
|
|
|
|
ret0, _ := ret[0].(bool)
|
|
|
|
ret1, _ := ret[1].(error)
|
|
|
|
return ret0, ret1
|
|
|
|
}
|
|
|
|
|
|
|
|
// Validate indicates an expected call of Validate.
|
|
|
|
func (mr *MockTOTPMockRecorder) Validate(arg0, arg1 interface{}) *gomock.Call {
|
|
|
|
mr.mock.ctrl.T.Helper()
|
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Validate", reflect.TypeOf((*MockTOTP)(nil).Validate), arg0, arg1)
|
|
|
|
}
|