fakes

package
v0.2.7 Latest Latest
Warning

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

Go to latest
Published: Mar 15, 2021 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BuildManager

type BuildManager struct {
	ResolveCall struct {
		sync.Mutex
		CallCount int
		Receives  struct {
			WorkingDir string
			CacheDir   string
		}
		Returns struct {
			BuildProcess npminstall.BuildProcess
			Error        error
		}
		Stub func(string, string) (npminstall.BuildProcess, error)
	}
}

func (*BuildManager) Resolve

func (f *BuildManager) Resolve(param1 string, param2 string) (npminstall.BuildProcess, error)

type BuildProcess

type BuildProcess struct {
	RunCall struct {
		sync.Mutex
		CallCount int
		Receives  struct {
			ModulesDir string
			CacheDir   string
			WorkingDir string
		}
		Returns struct {
			Error error
		}
		Stub func(string, string, string) error
	}
	ShouldRunCall struct {
		sync.Mutex
		CallCount int
		Receives  struct {
			WorkingDir string
			Metadata   map[string]interface {
			}
		}
		Returns struct {
			Run bool
			Sha string
			Err error
		}
		Stub func(string, map[string]interface {
		}) (bool, string, error)
	}
}

func (*BuildProcess) Run

func (f *BuildProcess) Run(param1 string, param2 string, param3 string) error

func (*BuildProcess) ShouldRun

func (f *BuildProcess) ShouldRun(param1 string, param2 map[string]interface {
}) (bool, string, error)

type EnvironmentConfig added in v0.2.6

type EnvironmentConfig struct {
	ConfigureCall struct {
		sync.Mutex
		CallCount int
		Receives  struct {
			Layer packit.Layer
		}
		Returns struct {
			Error error
		}
		Stub func(packit.Layer) error
	}
	GetValueCall struct {
		sync.Mutex
		CallCount int
		Receives  struct {
			Key string
		}
		Returns struct {
			String string
		}
		Stub func(string) string
	}
}

func (*EnvironmentConfig) Configure added in v0.2.6

func (f *EnvironmentConfig) Configure(param1 packit.Layer) error

func (*EnvironmentConfig) GetValue added in v0.2.6

func (f *EnvironmentConfig) GetValue(param1 string) string

type Executable

type Executable struct {
	ExecuteCall struct {
		sync.Mutex
		CallCount int
		Receives  struct {
			Execution pexec.Execution
		}
		Returns struct {
			Err error
		}
		Stub func(pexec.Execution) error
	}
}

func (*Executable) Execute

func (f *Executable) Execute(param1 pexec.Execution) error

type PathParser added in v0.2.7

type PathParser struct {
	GetCall struct {
		sync.Mutex
		CallCount int
		Receives  struct {
			Path string
		}
		Returns struct {
			ProjectPath string
			Err         error
		}
		Stub func(string) (string, error)
	}
}

func (*PathParser) Get added in v0.2.7

func (f *PathParser) Get(param1 string) (string, error)

type Summer

type Summer struct {
	SumCall struct {
		sync.Mutex
		CallCount int
		Receives  struct {
			Paths []string
		}
		Returns struct {
			String string
			Error  error
		}
		Stub func(...string) (string, error)
	}
}

func (*Summer) Sum

func (f *Summer) Sum(param1 ...string) (string, error)

type VersionParser

type VersionParser struct {
	ParseVersionCall struct {
		sync.Mutex
		CallCount int
		Receives  struct {
			Path string
		}
		Returns struct {
			Version string
			Err     error
		}
		Stub func(string) (string, error)
	}
}

func (*VersionParser) ParseVersion

func (f *VersionParser) ParseVersion(param1 string) (string, error)

Jump to

Keyboard shortcuts

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