fakes

package
v2.70.0+incompatible Latest Latest
Warning

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

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

Documentation

Overview

This file was generated by counterfeiter

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FakeScript

type FakeScript struct {
	Params     drain.ScriptParams
	ExistsBool bool

	RunCallCount int
	DidRun       bool
	RunError     error
	RunStub      func() error
	WasCanceled  bool
	// contains filtered or unexported fields
}

func NewFakeScript

func NewFakeScript(tag string) *FakeScript

func (*FakeScript) Cancel

func (s *FakeScript) Cancel() error

func (*FakeScript) Exists

func (s *FakeScript) Exists() bool

func (*FakeScript) Path

func (s *FakeScript) Path() string

func (*FakeScript) Run

func (s *FakeScript) Run() error

func (*FakeScript) Tag

func (s *FakeScript) Tag() string

type FakeScriptParams

type FakeScriptParams struct {
	JobChangeStub func() (change string)

	HashChangeStub func() (change string)

	UpdatedPackagesStub func() (pkgs []string)

	JobStateStub func() (string, error)

	JobNextStateStub func() (string, error)

	ToStatusParamsStub func() drain.ScriptParams
	// contains filtered or unexported fields
}

func (*FakeScriptParams) HashChange

func (fake *FakeScriptParams) HashChange() (change string)

func (*FakeScriptParams) HashChangeCallCount

func (fake *FakeScriptParams) HashChangeCallCount() int

func (*FakeScriptParams) HashChangeReturns

func (fake *FakeScriptParams) HashChangeReturns(result1 string)

func (*FakeScriptParams) JobChange

func (fake *FakeScriptParams) JobChange() (change string)

func (*FakeScriptParams) JobChangeCallCount

func (fake *FakeScriptParams) JobChangeCallCount() int

func (*FakeScriptParams) JobChangeReturns

func (fake *FakeScriptParams) JobChangeReturns(result1 string)

func (*FakeScriptParams) JobNextState

func (fake *FakeScriptParams) JobNextState() (string, error)

func (*FakeScriptParams) JobNextStateCallCount

func (fake *FakeScriptParams) JobNextStateCallCount() int

func (*FakeScriptParams) JobNextStateReturns

func (fake *FakeScriptParams) JobNextStateReturns(result1 string, result2 error)

func (*FakeScriptParams) JobState

func (fake *FakeScriptParams) JobState() (string, error)

func (*FakeScriptParams) JobStateCallCount

func (fake *FakeScriptParams) JobStateCallCount() int

func (*FakeScriptParams) JobStateReturns

func (fake *FakeScriptParams) JobStateReturns(result1 string, result2 error)

func (*FakeScriptParams) ToStatusParams

func (fake *FakeScriptParams) ToStatusParams() drain.ScriptParams

func (*FakeScriptParams) ToStatusParamsCallCount

func (fake *FakeScriptParams) ToStatusParamsCallCount() int

func (*FakeScriptParams) ToStatusParamsReturns

func (fake *FakeScriptParams) ToStatusParamsReturns(result1 drain.ScriptParams)

func (*FakeScriptParams) UpdatedPackages

func (fake *FakeScriptParams) UpdatedPackages() (pkgs []string)

func (*FakeScriptParams) UpdatedPackagesCallCount

func (fake *FakeScriptParams) UpdatedPackagesCallCount() int

func (*FakeScriptParams) UpdatedPackagesReturns

func (fake *FakeScriptParams) UpdatedPackagesReturns(result1 []string)

Jump to

Keyboard shortcuts

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