utilmocks

package
v0.0.0-...-c232087 Latest Latest
Warning

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

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

Documentation

Overview

Package utilmocks is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func EqCmd

func EqCmd(x *exec.Cmd) gomock.Matcher

EqCmd returns a matcher that matches on equality of exec.Cmd

Types

type MockCommandRunner

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

MockCommandRunner is a mock of CommandRunner interface

func NewMockCommandRunner

func NewMockCommandRunner(ctrl *gomock.Controller) *MockCommandRunner

NewMockCommandRunner creates a new mock instance

func (*MockCommandRunner) EXPECT

EXPECT returns an object that allows the caller to indicate expected use

func (*MockCommandRunner) Run

func (m *MockCommandRunner) Run(ctx context.Context, command *exec.Cmd) ([]byte, []byte, error)

Run mocks base method

type MockCommandRunnerMockRecorder

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

MockCommandRunnerMockRecorder is the mock recorder for MockCommandRunner

func (*MockCommandRunnerMockRecorder) Run

func (mr *MockCommandRunnerMockRecorder) Run(ctx, command interface{}) *gomock.Call

Run indicates an expected call of Run

Jump to

Keyboard shortcuts

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