fakes

package
v0.75.0-no-limit Latest Latest
Warning

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

Go to latest
Published: Mar 22, 2016 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Overview

This file was generated by counterfeiter

This file was generated by counterfeiter

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FakeRadarDB

type FakeRadarDB struct {
	GetPipelineNameStub func() string

	ScopedNameStub func(string) string

	IsPausedStub func() (bool, error)

	GetConfigStub func() (atc.Config, db.ConfigVersion, bool, error)

	GetLatestVersionedResourceStub func(resource db.SavedResource) (db.SavedVersionedResource, bool, error)

	GetResourceStub func(resourceName string) (db.SavedResource, error)

	PauseResourceStub func(resourceName string) error

	UnpauseResourceStub func(resourceName string) error

	SaveResourceVersionsStub func(atc.ResourceConfig, []atc.Version) error

	SetResourceCheckErrorStub func(resource db.SavedResource, err error) error

	LeaseResourceCheckingStub func(resource string, interval time.Duration, immediate bool) (db.Lease, bool, error)
	// contains filtered or unexported fields
}

func (*FakeRadarDB) GetConfig

func (fake *FakeRadarDB) GetConfig() (atc.Config, db.ConfigVersion, bool, error)

func (*FakeRadarDB) GetConfigCallCount

func (fake *FakeRadarDB) GetConfigCallCount() int

func (*FakeRadarDB) GetConfigReturns

func (fake *FakeRadarDB) GetConfigReturns(result1 atc.Config, result2 db.ConfigVersion, result3 bool, result4 error)

func (*FakeRadarDB) GetLatestVersionedResource

func (fake *FakeRadarDB) GetLatestVersionedResource(resource db.SavedResource) (db.SavedVersionedResource, bool, error)

func (*FakeRadarDB) GetLatestVersionedResourceArgsForCall

func (fake *FakeRadarDB) GetLatestVersionedResourceArgsForCall(i int) db.SavedResource

func (*FakeRadarDB) GetLatestVersionedResourceCallCount

func (fake *FakeRadarDB) GetLatestVersionedResourceCallCount() int

func (*FakeRadarDB) GetLatestVersionedResourceReturns

func (fake *FakeRadarDB) GetLatestVersionedResourceReturns(result1 db.SavedVersionedResource, result2 bool, result3 error)

func (*FakeRadarDB) GetPipelineName

func (fake *FakeRadarDB) GetPipelineName() string

func (*FakeRadarDB) GetPipelineNameCallCount

func (fake *FakeRadarDB) GetPipelineNameCallCount() int

func (*FakeRadarDB) GetPipelineNameReturns

func (fake *FakeRadarDB) GetPipelineNameReturns(result1 string)

func (*FakeRadarDB) GetResource

func (fake *FakeRadarDB) GetResource(resourceName string) (db.SavedResource, error)

func (*FakeRadarDB) GetResourceArgsForCall

func (fake *FakeRadarDB) GetResourceArgsForCall(i int) string

func (*FakeRadarDB) GetResourceCallCount

func (fake *FakeRadarDB) GetResourceCallCount() int

func (*FakeRadarDB) GetResourceReturns

func (fake *FakeRadarDB) GetResourceReturns(result1 db.SavedResource, result2 error)

func (*FakeRadarDB) IsPaused

func (fake *FakeRadarDB) IsPaused() (bool, error)

func (*FakeRadarDB) IsPausedCallCount

func (fake *FakeRadarDB) IsPausedCallCount() int

func (*FakeRadarDB) IsPausedReturns

func (fake *FakeRadarDB) IsPausedReturns(result1 bool, result2 error)

func (*FakeRadarDB) LeaseResourceChecking

func (fake *FakeRadarDB) LeaseResourceChecking(resource string, interval time.Duration, immediate bool) (db.Lease, bool, error)

func (*FakeRadarDB) LeaseResourceCheckingArgsForCall

func (fake *FakeRadarDB) LeaseResourceCheckingArgsForCall(i int) (string, time.Duration, bool)

func (*FakeRadarDB) LeaseResourceCheckingCallCount

func (fake *FakeRadarDB) LeaseResourceCheckingCallCount() int

func (*FakeRadarDB) LeaseResourceCheckingReturns

func (fake *FakeRadarDB) LeaseResourceCheckingReturns(result1 db.Lease, result2 bool, result3 error)

func (*FakeRadarDB) PauseResource

func (fake *FakeRadarDB) PauseResource(resourceName string) error

func (*FakeRadarDB) PauseResourceArgsForCall

func (fake *FakeRadarDB) PauseResourceArgsForCall(i int) string

func (*FakeRadarDB) PauseResourceCallCount

func (fake *FakeRadarDB) PauseResourceCallCount() int

func (*FakeRadarDB) PauseResourceReturns

func (fake *FakeRadarDB) PauseResourceReturns(result1 error)

func (*FakeRadarDB) SaveResourceVersions

func (fake *FakeRadarDB) SaveResourceVersions(arg1 atc.ResourceConfig, arg2 []atc.Version) error

func (*FakeRadarDB) SaveResourceVersionsArgsForCall

func (fake *FakeRadarDB) SaveResourceVersionsArgsForCall(i int) (atc.ResourceConfig, []atc.Version)

func (*FakeRadarDB) SaveResourceVersionsCallCount

func (fake *FakeRadarDB) SaveResourceVersionsCallCount() int

func (*FakeRadarDB) SaveResourceVersionsReturns

func (fake *FakeRadarDB) SaveResourceVersionsReturns(result1 error)

func (*FakeRadarDB) ScopedName

func (fake *FakeRadarDB) ScopedName(arg1 string) string

func (*FakeRadarDB) ScopedNameArgsForCall

func (fake *FakeRadarDB) ScopedNameArgsForCall(i int) string

func (*FakeRadarDB) ScopedNameCallCount

func (fake *FakeRadarDB) ScopedNameCallCount() int

func (*FakeRadarDB) ScopedNameReturns

func (fake *FakeRadarDB) ScopedNameReturns(result1 string)

func (*FakeRadarDB) SetResourceCheckError

func (fake *FakeRadarDB) SetResourceCheckError(resource db.SavedResource, err error) error

func (*FakeRadarDB) SetResourceCheckErrorArgsForCall

func (fake *FakeRadarDB) SetResourceCheckErrorArgsForCall(i int) (db.SavedResource, error)

func (*FakeRadarDB) SetResourceCheckErrorCallCount

func (fake *FakeRadarDB) SetResourceCheckErrorCallCount() int

func (*FakeRadarDB) SetResourceCheckErrorReturns

func (fake *FakeRadarDB) SetResourceCheckErrorReturns(result1 error)

func (*FakeRadarDB) UnpauseResource

func (fake *FakeRadarDB) UnpauseResource(resourceName string) error

func (*FakeRadarDB) UnpauseResourceArgsForCall

func (fake *FakeRadarDB) UnpauseResourceArgsForCall(i int) string

func (*FakeRadarDB) UnpauseResourceCallCount

func (fake *FakeRadarDB) UnpauseResourceCallCount() int

func (*FakeRadarDB) UnpauseResourceReturns

func (fake *FakeRadarDB) UnpauseResourceReturns(result1 error)

type FakeScannerFactory

type FakeScannerFactory struct {
	ScannerStub func(lager.Logger, string) ifrit.Runner
	// contains filtered or unexported fields
}

func (*FakeScannerFactory) Scanner

func (fake *FakeScannerFactory) Scanner(arg1 lager.Logger, arg2 string) ifrit.Runner

func (*FakeScannerFactory) ScannerArgsForCall

func (fake *FakeScannerFactory) ScannerArgsForCall(i int) (lager.Logger, string)

func (*FakeScannerFactory) ScannerCallCount

func (fake *FakeScannerFactory) ScannerCallCount() int

func (*FakeScannerFactory) ScannerReturns

func (fake *FakeScannerFactory) ScannerReturns(result1 ifrit.Runner)

Jump to

Keyboard shortcuts

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