mocks

package
v0.0.0-...-0117b6e Latest Latest
Warning

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

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

Documentation

Overview

Package mocks contains mocks for IManagerHelper type

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type IManagerHelper

type IManagerHelper struct {
	mock.Mock
}

IManagerHelper is an autogenerated mock type for the IManagerHelper type

func (*IManagerHelper) ExecCommandWithOutput

func (_m *IManagerHelper) ExecCommandWithOutput(_a0 log.T, cmd string, workingDir string, outputRoot string, stdOut string, stdErr string) (int, updateconstants.UpdateScriptExitCode, *bytes.Buffer, *bytes.Buffer, error)

ExecCommandWithOutput provides a mock function with given fields: _a0, cmd, workingDir, outputRoot, stdOut, stdErr

func (*IManagerHelper) GetExitCode

func (_m *IManagerHelper) GetExitCode(err error) int

GetExitCode provides a mock function with given fields: err

func (*IManagerHelper) IsCommandAvailable

func (_m *IManagerHelper) IsCommandAvailable(cmd string) bool

IsCommandAvailable provides a mock function with given fields: cmd

func (*IManagerHelper) IsExitCodeError

func (_m *IManagerHelper) IsExitCodeError(err error) bool

IsExitCodeError provides a mock function with given fields: err

func (*IManagerHelper) IsTimeoutError

func (_m *IManagerHelper) IsTimeoutError(err error) bool

IsTimeoutError provides a mock function with given fields: err

func (*IManagerHelper) RunCommand

func (_m *IManagerHelper) RunCommand(cmd string, args ...string) (string, error)

RunCommand provides a mock function with given fields: cmd, args

func (*IManagerHelper) RunCommandWithCustomTimeout

func (_m *IManagerHelper) RunCommandWithCustomTimeout(timeout time.Duration, cmd string, args ...string) (string, error)

RunCommandWithCustomTimeout provides a mock function with given fields: timeout, cmd, args

Jump to

Keyboard shortcuts

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