mocks

package
v0.0.37 Latest Latest
Warning

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

Go to latest
Published: Jun 11, 2026 License: MIT Imports: 3 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ShellRunnerI

type ShellRunnerI struct {
	mock.Mock
}

ShellRunnerI is an autogenerated mock type for the ShellRunnerI type

func NewShellRunnerI added in v0.0.17

func NewShellRunnerI(t interface {
	mock.TestingT
	Cleanup(func())
}) *ShellRunnerI

NewShellRunnerI creates a new instance of ShellRunnerI. 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 (*ShellRunnerI) EXPECT added in v0.0.32

func (_m *ShellRunnerI) EXPECT() *ShellRunnerI_Expecter

func (*ShellRunnerI) ExecGitCommand

func (_mock *ShellRunnerI) ExecGitCommand(args []string, stdoutb *bytes.Buffer, erroutb *bytes.Buffer, dir string) (*exec.Cmd, error)

ExecGitCommand provides a mock function for the type ShellRunnerI

type ShellRunnerI_ExecGitCommand_Call added in v0.0.32

type ShellRunnerI_ExecGitCommand_Call struct {
	*mock.Call
}

ShellRunnerI_ExecGitCommand_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ExecGitCommand'

func (*ShellRunnerI_ExecGitCommand_Call) Return added in v0.0.32

func (*ShellRunnerI_ExecGitCommand_Call) Run added in v0.0.32

func (_c *ShellRunnerI_ExecGitCommand_Call) Run(run func(args []string, stdoutb *bytes.Buffer, erroutb *bytes.Buffer, dir string)) *ShellRunnerI_ExecGitCommand_Call

func (*ShellRunnerI_ExecGitCommand_Call) RunAndReturn added in v0.0.32

func (_c *ShellRunnerI_ExecGitCommand_Call) RunAndReturn(run func(args []string, stdoutb *bytes.Buffer, erroutb *bytes.Buffer, dir string) (*exec.Cmd, error)) *ShellRunnerI_ExecGitCommand_Call

type ShellRunnerI_Expecter added in v0.0.32

type ShellRunnerI_Expecter struct {
	// contains filtered or unexported fields
}

func (*ShellRunnerI_Expecter) ExecGitCommand added in v0.0.32

func (_e *ShellRunnerI_Expecter) ExecGitCommand(args interface{}, stdoutb interface{}, erroutb interface{}, dir interface{}) *ShellRunnerI_ExecGitCommand_Call

ExecGitCommand is a helper method to define mock.On call

  • args []string
  • stdoutb *bytes.Buffer
  • erroutb *bytes.Buffer
  • dir string

Jump to

Keyboard shortcuts

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