mocks

package
v0.0.0-...-0144dd1 Latest Latest
Warning

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

Go to latest
Published: Jan 16, 2025 License: GPL-3.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 Cli

type Cli struct {
	mock.Mock
}

Cli is an autogenerated mock type for the Cli type

func NewCli

func NewCli(t interface {
	mock.TestingT
	Cleanup(func())
}) *Cli

NewCli creates a new instance of Cli. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*Cli) Command

func (_m *Cli) Command(name string, arg ...string) *exec.Cmd

Command provides a mock function with given fields: name, arg

func (*Cli) WPCli

func (_m *Cli) WPCli(command []string, interactive bool, consoleOutput *console.Console) (int64, string, error)

WPCli provides a mock function with given fields: command, interactive, consoleOutput

func (*Cli) WordPress

func (_m *Cli) WordPress(command string, restart bool, root bool) (docker.ExecResult, error)

WordPress provides a mock function with given fields: command, restart, root

Jump to

Keyboard shortcuts

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