2020-02-01 12:54:50 +00:00
|
|
|
// Code generated by MockGen. DO NOT EDIT.
|
|
|
|
// Source: internal/handlers/totp.go
|
|
|
|
|
|
|
|
// Package handlers is a generated GoMock package.
|
|
|
|
package handlers
|
|
|
|
|
|
|
|
import (
|
2021-11-23 09:45:38 +00:00
|
|
|
"reflect"
|
2020-04-05 12:37:21 +00:00
|
|
|
|
2021-11-23 09:45:38 +00:00
|
|
|
"github.com/golang/mock/gomock"
|
|
|
|
|
|
|
|
"github.com/authelia/authelia/v4/internal/models"
|
2020-02-01 12:54:50 +00:00
|
|
|
)
|
|
|
|
|
2021-11-23 09:45:38 +00:00
|
|
|
// MockTOTPVerifier is a mock of TOTPVerifier interface.
|
2020-02-01 12:54:50 +00:00
|
|
|
type MockTOTPVerifier struct {
|
|
|
|
ctrl *gomock.Controller
|
|
|
|
recorder *MockTOTPVerifierMockRecorder
|
|
|
|
}
|
|
|
|
|
2021-11-23 09:45:38 +00:00
|
|
|
// MockTOTPVerifierMockRecorder is the mock recorder for MockTOTPVerifier.
|
2020-02-01 12:54:50 +00:00
|
|
|
type MockTOTPVerifierMockRecorder struct {
|
|
|
|
mock *MockTOTPVerifier
|
|
|
|
}
|
|
|
|
|
2021-11-23 09:45:38 +00:00
|
|
|
// NewMockTOTPVerifier creates a new mock instance.
|
2020-02-01 12:54:50 +00:00
|
|
|
func NewMockTOTPVerifier(ctrl *gomock.Controller) *MockTOTPVerifier {
|
|
|
|
mock := &MockTOTPVerifier{ctrl: ctrl}
|
|
|
|
mock.recorder = &MockTOTPVerifierMockRecorder{mock}
|
|
|
|
return mock
|
|
|
|
}
|
|
|
|
|
2021-11-23 09:45:38 +00:00
|
|
|
// EXPECT returns an object that allows the caller to indicate expected use.
|
2020-02-01 12:54:50 +00:00
|
|
|
func (m *MockTOTPVerifier) EXPECT() *MockTOTPVerifierMockRecorder {
|
|
|
|
return m.recorder
|
|
|
|
}
|
|
|
|
|
2021-11-23 09:45:38 +00:00
|
|
|
// Verify mocks base method.
|
|
|
|
func (m *MockTOTPVerifier) Verify(arg0 *models.TOTPConfiguration, arg1 string) (bool, error) {
|
2020-02-01 12:54:50 +00:00
|
|
|
m.ctrl.T.Helper()
|
2021-11-23 09:45:38 +00:00
|
|
|
ret := m.ctrl.Call(m, "Verify", arg0, arg1)
|
2020-02-01 12:54:50 +00:00
|
|
|
ret0, _ := ret[0].(bool)
|
2020-03-25 01:48:20 +00:00
|
|
|
ret1, _ := ret[1].(error)
|
|
|
|
return ret0, ret1
|
2020-02-01 12:54:50 +00:00
|
|
|
}
|
|
|
|
|
2021-11-23 09:45:38 +00:00
|
|
|
// Verify indicates an expected call of Verify.
|
|
|
|
func (mr *MockTOTPVerifierMockRecorder) Verify(arg0, arg1 interface{}) *gomock.Call {
|
2020-02-01 12:54:50 +00:00
|
|
|
mr.mock.ctrl.T.Helper()
|
2021-11-23 09:45:38 +00:00
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Verify", reflect.TypeOf((*MockTOTPVerifier)(nil).Verify), arg0, arg1)
|
2020-02-01 12:54:50 +00:00
|
|
|
}
|