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/duo (interfaces: API)
|
2019-04-24 21:52:08 +00:00
|
|
|
|
|
|
|
// Package mocks is a generated GoMock package.
|
|
|
|
package mocks
|
|
|
|
|
|
|
|
import (
|
|
|
|
url "net/url"
|
|
|
|
reflect "reflect"
|
|
|
|
|
2021-08-11 01:04:35 +00:00
|
|
|
duo "github.com/authelia/authelia/v4/internal/duo"
|
2021-12-01 03:32:58 +00:00
|
|
|
middlewares "github.com/authelia/authelia/v4/internal/middlewares"
|
2023-01-25 09:36:40 +00:00
|
|
|
session "github.com/authelia/authelia/v4/internal/session"
|
|
|
|
gomock "github.com/golang/mock/gomock"
|
2019-04-24 21:52:08 +00:00
|
|
|
)
|
|
|
|
|
2020-05-04 19:39:25 +00:00
|
|
|
// MockAPI is a mock of API interface.
|
2019-04-24 21:52:08 +00:00
|
|
|
type MockAPI struct {
|
|
|
|
ctrl *gomock.Controller
|
|
|
|
recorder *MockAPIMockRecorder
|
|
|
|
}
|
|
|
|
|
2020-05-04 19:39:25 +00:00
|
|
|
// MockAPIMockRecorder is the mock recorder for MockAPI.
|
2019-04-24 21:52:08 +00:00
|
|
|
type MockAPIMockRecorder struct {
|
|
|
|
mock *MockAPI
|
|
|
|
}
|
|
|
|
|
2020-05-04 19:39:25 +00:00
|
|
|
// NewMockAPI creates a new mock instance.
|
2019-04-24 21:52:08 +00:00
|
|
|
func NewMockAPI(ctrl *gomock.Controller) *MockAPI {
|
|
|
|
mock := &MockAPI{ctrl: ctrl}
|
|
|
|
mock.recorder = &MockAPIMockRecorder{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 *MockAPI) EXPECT() *MockAPIMockRecorder {
|
|
|
|
return m.recorder
|
|
|
|
}
|
|
|
|
|
2021-12-01 03:32:58 +00:00
|
|
|
// AuthCall mocks base method.
|
2023-01-25 09:36:40 +00:00
|
|
|
func (m *MockAPI) AuthCall(arg0 *middlewares.AutheliaCtx, arg1 *session.UserSession, arg2 url.Values) (*duo.AuthResponse, error) {
|
2021-12-01 03:32:58 +00:00
|
|
|
m.ctrl.T.Helper()
|
2023-01-25 09:36:40 +00:00
|
|
|
ret := m.ctrl.Call(m, "AuthCall", arg0, arg1, arg2)
|
2021-12-01 03:32:58 +00:00
|
|
|
ret0, _ := ret[0].(*duo.AuthResponse)
|
|
|
|
ret1, _ := ret[1].(error)
|
|
|
|
return ret0, ret1
|
|
|
|
}
|
|
|
|
|
|
|
|
// AuthCall indicates an expected call of AuthCall.
|
2023-01-25 09:36:40 +00:00
|
|
|
func (mr *MockAPIMockRecorder) AuthCall(arg0, arg1, arg2 interface{}) *gomock.Call {
|
2021-12-01 03:32:58 +00:00
|
|
|
mr.mock.ctrl.T.Helper()
|
2023-01-25 09:36:40 +00:00
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AuthCall", reflect.TypeOf((*MockAPI)(nil).AuthCall), arg0, arg1, arg2)
|
2021-12-01 03:32:58 +00:00
|
|
|
}
|
|
|
|
|
2020-05-04 19:39:25 +00:00
|
|
|
// Call mocks base method.
|
2023-01-25 09:36:40 +00:00
|
|
|
func (m *MockAPI) Call(arg0 *middlewares.AutheliaCtx, arg1 *session.UserSession, arg2 url.Values, arg3, arg4 string) (*duo.Response, error) {
|
2019-04-24 21:52:08 +00:00
|
|
|
m.ctrl.T.Helper()
|
2023-01-25 09:36:40 +00:00
|
|
|
ret := m.ctrl.Call(m, "Call", arg0, arg1, arg2, arg3, arg4)
|
2019-04-24 21:52:08 +00:00
|
|
|
ret0, _ := ret[0].(*duo.Response)
|
|
|
|
ret1, _ := ret[1].(error)
|
|
|
|
return ret0, ret1
|
|
|
|
}
|
|
|
|
|
2020-05-04 19:39:25 +00:00
|
|
|
// Call indicates an expected call of Call.
|
2023-01-25 09:36:40 +00:00
|
|
|
func (mr *MockAPIMockRecorder) Call(arg0, arg1, arg2, arg3, arg4 interface{}) *gomock.Call {
|
2021-12-01 03:32:58 +00:00
|
|
|
mr.mock.ctrl.T.Helper()
|
2023-01-25 09:36:40 +00:00
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Call", reflect.TypeOf((*MockAPI)(nil).Call), arg0, arg1, arg2, arg3, arg4)
|
2021-12-01 03:32:58 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// PreAuthCall mocks base method.
|
2023-01-25 09:36:40 +00:00
|
|
|
func (m *MockAPI) PreAuthCall(arg0 *middlewares.AutheliaCtx, arg1 *session.UserSession, arg2 url.Values) (*duo.PreAuthResponse, error) {
|
2021-12-01 03:32:58 +00:00
|
|
|
m.ctrl.T.Helper()
|
2023-01-25 09:36:40 +00:00
|
|
|
ret := m.ctrl.Call(m, "PreAuthCall", arg0, arg1, arg2)
|
2021-12-01 03:32:58 +00:00
|
|
|
ret0, _ := ret[0].(*duo.PreAuthResponse)
|
|
|
|
ret1, _ := ret[1].(error)
|
|
|
|
return ret0, ret1
|
|
|
|
}
|
|
|
|
|
|
|
|
// PreAuthCall indicates an expected call of PreAuthCall.
|
2023-01-25 09:36:40 +00:00
|
|
|
func (mr *MockAPIMockRecorder) PreAuthCall(arg0, arg1, arg2 interface{}) *gomock.Call {
|
2019-04-24 21:52:08 +00:00
|
|
|
mr.mock.ctrl.T.Helper()
|
2023-01-25 09:36:40 +00:00
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "PreAuthCall", reflect.TypeOf((*MockAPI)(nil).PreAuthCall), arg0, arg1, arg2)
|
2019-04-24 21:52:08 +00:00
|
|
|
}
|