fakes

package
v0.7.10 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Executable

type Executable struct {
	ExecuteCall struct {
		CallCount int
		Receives  struct {
			Execution pexec.Execution
		}
		Returns struct {
			Error error
		}
		Stub func(pexec.Execution) error
		// contains filtered or unexported fields
	}
}

func (*Executable) Execute

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

type Runner

type Runner struct {
	ExecuteCall struct {
		CallCount int
		Receives  struct {
			CondaEnvPath   string
			CondaCachePath string
			WorkingDir     string
		}
		Returns struct {
			Error error
		}
		Stub func(string, string, string) error
		// contains filtered or unexported fields
	}
	ShouldRunCall struct {
		CallCount int
		Receives  struct {
			WorkingDir string
			Metadata   map[string]interface {
			}
		}
		Returns struct {
			Bool   bool
			String string
			Error  error
		}
		Stub func(string, map[string]interface {
		}) (bool, string, error)
		// contains filtered or unexported fields
	}
}

func (*Runner) Execute

func (f *Runner) Execute(param1 string, param2 string, param3 string) error

func (*Runner) ShouldRun

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

type SBOMGenerator added in v0.4.0

type SBOMGenerator struct {
	GenerateCall struct {
		CallCount int
		Receives  struct {
			Dir string
		}
		Returns struct {
			SBOM  sbom.SBOM
			Error error
		}
		Stub func(string) (sbom.SBOM, error)
		// contains filtered or unexported fields
	}
}

func (*SBOMGenerator) Generate added in v0.4.0

func (f *SBOMGenerator) Generate(param1 string) (sbom.SBOM, error)

type Summer

type Summer struct {
	SumCall struct {
		CallCount int
		Receives  struct {
			Arg []string
		}
		Returns struct {
			String string
			Error  error
		}
		Stub func(...string) (string, error)
		// contains filtered or unexported fields
	}
}

func (*Summer) Sum

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

Jump to

Keyboard shortcuts

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