lockfakes

package
v3.14.1+incompatible Latest Latest
Warning

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

Go to latest
Published: Jun 6, 2018 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Overview

Code generated by counterfeiter. DO NOT EDIT.

Code generated by counterfeiter. DO NOT EDIT.

Code generated by counterfeiter. DO NOT EDIT.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FakeLock

type FakeLock struct {
	ReleaseStub func() error
	// contains filtered or unexported fields
}

func (*FakeLock) Invocations

func (fake *FakeLock) Invocations() map[string][][]interface{}

func (*FakeLock) Release

func (fake *FakeLock) Release() error

func (*FakeLock) ReleaseCallCount

func (fake *FakeLock) ReleaseCallCount() int

func (*FakeLock) ReleaseReturns

func (fake *FakeLock) ReleaseReturns(result1 error)

func (*FakeLock) ReleaseReturnsOnCall

func (fake *FakeLock) ReleaseReturnsOnCall(i int, result1 error)

type FakeLockDB

type FakeLockDB struct {
	AcquireStub func(id lock.LockID) (bool, error)

	ReleaseStub func(id lock.LockID) (bool, error)
	// contains filtered or unexported fields
}

func (*FakeLockDB) Acquire

func (fake *FakeLockDB) Acquire(id lock.LockID) (bool, error)

func (*FakeLockDB) AcquireArgsForCall

func (fake *FakeLockDB) AcquireArgsForCall(i int) lock.LockID

func (*FakeLockDB) AcquireCallCount

func (fake *FakeLockDB) AcquireCallCount() int

func (*FakeLockDB) AcquireReturns

func (fake *FakeLockDB) AcquireReturns(result1 bool, result2 error)

func (*FakeLockDB) AcquireReturnsOnCall

func (fake *FakeLockDB) AcquireReturnsOnCall(i int, result1 bool, result2 error)

func (*FakeLockDB) Invocations

func (fake *FakeLockDB) Invocations() map[string][][]interface{}

func (*FakeLockDB) Release

func (fake *FakeLockDB) Release(id lock.LockID) (bool, error)

func (*FakeLockDB) ReleaseArgsForCall

func (fake *FakeLockDB) ReleaseArgsForCall(i int) lock.LockID

func (*FakeLockDB) ReleaseCallCount

func (fake *FakeLockDB) ReleaseCallCount() int

func (*FakeLockDB) ReleaseReturns

func (fake *FakeLockDB) ReleaseReturns(result1 bool, result2 error)

func (*FakeLockDB) ReleaseReturnsOnCall

func (fake *FakeLockDB) ReleaseReturnsOnCall(i int, result1 bool, result2 error)

type FakeLockFactory

type FakeLockFactory struct {
	AcquireStub func(logger lager.Logger, ids lock.LockID) (lock.Lock, bool, error)
	// contains filtered or unexported fields
}

func (*FakeLockFactory) Acquire

func (fake *FakeLockFactory) Acquire(logger lager.Logger, ids lock.LockID) (lock.Lock, bool, error)

func (*FakeLockFactory) AcquireArgsForCall

func (fake *FakeLockFactory) AcquireArgsForCall(i int) (lager.Logger, lock.LockID)

func (*FakeLockFactory) AcquireCallCount

func (fake *FakeLockFactory) AcquireCallCount() int

func (*FakeLockFactory) AcquireReturns

func (fake *FakeLockFactory) AcquireReturns(result1 lock.Lock, result2 bool, result3 error)

func (*FakeLockFactory) AcquireReturnsOnCall

func (fake *FakeLockFactory) AcquireReturnsOnCall(i int, result1 lock.Lock, result2 bool, result3 error)

func (*FakeLockFactory) Invocations

func (fake *FakeLockFactory) Invocations() map[string][][]interface{}

Jump to

Keyboard shortcuts

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