mirror of
https://github.com/0rangebananaspy/authelia.git
synced 2024-09-14 22:47:21 +07:00
06ceafd905
This simplifies the interface to just expose the methods from the underlying connection that we need. The addition of gen.go makes creating the generated mocks easy go generate.
56 lines
1.9 KiB
Go
56 lines
1.9 KiB
Go
// Code generated by MockGen. DO NOT EDIT.
|
|
// Source: github.com/authelia/authelia/v4/internal/authentication (interfaces: LDAPConnectionFactory)
|
|
|
|
// Package authentication is a generated GoMock package.
|
|
package authentication
|
|
|
|
import (
|
|
reflect "reflect"
|
|
|
|
v3 "github.com/go-ldap/ldap/v3"
|
|
gomock "github.com/golang/mock/gomock"
|
|
)
|
|
|
|
// MockLDAPConnectionFactory is a mock of LDAPConnectionFactory interface.
|
|
type MockLDAPConnectionFactory struct {
|
|
ctrl *gomock.Controller
|
|
recorder *MockLDAPConnectionFactoryMockRecorder
|
|
}
|
|
|
|
// MockLDAPConnectionFactoryMockRecorder is the mock recorder for MockLDAPConnectionFactory.
|
|
type MockLDAPConnectionFactoryMockRecorder struct {
|
|
mock *MockLDAPConnectionFactory
|
|
}
|
|
|
|
// NewMockLDAPConnectionFactory creates a new mock instance.
|
|
func NewMockLDAPConnectionFactory(ctrl *gomock.Controller) *MockLDAPConnectionFactory {
|
|
mock := &MockLDAPConnectionFactory{ctrl: ctrl}
|
|
mock.recorder = &MockLDAPConnectionFactoryMockRecorder{mock}
|
|
return mock
|
|
}
|
|
|
|
// EXPECT returns an object that allows the caller to indicate expected use.
|
|
func (m *MockLDAPConnectionFactory) EXPECT() *MockLDAPConnectionFactoryMockRecorder {
|
|
return m.recorder
|
|
}
|
|
|
|
// DialURL mocks base method.
|
|
func (m *MockLDAPConnectionFactory) DialURL(arg0 string, arg1 ...v3.DialOpt) (LDAPConnection, error) {
|
|
m.ctrl.T.Helper()
|
|
varargs := []interface{}{arg0}
|
|
for _, a := range arg1 {
|
|
varargs = append(varargs, a)
|
|
}
|
|
ret := m.ctrl.Call(m, "DialURL", varargs...)
|
|
ret0, _ := ret[0].(LDAPConnection)
|
|
ret1, _ := ret[1].(error)
|
|
return ret0, ret1
|
|
}
|
|
|
|
// DialURL indicates an expected call of DialURL.
|
|
func (mr *MockLDAPConnectionFactoryMockRecorder) DialURL(arg0 interface{}, arg1 ...interface{}) *gomock.Call {
|
|
mr.mock.ctrl.T.Helper()
|
|
varargs := append([]interface{}{arg0}, arg1...)
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DialURL", reflect.TypeOf((*MockLDAPConnectionFactory)(nil).DialURL), varargs...)
|
|
}
|