2019-12-06 15:15:54 +07:00
|
|
|
// Code generated by MockGen. DO NOT EDIT.
|
2022-03-17 11:02:54 +07:00
|
|
|
// Source: github.com/authelia/authelia/v4/internal/authentication (interfaces: LDAPConnectionFactory)
|
|
|
|
|
|
|
|
// Package authentication is a generated GoMock package.
|
2019-12-06 15:15:54 +07:00
|
|
|
package authentication
|
|
|
|
|
|
|
|
import (
|
2021-01-04 17:28:55 +07:00
|
|
|
reflect "reflect"
|
|
|
|
|
2022-03-17 11:02:54 +07:00
|
|
|
v3 "github.com/go-ldap/ldap/v3"
|
2019-12-06 15:15:54 +07:00
|
|
|
gomock "github.com/golang/mock/gomock"
|
|
|
|
)
|
|
|
|
|
2021-08-05 11:30:00 +07:00
|
|
|
// MockLDAPConnectionFactory is a mock of LDAPConnectionFactory interface.
|
2019-12-06 15:15:54 +07:00
|
|
|
type MockLDAPConnectionFactory struct {
|
|
|
|
ctrl *gomock.Controller
|
|
|
|
recorder *MockLDAPConnectionFactoryMockRecorder
|
|
|
|
}
|
|
|
|
|
2021-08-05 11:30:00 +07:00
|
|
|
// MockLDAPConnectionFactoryMockRecorder is the mock recorder for MockLDAPConnectionFactory.
|
2019-12-06 15:15:54 +07:00
|
|
|
type MockLDAPConnectionFactoryMockRecorder struct {
|
|
|
|
mock *MockLDAPConnectionFactory
|
|
|
|
}
|
|
|
|
|
2021-08-05 11:30:00 +07:00
|
|
|
// NewMockLDAPConnectionFactory creates a new mock instance.
|
2019-12-06 15:15:54 +07:00
|
|
|
func NewMockLDAPConnectionFactory(ctrl *gomock.Controller) *MockLDAPConnectionFactory {
|
|
|
|
mock := &MockLDAPConnectionFactory{ctrl: ctrl}
|
|
|
|
mock.recorder = &MockLDAPConnectionFactoryMockRecorder{mock}
|
|
|
|
return mock
|
|
|
|
}
|
|
|
|
|
2021-08-05 11:30:00 +07:00
|
|
|
// EXPECT returns an object that allows the caller to indicate expected use.
|
2019-12-06 15:15:54 +07:00
|
|
|
func (m *MockLDAPConnectionFactory) EXPECT() *MockLDAPConnectionFactoryMockRecorder {
|
|
|
|
return m.recorder
|
|
|
|
}
|
|
|
|
|
2021-08-05 11:30:00 +07:00
|
|
|
// DialURL mocks base method.
|
2022-03-17 11:02:54 +07:00
|
|
|
func (m *MockLDAPConnectionFactory) DialURL(arg0 string, arg1 ...v3.DialOpt) (LDAPConnection, error) {
|
2019-12-06 15:15:54 +07:00
|
|
|
m.ctrl.T.Helper()
|
2022-03-17 11:02:54 +07:00
|
|
|
varargs := []interface{}{arg0}
|
|
|
|
for _, a := range arg1 {
|
2021-08-05 11:30:00 +07:00
|
|
|
varargs = append(varargs, a)
|
|
|
|
}
|
|
|
|
ret := m.ctrl.Call(m, "DialURL", varargs...)
|
2019-12-06 15:15:54 +07:00
|
|
|
ret0, _ := ret[0].(LDAPConnection)
|
|
|
|
ret1, _ := ret[1].(error)
|
|
|
|
return ret0, ret1
|
|
|
|
}
|
|
|
|
|
2021-08-05 11:30:00 +07:00
|
|
|
// DialURL indicates an expected call of DialURL.
|
2022-03-17 11:02:54 +07:00
|
|
|
func (mr *MockLDAPConnectionFactoryMockRecorder) DialURL(arg0 interface{}, arg1 ...interface{}) *gomock.Call {
|
2019-12-06 15:15:54 +07:00
|
|
|
mr.mock.ctrl.T.Helper()
|
2022-03-17 11:02:54 +07:00
|
|
|
varargs := append([]interface{}{arg0}, arg1...)
|
2021-08-05 11:30:00 +07:00
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DialURL", reflect.TypeOf((*MockLDAPConnectionFactory)(nil).DialURL), varargs...)
|
2019-12-06 15:15:54 +07:00
|
|
|
}
|