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

import (
	"sync"

	"github.com/cloudfoundry/bosh-agent/v2/platform"
)

type FakeAuditLogger struct {
	DebugStub        func(string)
	debugMutex       sync.RWMutex
	debugArgsForCall []struct {
		arg1 string
	}
	ErrStub        func(string)
	errMutex       sync.RWMutex
	errArgsForCall []struct {
		arg1 string
	}
	StartLoggingStub        func()
	startLoggingMutex       sync.RWMutex
	startLoggingArgsForCall []struct {
	}
	invocations      map[string][][]interface{}
	invocationsMutex sync.RWMutex
}

func (fake *FakeAuditLogger) Debug(arg1 string) {
	fake.debugMutex.Lock()
	fake.debugArgsForCall = append(fake.debugArgsForCall, struct {
		arg1 string
	}{arg1})
	stub := fake.DebugStub
	fake.recordInvocation("Debug", []interface{}{arg1})
	fake.debugMutex.Unlock()
	if stub != nil {
		fake.DebugStub(arg1)
	}
}

func (fake *FakeAuditLogger) DebugCallCount() int {
	fake.debugMutex.RLock()
	defer fake.debugMutex.RUnlock()
	return len(fake.debugArgsForCall)
}

func (fake *FakeAuditLogger) DebugCalls(stub func(string)) {
	fake.debugMutex.Lock()
	defer fake.debugMutex.Unlock()
	fake.DebugStub = stub
}

func (fake *FakeAuditLogger) DebugArgsForCall(i int) string {
	fake.debugMutex.RLock()
	defer fake.debugMutex.RUnlock()
	argsForCall := fake.debugArgsForCall[i]
	return argsForCall.arg1
}

func (fake *FakeAuditLogger) Err(arg1 string) {
	fake.errMutex.Lock()
	fake.errArgsForCall = append(fake.errArgsForCall, struct {
		arg1 string
	}{arg1})
	stub := fake.ErrStub
	fake.recordInvocation("Err", []interface{}{arg1})
	fake.errMutex.Unlock()
	if stub != nil {
		fake.ErrStub(arg1)
	}
}

func (fake *FakeAuditLogger) ErrCallCount() int {
	fake.errMutex.RLock()
	defer fake.errMutex.RUnlock()
	return len(fake.errArgsForCall)
}

func (fake *FakeAuditLogger) ErrCalls(stub func(string)) {
	fake.errMutex.Lock()
	defer fake.errMutex.Unlock()
	fake.ErrStub = stub
}

func (fake *FakeAuditLogger) ErrArgsForCall(i int) string {
	fake.errMutex.RLock()
	defer fake.errMutex.RUnlock()
	argsForCall := fake.errArgsForCall[i]
	return argsForCall.arg1
}

func (fake *FakeAuditLogger) StartLogging() {
	fake.startLoggingMutex.Lock()
	fake.startLoggingArgsForCall = append(fake.startLoggingArgsForCall, struct {
	}{})
	stub := fake.StartLoggingStub
	fake.recordInvocation("StartLogging", []interface{}{})
	fake.startLoggingMutex.Unlock()
	if stub != nil {
		fake.StartLoggingStub()
	}
}

func (fake *FakeAuditLogger) StartLoggingCallCount() int {
	fake.startLoggingMutex.RLock()
	defer fake.startLoggingMutex.RUnlock()
	return len(fake.startLoggingArgsForCall)
}

func (fake *FakeAuditLogger) StartLoggingCalls(stub func()) {
	fake.startLoggingMutex.Lock()
	defer fake.startLoggingMutex.Unlock()
	fake.StartLoggingStub = stub
}

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

func (fake *FakeAuditLogger) 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)
}

var _ platform.AuditLogger = new(FakeAuditLogger)
