// Code generated by mockery v1.0.0. DO NOT EDIT.

package mocks

import (
	ldap "github.com/go-ldap/ldap"
	mock "github.com/stretchr/testify/mock"
)

// LDAPSearcher is an autogenerated mock type for the LDAPSearcher type
type LDAPSearcher struct {
	mock.Mock
}

// Search provides a mock function with given fields: url, req
func (_m *LDAPSearcher) Search(url string, req *ldap.SearchRequest) (*ldap.SearchResult, error) {
	ret := _m.Called(url, req)

	var r0 *ldap.SearchResult
	if rf, ok := ret.Get(0).(func(string, *ldap.SearchRequest) *ldap.SearchResult); ok {
		r0 = rf(url, req)
	} else {
		if ret.Get(0) != nil {
			r0 = ret.Get(0).(*ldap.SearchResult)
		}
	}

	var r1 error
	if rf, ok := ret.Get(1).(func(string, *ldap.SearchRequest) error); ok {
		r1 = rf(url, req)
	} else {
		r1 = ret.Error(1)
	}

	return r0, r1
}
