// Code generated by counterfeiter. DO NOT EDIT.
package fakes

import (
	"sync"
)

type SDCClient struct {
	IPsStub        func(string) ([]string, error)
	iPsMutex       sync.RWMutex
	iPsArgsForCall []struct {
		arg1 string
	}
	iPsReturns struct {
		result1 []string
		result2 error
	}
	iPsReturnsOnCall map[int]struct {
		result1 []string
		result2 error
	}
	invocations      map[string][][]interface{}
	invocationsMutex sync.RWMutex
}

func (fake *SDCClient) IPs(arg1 string) ([]string, error) {
	fake.iPsMutex.Lock()
	ret, specificReturn := fake.iPsReturnsOnCall[len(fake.iPsArgsForCall)]
	fake.iPsArgsForCall = append(fake.iPsArgsForCall, struct {
		arg1 string
	}{arg1})
	stub := fake.IPsStub
	fakeReturns := fake.iPsReturns
	fake.recordInvocation("IPs", []interface{}{arg1})
	fake.iPsMutex.Unlock()
	if stub != nil {
		return stub(arg1)
	}
	if specificReturn {
		return ret.result1, ret.result2
	}
	return fakeReturns.result1, fakeReturns.result2
}

func (fake *SDCClient) IPsCallCount() int {
	fake.iPsMutex.RLock()
	defer fake.iPsMutex.RUnlock()
	return len(fake.iPsArgsForCall)
}

func (fake *SDCClient) IPsCalls(stub func(string) ([]string, error)) {
	fake.iPsMutex.Lock()
	defer fake.iPsMutex.Unlock()
	fake.IPsStub = stub
}

func (fake *SDCClient) IPsArgsForCall(i int) string {
	fake.iPsMutex.RLock()
	defer fake.iPsMutex.RUnlock()
	argsForCall := fake.iPsArgsForCall[i]
	return argsForCall.arg1
}

func (fake *SDCClient) IPsReturns(result1 []string, result2 error) {
	fake.iPsMutex.Lock()
	defer fake.iPsMutex.Unlock()
	fake.IPsStub = nil
	fake.iPsReturns = struct {
		result1 []string
		result2 error
	}{result1, result2}
}

func (fake *SDCClient) IPsReturnsOnCall(i int, result1 []string, result2 error) {
	fake.iPsMutex.Lock()
	defer fake.iPsMutex.Unlock()
	fake.IPsStub = nil
	if fake.iPsReturnsOnCall == nil {
		fake.iPsReturnsOnCall = make(map[int]struct {
			result1 []string
			result2 error
		})
	}
	fake.iPsReturnsOnCall[i] = struct {
		result1 []string
		result2 error
	}{result1, result2}
}

func (fake *SDCClient) Invocations() map[string][][]interface{} {
	fake.invocationsMutex.RLock()
	defer fake.invocationsMutex.RUnlock()
	fake.iPsMutex.RLock()
	defer fake.iPsMutex.RUnlock()
	copiedInvocations := map[string][][]interface{}{}
	for key, value := range fake.invocations {
		copiedInvocations[key] = value
	}
	return copiedInvocations
}

func (fake *SDCClient) recordInvocation(key string, args []interface{}) {
	fake.invocationsMutex.Lock()
	defer fake.invocationsMutex.Unlock()
	if fake.invocations == nil {
		fake.invocations = map[string][][]interface{}{}
	}
	if fake.invocations[key] == nil {
		fake.invocations[key] = [][]interface{}{}
	}
	fake.invocations[key] = append(fake.invocations[key], args)
}
