// Code generated by mockery; DO NOT EDIT.
// github.com/vektra/mockery
// template: testify

package mocks

import (
	"context"

	mock "github.com/stretchr/testify/mock"
)

// NewKeyspaceFetcher creates a new instance of KeyspaceFetcher. 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 NewKeyspaceFetcher(t interface {
	mock.TestingT
	Cleanup(func())
}) *KeyspaceFetcher {
	mock := &KeyspaceFetcher{}
	mock.Mock.Test(t)

	t.Cleanup(func() { mock.AssertExpectations(t) })

	return mock
}

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

type KeyspaceFetcher_Expecter struct {
	mock *mock.Mock
}

func (_m *KeyspaceFetcher) EXPECT() *KeyspaceFetcher_Expecter {
	return &KeyspaceFetcher_Expecter{mock: &_m.Mock}
}

// GetClusterIds provides a mock function for the type KeyspaceFetcher
func (_mock *KeyspaceFetcher) GetClusterIds(ctx context.Context, sharedPoolId string, keyspaces []string) (map[string]string, error) {
	ret := _mock.Called(ctx, sharedPoolId, keyspaces)

	if len(ret) == 0 {
		panic("no return value specified for GetClusterIds")
	}

	var r0 map[string]string
	var r1 error
	if returnFunc, ok := ret.Get(0).(func(context.Context, string, []string) (map[string]string, error)); ok {
		return returnFunc(ctx, sharedPoolId, keyspaces)
	}
	if returnFunc, ok := ret.Get(0).(func(context.Context, string, []string) map[string]string); ok {
		r0 = returnFunc(ctx, sharedPoolId, keyspaces)
	} else {
		if ret.Get(0) != nil {
			r0 = ret.Get(0).(map[string]string)
		}
	}
	if returnFunc, ok := ret.Get(1).(func(context.Context, string, []string) error); ok {
		r1 = returnFunc(ctx, sharedPoolId, keyspaces)
	} else {
		r1 = ret.Error(1)
	}
	return r0, r1
}

// KeyspaceFetcher_GetClusterIds_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetClusterIds'
type KeyspaceFetcher_GetClusterIds_Call struct {
	*mock.Call
}

// GetClusterIds is a helper method to define mock.On call
//   - ctx context.Context
//   - sharedPoolId string
//   - keyspaces []string
func (_e *KeyspaceFetcher_Expecter) GetClusterIds(ctx interface{}, sharedPoolId interface{}, keyspaces interface{}) *KeyspaceFetcher_GetClusterIds_Call {
	return &KeyspaceFetcher_GetClusterIds_Call{Call: _e.mock.On("GetClusterIds", ctx, sharedPoolId, keyspaces)}
}

func (_c *KeyspaceFetcher_GetClusterIds_Call) Run(run func(ctx context.Context, sharedPoolId string, keyspaces []string)) *KeyspaceFetcher_GetClusterIds_Call {
	_c.Call.Run(func(args mock.Arguments) {
		var arg0 context.Context
		if args[0] != nil {
			arg0 = args[0].(context.Context)
		}
		var arg1 string
		if args[1] != nil {
			arg1 = args[1].(string)
		}
		var arg2 []string
		if args[2] != nil {
			arg2 = args[2].([]string)
		}
		run(
			arg0,
			arg1,
			arg2,
		)
	})
	return _c
}

func (_c *KeyspaceFetcher_GetClusterIds_Call) Return(stringToString map[string]string, err error) *KeyspaceFetcher_GetClusterIds_Call {
	_c.Call.Return(stringToString, err)
	return _c
}

func (_c *KeyspaceFetcher_GetClusterIds_Call) RunAndReturn(run func(ctx context.Context, sharedPoolId string, keyspaces []string) (map[string]string, error)) *KeyspaceFetcher_GetClusterIds_Call {
	_c.Call.Return(run)
	return _c
}

// GetKeyspace provides a mock function for the type KeyspaceFetcher
func (_mock *KeyspaceFetcher) GetKeyspace(ctx context.Context, clusterId string, sharedPoolId string) (string, error) {
	ret := _mock.Called(ctx, clusterId, sharedPoolId)

	if len(ret) == 0 {
		panic("no return value specified for GetKeyspace")
	}

	var r0 string
	var r1 error
	if returnFunc, ok := ret.Get(0).(func(context.Context, string, string) (string, error)); ok {
		return returnFunc(ctx, clusterId, sharedPoolId)
	}
	if returnFunc, ok := ret.Get(0).(func(context.Context, string, string) string); ok {
		r0 = returnFunc(ctx, clusterId, sharedPoolId)
	} else {
		r0 = ret.Get(0).(string)
	}
	if returnFunc, ok := ret.Get(1).(func(context.Context, string, string) error); ok {
		r1 = returnFunc(ctx, clusterId, sharedPoolId)
	} else {
		r1 = ret.Error(1)
	}
	return r0, r1
}

// KeyspaceFetcher_GetKeyspace_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetKeyspace'
type KeyspaceFetcher_GetKeyspace_Call struct {
	*mock.Call
}

// GetKeyspace is a helper method to define mock.On call
//   - ctx context.Context
//   - clusterId string
//   - sharedPoolId string
func (_e *KeyspaceFetcher_Expecter) GetKeyspace(ctx interface{}, clusterId interface{}, sharedPoolId interface{}) *KeyspaceFetcher_GetKeyspace_Call {
	return &KeyspaceFetcher_GetKeyspace_Call{Call: _e.mock.On("GetKeyspace", ctx, clusterId, sharedPoolId)}
}

func (_c *KeyspaceFetcher_GetKeyspace_Call) Run(run func(ctx context.Context, clusterId string, sharedPoolId string)) *KeyspaceFetcher_GetKeyspace_Call {
	_c.Call.Run(func(args mock.Arguments) {
		var arg0 context.Context
		if args[0] != nil {
			arg0 = args[0].(context.Context)
		}
		var arg1 string
		if args[1] != nil {
			arg1 = args[1].(string)
		}
		var arg2 string
		if args[2] != nil {
			arg2 = args[2].(string)
		}
		run(
			arg0,
			arg1,
			arg2,
		)
	})
	return _c
}

func (_c *KeyspaceFetcher_GetKeyspace_Call) Return(s string, err error) *KeyspaceFetcher_GetKeyspace_Call {
	_c.Call.Return(s, err)
	return _c
}

func (_c *KeyspaceFetcher_GetKeyspace_Call) RunAndReturn(run func(ctx context.Context, clusterId string, sharedPoolId string) (string, error)) *KeyspaceFetcher_GetKeyspace_Call {
	_c.Call.Return(run)
	return _c
}
