2019-04-25 04:52:08 +07:00
|
|
|
// Code generated by MockGen. DO NOT EDIT.
|
2019-12-24 09:14:52 +07:00
|
|
|
// Source: github.com/authelia/authelia/internal/duo (interfaces: API)
|
2019-04-25 04:52:08 +07:00
|
|
|
|
|
|
|
// Package mocks is a generated GoMock package.
|
|
|
|
package mocks
|
|
|
|
|
|
|
|
import (
|
|
|
|
url "net/url"
|
|
|
|
reflect "reflect"
|
|
|
|
|
2020-04-05 19:37:21 +07:00
|
|
|
gomock "github.com/golang/mock/gomock"
|
|
|
|
|
2019-12-24 09:14:52 +07:00
|
|
|
duo "github.com/authelia/authelia/internal/duo"
|
2020-03-01 07:51:11 +07:00
|
|
|
"github.com/authelia/authelia/internal/middlewares"
|
2019-04-25 04:52:08 +07:00
|
|
|
)
|
|
|
|
|
2020-05-05 02:39:25 +07:00
|
|
|
// MockAPI is a mock of API interface.
|
2019-04-25 04:52:08 +07:00
|
|
|
type MockAPI struct {
|
|
|
|
ctrl *gomock.Controller
|
|
|
|
recorder *MockAPIMockRecorder
|
|
|
|
}
|
|
|
|
|
2020-05-05 02:39:25 +07:00
|
|
|
// MockAPIMockRecorder is the mock recorder for MockAPI.
|
2019-04-25 04:52:08 +07:00
|
|
|
type MockAPIMockRecorder struct {
|
|
|
|
mock *MockAPI
|
|
|
|
}
|
|
|
|
|
2020-05-05 02:39:25 +07:00
|
|
|
// NewMockAPI creates a new mock instance.
|
2019-04-25 04:52:08 +07:00
|
|
|
func NewMockAPI(ctrl *gomock.Controller) *MockAPI {
|
|
|
|
mock := &MockAPI{ctrl: ctrl}
|
|
|
|
mock.recorder = &MockAPIMockRecorder{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 *MockAPI) EXPECT() *MockAPIMockRecorder {
|
|
|
|
return m.recorder
|
|
|
|
}
|
|
|
|
|
2020-05-05 02:39:25 +07:00
|
|
|
// Call mocks base method.
|
2020-03-01 07:51:11 +07:00
|
|
|
func (m *MockAPI) Call(arg0 url.Values, arg1 *middlewares.AutheliaCtx) (*duo.Response, error) {
|
2019-04-25 04:52:08 +07:00
|
|
|
m.ctrl.T.Helper()
|
2020-03-01 07:51:11 +07:00
|
|
|
ret := m.ctrl.Call(m, "Call", arg0, arg1)
|
2019-04-25 04:52:08 +07:00
|
|
|
ret0, _ := ret[0].(*duo.Response)
|
|
|
|
ret1, _ := ret[1].(error)
|
|
|
|
return ret0, ret1
|
|
|
|
}
|
|
|
|
|
2020-05-05 02:39:25 +07:00
|
|
|
// Call indicates an expected call of Call.
|
2020-03-01 07:51:11 +07:00
|
|
|
func (mr *MockAPIMockRecorder) Call(arg0, arg1 interface{}) *gomock.Call {
|
2019-04-25 04:52:08 +07:00
|
|
|
mr.mock.ctrl.T.Helper()
|
2020-03-01 07:51:11 +07:00
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Call", reflect.TypeOf((*MockAPI)(nil).Call), arg0, arg1)
|
2019-04-25 04:52:08 +07:00
|
|
|
}
|