mocks

package
v2.9.1-rc0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 1, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type LDAPClient

type LDAPClient struct {
	mock.Mock
}

LDAPClient is an autogenerated mock type for the LDAPClient type

func NewLDAPClient

func NewLDAPClient(t interface {
	mock.TestingT
	Cleanup(func())
}) *LDAPClient

NewLDAPClient creates a new instance of LDAPClient. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*LDAPClient) CreateEphemeralConnection

func (_m *LDAPClient) CreateEphemeralConnection() (ldapauth.LDAPConn, error)

CreateEphemeralConnection provides a mock function with given fields:

type LDAPConn

type LDAPConn struct {
	mock.Mock
}

LDAPConn is an autogenerated mock type for the LDAPConn type

func NewLDAPConn

func NewLDAPConn(t interface {
	mock.TestingT
	Cleanup(func())
}) *LDAPConn

NewLDAPConn creates a new instance of LDAPConn. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*LDAPConn) Bind

func (_m *LDAPConn) Bind(username string, password string) error

Bind provides a mock function with given fields: username, password

func (*LDAPConn) Close

func (_m *LDAPConn) Close() error

Close provides a mock function with given fields:

func (*LDAPConn) Search

func (_m *LDAPConn) Search(searchRequest *ldap.SearchRequest) (*ldap.SearchResult, error)

Search provides a mock function with given fields: searchRequest

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL