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