dbfakes

package
v49.0.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Feb 21, 2017 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Overview

This file was generated by counterfeiter

This file was generated by counterfeiter

This file was generated by counterfeiter

This file was generated by counterfeiter

This file was generated by counterfeiter

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 FakeActiveScan

type FakeActiveScan struct {
	RecordCredentialStub func(db.Credential)

	FinishStub func() error
	// contains filtered or unexported fields
}

func (*FakeActiveScan) Finish

func (fake *FakeActiveScan) Finish() error

func (*FakeActiveScan) FinishCallCount

func (fake *FakeActiveScan) FinishCallCount() int

func (*FakeActiveScan) FinishReturns

func (fake *FakeActiveScan) FinishReturns(result1 error)

func (*FakeActiveScan) Invocations

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

func (*FakeActiveScan) RecordCredential

func (fake *FakeActiveScan) RecordCredential(arg1 db.Credential)

func (*FakeActiveScan) RecordCredentialArgsForCall

func (fake *FakeActiveScan) RecordCredentialArgsForCall(i int) db.Credential

func (*FakeActiveScan) RecordCredentialCallCount

func (fake *FakeActiveScan) RecordCredentialCallCount() int

type FakeCommitRepository

type FakeCommitRepository struct {
	RegisterCommitStub func(logger lager.Logger, commit *db.Commit) error

	IsCommitRegisteredStub func(logger lager.Logger, sha string) (bool, error)

	IsRepoRegisteredStub func(logger lager.Logger, owner, repo string) (bool, error)
	// contains filtered or unexported fields
}

func (*FakeCommitRepository) Invocations

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

func (*FakeCommitRepository) IsCommitRegistered

func (fake *FakeCommitRepository) IsCommitRegistered(logger lager.Logger, sha string) (bool, error)

func (*FakeCommitRepository) IsCommitRegisteredArgsForCall

func (fake *FakeCommitRepository) IsCommitRegisteredArgsForCall(i int) (lager.Logger, string)

func (*FakeCommitRepository) IsCommitRegisteredCallCount

func (fake *FakeCommitRepository) IsCommitRegisteredCallCount() int

func (*FakeCommitRepository) IsCommitRegisteredReturns

func (fake *FakeCommitRepository) IsCommitRegisteredReturns(result1 bool, result2 error)

func (*FakeCommitRepository) IsRepoRegistered

func (fake *FakeCommitRepository) IsRepoRegistered(logger lager.Logger, owner string, repo string) (bool, error)

func (*FakeCommitRepository) IsRepoRegisteredArgsForCall

func (fake *FakeCommitRepository) IsRepoRegisteredArgsForCall(i int) (lager.Logger, string, string)

func (*FakeCommitRepository) IsRepoRegisteredCallCount

func (fake *FakeCommitRepository) IsRepoRegisteredCallCount() int

func (*FakeCommitRepository) IsRepoRegisteredReturns

func (fake *FakeCommitRepository) IsRepoRegisteredReturns(result1 bool, result2 error)

func (*FakeCommitRepository) RegisterCommit

func (fake *FakeCommitRepository) RegisterCommit(logger lager.Logger, commit *db.Commit) error

func (*FakeCommitRepository) RegisterCommitArgsForCall

func (fake *FakeCommitRepository) RegisterCommitArgsForCall(i int) (lager.Logger, *db.Commit)

func (*FakeCommitRepository) RegisterCommitCallCount

func (fake *FakeCommitRepository) RegisterCommitCallCount() int

func (*FakeCommitRepository) RegisterCommitReturns

func (fake *FakeCommitRepository) RegisterCommitReturns(result1 error)

type FakeCredentialRepository

type FakeCredentialRepository struct {
	ForScanWithIDStub func(int) ([]db.Credential, error)

	UniqueSHAsForRepoAndRulesVersionStub func(db.Repository, int) ([]string, error)
	// contains filtered or unexported fields
}

func (*FakeCredentialRepository) ForScanWithID

func (fake *FakeCredentialRepository) ForScanWithID(arg1 int) ([]db.Credential, error)

func (*FakeCredentialRepository) ForScanWithIDArgsForCall

func (fake *FakeCredentialRepository) ForScanWithIDArgsForCall(i int) int

func (*FakeCredentialRepository) ForScanWithIDCallCount

func (fake *FakeCredentialRepository) ForScanWithIDCallCount() int

func (*FakeCredentialRepository) ForScanWithIDReturns

func (fake *FakeCredentialRepository) ForScanWithIDReturns(result1 []db.Credential, result2 error)

func (*FakeCredentialRepository) Invocations

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

func (*FakeCredentialRepository) UniqueSHAsForRepoAndRulesVersion

func (fake *FakeCredentialRepository) UniqueSHAsForRepoAndRulesVersion(arg1 db.Repository, arg2 int) ([]string, error)

func (*FakeCredentialRepository) UniqueSHAsForRepoAndRulesVersionArgsForCall

func (fake *FakeCredentialRepository) UniqueSHAsForRepoAndRulesVersionArgsForCall(i int) (db.Repository, int)

func (*FakeCredentialRepository) UniqueSHAsForRepoAndRulesVersionCallCount

func (fake *FakeCredentialRepository) UniqueSHAsForRepoAndRulesVersionCallCount() int

func (*FakeCredentialRepository) UniqueSHAsForRepoAndRulesVersionReturns

func (fake *FakeCredentialRepository) UniqueSHAsForRepoAndRulesVersionReturns(result1 []string, result2 error)

type FakeFetchRepository

type FakeFetchRepository struct {
	RegisterFetchStub func(lager.Logger, *db.Fetch) error
	// contains filtered or unexported fields
}

func (*FakeFetchRepository) Invocations

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

func (*FakeFetchRepository) RegisterFetch

func (fake *FakeFetchRepository) RegisterFetch(arg1 lager.Logger, arg2 *db.Fetch) error

func (*FakeFetchRepository) RegisterFetchArgsForCall

func (fake *FakeFetchRepository) RegisterFetchArgsForCall(i int) (lager.Logger, *db.Fetch)

func (*FakeFetchRepository) RegisterFetchCallCount

func (fake *FakeFetchRepository) RegisterFetchCallCount() int

func (*FakeFetchRepository) RegisterFetchReturns

func (fake *FakeFetchRepository) RegisterFetchReturns(result1 error)

type FakeRepositoryRepository

type FakeRepositoryRepository struct {
	CreateStub func(*db.Repository) error

	FindStub func(owner string, name string) (db.Repository, bool, error)

	MustFindStub func(owner string, name string) (db.Repository, error)

	AllStub func() ([]db.Repository, error)

	ActiveStub func() ([]db.Repository, error)

	AllForOrganizationStub func(string) ([]db.Repository, error)

	NotScannedWithVersionStub func(int) ([]db.Repository, error)

	MarkAsClonedStub func(string, string, string) error

	RegisterFailedFetchStub func(lager.Logger, *db.Repository) error

	UpdateCredentialCountStub func(*db.Repository, map[string]uint) error
	// contains filtered or unexported fields
}

func (*FakeRepositoryRepository) Active

func (fake *FakeRepositoryRepository) Active() ([]db.Repository, error)

func (*FakeRepositoryRepository) ActiveCallCount

func (fake *FakeRepositoryRepository) ActiveCallCount() int

func (*FakeRepositoryRepository) ActiveReturns

func (fake *FakeRepositoryRepository) ActiveReturns(result1 []db.Repository, result2 error)

func (*FakeRepositoryRepository) All

func (fake *FakeRepositoryRepository) All() ([]db.Repository, error)

func (*FakeRepositoryRepository) AllCallCount

func (fake *FakeRepositoryRepository) AllCallCount() int

func (*FakeRepositoryRepository) AllForOrganization

func (fake *FakeRepositoryRepository) AllForOrganization(arg1 string) ([]db.Repository, error)

func (*FakeRepositoryRepository) AllForOrganizationArgsForCall

func (fake *FakeRepositoryRepository) AllForOrganizationArgsForCall(i int) string

func (*FakeRepositoryRepository) AllForOrganizationCallCount

func (fake *FakeRepositoryRepository) AllForOrganizationCallCount() int

func (*FakeRepositoryRepository) AllForOrganizationReturns

func (fake *FakeRepositoryRepository) AllForOrganizationReturns(result1 []db.Repository, result2 error)

func (*FakeRepositoryRepository) AllReturns

func (fake *FakeRepositoryRepository) AllReturns(result1 []db.Repository, result2 error)

func (*FakeRepositoryRepository) Create

func (fake *FakeRepositoryRepository) Create(arg1 *db.Repository) error

func (*FakeRepositoryRepository) CreateArgsForCall

func (fake *FakeRepositoryRepository) CreateArgsForCall(i int) *db.Repository

func (*FakeRepositoryRepository) CreateCallCount

func (fake *FakeRepositoryRepository) CreateCallCount() int

func (*FakeRepositoryRepository) CreateReturns

func (fake *FakeRepositoryRepository) CreateReturns(result1 error)

func (*FakeRepositoryRepository) Find

func (fake *FakeRepositoryRepository) Find(owner string, name string) (db.Repository, bool, error)

func (*FakeRepositoryRepository) FindArgsForCall

func (fake *FakeRepositoryRepository) FindArgsForCall(i int) (string, string)

func (*FakeRepositoryRepository) FindCallCount

func (fake *FakeRepositoryRepository) FindCallCount() int

func (*FakeRepositoryRepository) FindReturns

func (fake *FakeRepositoryRepository) FindReturns(result1 db.Repository, result2 bool, result3 error)

func (*FakeRepositoryRepository) Invocations

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

func (*FakeRepositoryRepository) MarkAsCloned

func (fake *FakeRepositoryRepository) MarkAsCloned(arg1 string, arg2 string, arg3 string) error

func (*FakeRepositoryRepository) MarkAsClonedArgsForCall

func (fake *FakeRepositoryRepository) MarkAsClonedArgsForCall(i int) (string, string, string)

func (*FakeRepositoryRepository) MarkAsClonedCallCount

func (fake *FakeRepositoryRepository) MarkAsClonedCallCount() int

func (*FakeRepositoryRepository) MarkAsClonedReturns

func (fake *FakeRepositoryRepository) MarkAsClonedReturns(result1 error)

func (*FakeRepositoryRepository) MustFind

func (fake *FakeRepositoryRepository) MustFind(owner string, name string) (db.Repository, error)

func (*FakeRepositoryRepository) MustFindArgsForCall

func (fake *FakeRepositoryRepository) MustFindArgsForCall(i int) (string, string)

func (*FakeRepositoryRepository) MustFindCallCount

func (fake *FakeRepositoryRepository) MustFindCallCount() int

func (*FakeRepositoryRepository) MustFindReturns

func (fake *FakeRepositoryRepository) MustFindReturns(result1 db.Repository, result2 error)

func (*FakeRepositoryRepository) NotScannedWithVersion

func (fake *FakeRepositoryRepository) NotScannedWithVersion(arg1 int) ([]db.Repository, error)

func (*FakeRepositoryRepository) NotScannedWithVersionArgsForCall

func (fake *FakeRepositoryRepository) NotScannedWithVersionArgsForCall(i int) int

func (*FakeRepositoryRepository) NotScannedWithVersionCallCount

func (fake *FakeRepositoryRepository) NotScannedWithVersionCallCount() int

func (*FakeRepositoryRepository) NotScannedWithVersionReturns

func (fake *FakeRepositoryRepository) NotScannedWithVersionReturns(result1 []db.Repository, result2 error)

func (*FakeRepositoryRepository) RegisterFailedFetch

func (fake *FakeRepositoryRepository) RegisterFailedFetch(arg1 lager.Logger, arg2 *db.Repository) error

func (*FakeRepositoryRepository) RegisterFailedFetchArgsForCall

func (fake *FakeRepositoryRepository) RegisterFailedFetchArgsForCall(i int) (lager.Logger, *db.Repository)

func (*FakeRepositoryRepository) RegisterFailedFetchCallCount

func (fake *FakeRepositoryRepository) RegisterFailedFetchCallCount() int

func (*FakeRepositoryRepository) RegisterFailedFetchReturns

func (fake *FakeRepositoryRepository) RegisterFailedFetchReturns(result1 error)

func (*FakeRepositoryRepository) UpdateCredentialCount

func (fake *FakeRepositoryRepository) UpdateCredentialCount(arg1 *db.Repository, arg2 map[string]uint) error

func (*FakeRepositoryRepository) UpdateCredentialCountArgsForCall

func (fake *FakeRepositoryRepository) UpdateCredentialCountArgsForCall(i int) (*db.Repository, map[string]uint)

func (*FakeRepositoryRepository) UpdateCredentialCountCallCount

func (fake *FakeRepositoryRepository) UpdateCredentialCountCallCount() int

func (*FakeRepositoryRepository) UpdateCredentialCountReturns

func (fake *FakeRepositoryRepository) UpdateCredentialCountReturns(result1 error)

type FakeScanRepository

type FakeScanRepository struct {
	StartStub func(lager.Logger, string, string, string, string, *db.Repository, *db.Fetch) db.ActiveScan

	ScansNotYetRunWithVersionStub func(lager.Logger, int) ([]db.PriorScan, error)
	// contains filtered or unexported fields
}

func (*FakeScanRepository) Invocations

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

func (*FakeScanRepository) ScansNotYetRunWithVersion

func (fake *FakeScanRepository) ScansNotYetRunWithVersion(arg1 lager.Logger, arg2 int) ([]db.PriorScan, error)

func (*FakeScanRepository) ScansNotYetRunWithVersionArgsForCall

func (fake *FakeScanRepository) ScansNotYetRunWithVersionArgsForCall(i int) (lager.Logger, int)

func (*FakeScanRepository) ScansNotYetRunWithVersionCallCount

func (fake *FakeScanRepository) ScansNotYetRunWithVersionCallCount() int

func (*FakeScanRepository) ScansNotYetRunWithVersionReturns

func (fake *FakeScanRepository) ScansNotYetRunWithVersionReturns(result1 []db.PriorScan, result2 error)

func (*FakeScanRepository) Start

func (fake *FakeScanRepository) Start(arg1 lager.Logger, arg2 string, arg3 string, arg4 string, arg5 string, arg6 *db.Repository, arg7 *db.Fetch) db.ActiveScan

func (*FakeScanRepository) StartArgsForCall

func (fake *FakeScanRepository) StartArgsForCall(i int) (lager.Logger, string, string, string, string, *db.Repository, *db.Fetch)

func (*FakeScanRepository) StartCallCount

func (fake *FakeScanRepository) StartCallCount() int

func (*FakeScanRepository) StartReturns

func (fake *FakeScanRepository) StartReturns(result1 db.ActiveScan)

type FakeStatsRepository

type FakeStatsRepository struct {
	RepositoryCountStub func() (int, error)

	DisabledRepositoryCountStub func() (int, error)

	UnclonedRepositoryCountStub func() (int, error)

	CredentialCountStub func() (int, error)

	FetchCountStub func() (int, error)
	// contains filtered or unexported fields
}

func (*FakeStatsRepository) CredentialCount

func (fake *FakeStatsRepository) CredentialCount() (int, error)

func (*FakeStatsRepository) CredentialCountCallCount

func (fake *FakeStatsRepository) CredentialCountCallCount() int

func (*FakeStatsRepository) CredentialCountReturns

func (fake *FakeStatsRepository) CredentialCountReturns(result1 int, result2 error)

func (*FakeStatsRepository) DisabledRepositoryCount

func (fake *FakeStatsRepository) DisabledRepositoryCount() (int, error)

func (*FakeStatsRepository) DisabledRepositoryCountCallCount

func (fake *FakeStatsRepository) DisabledRepositoryCountCallCount() int

func (*FakeStatsRepository) DisabledRepositoryCountReturns

func (fake *FakeStatsRepository) DisabledRepositoryCountReturns(result1 int, result2 error)

func (*FakeStatsRepository) FetchCount

func (fake *FakeStatsRepository) FetchCount() (int, error)

func (*FakeStatsRepository) FetchCountCallCount

func (fake *FakeStatsRepository) FetchCountCallCount() int

func (*FakeStatsRepository) FetchCountReturns

func (fake *FakeStatsRepository) FetchCountReturns(result1 int, result2 error)

func (*FakeStatsRepository) Invocations

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

func (*FakeStatsRepository) RepositoryCount

func (fake *FakeStatsRepository) RepositoryCount() (int, error)

func (*FakeStatsRepository) RepositoryCountCallCount

func (fake *FakeStatsRepository) RepositoryCountCallCount() int

func (*FakeStatsRepository) RepositoryCountReturns

func (fake *FakeStatsRepository) RepositoryCountReturns(result1 int, result2 error)

func (*FakeStatsRepository) UnclonedRepositoryCount

func (fake *FakeStatsRepository) UnclonedRepositoryCount() (int, error)

func (*FakeStatsRepository) UnclonedRepositoryCountCallCount

func (fake *FakeStatsRepository) UnclonedRepositoryCountCallCount() int

func (*FakeStatsRepository) UnclonedRepositoryCountReturns

func (fake *FakeStatsRepository) UnclonedRepositoryCountReturns(result1 int, result2 error)

Jump to

Keyboard shortcuts

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