2019-04-24 21:52:08 +00:00
|
|
|
// Code generated by MockGen. DO NOT EDIT.
|
2019-12-24 02:14:52 +00:00
|
|
|
// Source: github.com/authelia/authelia/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"
|
|
|
|
|
2019-12-24 02:14:52 +00:00
|
|
|
duo "github.com/authelia/authelia/internal/duo"
|
2019-04-24 21:52:08 +00:00
|
|
|
gomock "github.com/golang/mock/gomock"
|
|
|
|
)
|
|
|
|
|
|
|
|
// MockAPI is a mock of API interface
|
|
|
|
type MockAPI struct {
|
|
|
|
ctrl *gomock.Controller
|
|
|
|
recorder *MockAPIMockRecorder
|
|
|
|
}
|
|
|
|
|
|
|
|
// MockAPIMockRecorder is the mock recorder for MockAPI
|
|
|
|
type MockAPIMockRecorder struct {
|
|
|
|
mock *MockAPI
|
|
|
|
}
|
|
|
|
|
|
|
|
// NewMockAPI creates a new mock instance
|
|
|
|
func NewMockAPI(ctrl *gomock.Controller) *MockAPI {
|
|
|
|
mock := &MockAPI{ctrl: ctrl}
|
|
|
|
mock.recorder = &MockAPIMockRecorder{mock}
|
|
|
|
return mock
|
|
|
|
}
|
|
|
|
|
|
|
|
// EXPECT returns an object that allows the caller to indicate expected use
|
|
|
|
func (m *MockAPI) EXPECT() *MockAPIMockRecorder {
|
|
|
|
return m.recorder
|
|
|
|
}
|
|
|
|
|
|
|
|
// Call mocks base method
|
|
|
|
func (m *MockAPI) Call(arg0 url.Values) (*duo.Response, error) {
|
|
|
|
m.ctrl.T.Helper()
|
|
|
|
ret := m.ctrl.Call(m, "Call", arg0)
|
|
|
|
ret0, _ := ret[0].(*duo.Response)
|
|
|
|
ret1, _ := ret[1].(error)
|
|
|
|
return ret0, ret1
|
|
|
|
}
|
|
|
|
|
|
|
|
// Call indicates an expected call of Call
|
|
|
|
func (mr *MockAPIMockRecorder) Call(arg0 interface{}) *gomock.Call {
|
|
|
|
mr.mock.ctrl.T.Helper()
|
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Call", reflect.TypeOf((*MockAPI)(nil).Call), arg0)
|
|
|
|
}
|