cremocks

package
v0.91.0 Latest Latest
Warning

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

Go to latest
Published: Mar 26, 2026 License: MIT Imports: 3 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

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockRunner

type MockRunner struct {
	mock.Mock
}

MockRunner is an autogenerated mock type for the Runner type

func NewMockRunner

func NewMockRunner(t interface {
	mock.TestingT
	Cleanup(func())
}) *MockRunner

NewMockRunner creates a new instance of MockRunner. 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 (*MockRunner) EXPECT

func (_m *MockRunner) EXPECT() *MockRunner_Expecter

func (*MockRunner) Run

func (_mock *MockRunner) Run(ctx context.Context, args ...string) (*cre.CallResult, error)

Call provides a mock function for the type MockRunner

type MockRunner_Call_Call

type MockRunner_Call_Call struct {
	*mock.Call
}

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

func (*MockRunner_Call_Call) Return

func (_c *MockRunner_Call_Call) Return(callResult *cre.CallResult, err error) *MockRunner_Call_Call

func (*MockRunner_Call_Call) Run

func (_c *MockRunner_Call_Call) Run(run func(ctx context.Context, args ...string)) *MockRunner_Call_Call

func (*MockRunner_Call_Call) RunAndReturn

func (_c *MockRunner_Call_Call) RunAndReturn(run func(ctx context.Context, args ...string) (*cre.CallResult, error)) *MockRunner_Call_Call

type MockRunner_Expecter

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

func (*MockRunner_Expecter) Call

func (_e *MockRunner_Expecter) Call(ctx interface{}, args ...interface{}) *MockRunner_Call_Call

Call is a helper method to define mock.On call

  • ctx context.Context
  • args ...string

Jump to

Keyboard shortcuts

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