mocks

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Nov 27, 2026 License: MIT Imports: 5 Imported by: 0 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

Overview

Package mocks provides mock implementations for testing.

Package mocks is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockExec

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

MockExec is a mock of Exec interface.

func NewMockExec

func NewMockExec(ctrl *gomock.Controller) *MockExec

NewMockExec creates a new mock instance.

func (*MockExec) EXPECT

func (m *MockExec) EXPECT() *MockExecMockRecorder

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

func (*MockExec) RunCmd

func (m *MockExec) RunCmd(ctx context.Context, name string, args []string) (string, error)

RunCmd mocks base method.

func (*MockExec) RunCmdFull

func (m *MockExec) RunCmdFull(ctx context.Context, name string, args []string, cwd string, timeout int) (*exec.CmdResult, error)

RunCmdFull mocks base method.

func (*MockExec) RunPrivilegedCmd

func (m *MockExec) RunPrivilegedCmd(ctx context.Context, name string, args []string) (string, error)

RunPrivilegedCmd mocks base method.

func (*MockExec) RunPrivilegedCmdFull

func (m *MockExec) RunPrivilegedCmdFull(ctx context.Context, name string, args []string, stdin string) (string, string, int, error)

RunPrivilegedCmdFull mocks base method.

func (*MockExec) RunPrivilegedCmdWithStdin

func (m *MockExec) RunPrivilegedCmdWithStdin(ctx context.Context, name string, args []string, stdin string) (string, error)

RunPrivilegedCmdWithStdin mocks base method.

func (*MockExec) RunReadCmd

func (m *MockExec) RunReadCmd(ctx context.Context, name string, args []string) ([]byte, error)

RunReadCmd mocks base method.

type MockExecMockRecorder

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

MockExecMockRecorder is the mock recorder for MockExec.

func (*MockExecMockRecorder) RunCmd

func (mr *MockExecMockRecorder) RunCmd(ctx, name, args any) *gomock.Call

RunCmd indicates an expected call of RunCmd.

func (*MockExecMockRecorder) RunCmdFull

func (mr *MockExecMockRecorder) RunCmdFull(ctx, name, args, cwd, timeout any) *gomock.Call

RunCmdFull indicates an expected call of RunCmdFull.

func (*MockExecMockRecorder) RunPrivilegedCmd

func (mr *MockExecMockRecorder) RunPrivilegedCmd(ctx, name, args any) *gomock.Call

RunPrivilegedCmd indicates an expected call of RunPrivilegedCmd.

func (*MockExecMockRecorder) RunPrivilegedCmdFull

func (mr *MockExecMockRecorder) RunPrivilegedCmdFull(ctx, name, args, stdin any) *gomock.Call

RunPrivilegedCmdFull indicates an expected call of RunPrivilegedCmdFull.

func (*MockExecMockRecorder) RunPrivilegedCmdWithStdin

func (mr *MockExecMockRecorder) RunPrivilegedCmdWithStdin(ctx, name, args, stdin any) *gomock.Call

RunPrivilegedCmdWithStdin indicates an expected call of RunPrivilegedCmdWithStdin.

func (*MockExecMockRecorder) RunReadCmd

func (mr *MockExecMockRecorder) RunReadCmd(ctx, name, args any) *gomock.Call

RunReadCmd indicates an expected call of RunReadCmd.

type MockObjects

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

MockObjects is a mock of Objects interface.

func NewMockObjects

func NewMockObjects(ctrl *gomock.Controller) *MockObjects

NewMockObjects creates a new mock instance.

func (*MockObjects) EXPECT

func (m *MockObjects) EXPECT() *MockObjectsMockRecorder

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

func (*MockObjects) Object

func (m *MockObjects) Object(ctx context.Context, name string) ([]byte, types.ContentType, error)

Object mocks base method.

type MockObjectsMockRecorder

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

MockObjectsMockRecorder is the mock recorder for MockObjects.

func (*MockObjectsMockRecorder) Object

func (mr *MockObjectsMockRecorder) Object(ctx, name any) *gomock.Call

Object indicates an expected call of Object.

Jump to

Keyboard shortcuts

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