fakes

package
v0.0.0-...-398bc55 Latest Latest
Warning

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

Go to latest
Published: May 9, 2024 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Cmd

type Cmd struct {
	RunCall struct {
		CallCount int
		Receives  []RunCallReceive
		Returns   []RunCallReturn
		OnCall    []RunCallOnCall
	}
}

func (*Cmd) Run

func (c *Cmd) Run(executable string, args ...string) (string, string, error)

type Config

type Config struct {
	WriteCall struct {
		CallCount int
		Receives  []WriteCallReceive
		Returns   []WriteCallReturn
	}
}

func (*Config) Write

func (c *Config) Write(bundleDir string, grootOutput string, certData string) error

type Logger

type Logger struct {
	PrintlnCall struct {
		CallCount int
		Receives  []PrintlnCallReceive
	}
}

func (*Logger) Println

func (l *Logger) Println(v ...interface{})

type PrintlnCallReceive

type PrintlnCallReceive struct {
	Args []interface{}
}

type RunCallOnCall

type RunCallOnCall func(executable string, args ...string) (string, string, error)

type RunCallReceive

type RunCallReceive struct {
	Executable string
	Args       []string
}

type RunCallReturn

type RunCallReturn struct {
	Stdout string
	Stderr string
	Error  error
}

type WriteCallReceive

type WriteCallReceive struct {
	BundleDir   string
	GrootOutput string
	CertData    string
}

type WriteCallReturn

type WriteCallReturn struct {
	Error error
}

Jump to

Keyboard shortcuts

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