mirror of https://github.com/authelia/authelia.git
62 lines
2.0 KiB
Go
62 lines
2.0 KiB
Go
// Code generated by MockGen. DO NOT EDIT.
|
|
// Source: github.com/authelia/authelia/v4/internal/authentication (interfaces: LDAPClientFactory)
|
|
//
|
|
// Generated by this command:
|
|
//
|
|
// mockgen -package authentication -destination ldap_client_factory_mock_test.go -mock_names LDAPClientFactory=MockLDAPClientFactory github.com/authelia/authelia/v4/internal/authentication LDAPClientFactory
|
|
//
|
|
|
|
// Package authentication is a generated GoMock package.
|
|
package authentication
|
|
|
|
import (
|
|
reflect "reflect"
|
|
|
|
ldap "github.com/go-ldap/ldap/v3"
|
|
gomock "go.uber.org/mock/gomock"
|
|
)
|
|
|
|
// MockLDAPClientFactory is a mock of LDAPClientFactory interface.
|
|
type MockLDAPClientFactory struct {
|
|
ctrl *gomock.Controller
|
|
recorder *MockLDAPClientFactoryMockRecorder
|
|
isgomock struct{}
|
|
}
|
|
|
|
// MockLDAPClientFactoryMockRecorder is the mock recorder for MockLDAPClientFactory.
|
|
type MockLDAPClientFactoryMockRecorder struct {
|
|
mock *MockLDAPClientFactory
|
|
}
|
|
|
|
// NewMockLDAPClientFactory creates a new mock instance.
|
|
func NewMockLDAPClientFactory(ctrl *gomock.Controller) *MockLDAPClientFactory {
|
|
mock := &MockLDAPClientFactory{ctrl: ctrl}
|
|
mock.recorder = &MockLDAPClientFactoryMockRecorder{mock}
|
|
return mock
|
|
}
|
|
|
|
// EXPECT returns an object that allows the caller to indicate expected use.
|
|
func (m *MockLDAPClientFactory) EXPECT() *MockLDAPClientFactoryMockRecorder {
|
|
return m.recorder
|
|
}
|
|
|
|
// DialURL mocks base method.
|
|
func (m *MockLDAPClientFactory) DialURL(addr string, opts ...ldap.DialOpt) (LDAPClient, error) {
|
|
m.ctrl.T.Helper()
|
|
varargs := []any{addr}
|
|
for _, a := range opts {
|
|
varargs = append(varargs, a)
|
|
}
|
|
ret := m.ctrl.Call(m, "DialURL", varargs...)
|
|
ret0, _ := ret[0].(LDAPClient)
|
|
ret1, _ := ret[1].(error)
|
|
return ret0, ret1
|
|
}
|
|
|
|
// DialURL indicates an expected call of DialURL.
|
|
func (mr *MockLDAPClientFactoryMockRecorder) DialURL(addr any, opts ...any) *gomock.Call {
|
|
mr.mock.ctrl.T.Helper()
|
|
varargs := append([]any{addr}, opts...)
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DialURL", reflect.TypeOf((*MockLDAPClientFactory)(nil).DialURL), varargs...)
|
|
}
|