cremocks

package
v0.129.2 Latest Latest
Warning

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

Go to latest
Published: Nov 25, 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 MockCLIRunner added in v0.93.0

type MockCLIRunner struct {
	mock.Mock
}

MockCLIRunner is an autogenerated mock type for the CLIRunner type

func NewMockCLIRunner added in v0.93.0

func NewMockCLIRunner(t interface {
	mock.TestingT
	Cleanup(func())
}) *MockCLIRunner

NewMockCLIRunner creates a new instance of MockCLIRunner. 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 (*MockCLIRunner) ContextRegistries added in v0.94.0

func (_mock *MockCLIRunner) ContextRegistries() []cre.ContextRegistryEntry

ContextRegistries provides a mock function for the type MockCLIRunner

func (*MockCLIRunner) EXPECT added in v0.93.0

func (_m *MockCLIRunner) EXPECT() *MockCLIRunner_Expecter

func (*MockCLIRunner) Run added in v0.93.0

func (_mock *MockCLIRunner) Run(ctx context.Context, env map[string]string, args ...string) (*cre.CallResult, error)

Run provides a mock function for the type MockCLIRunner

func (*MockCLIRunner) WithNamedAPIKey added in v0.102.0

func (_mock *MockCLIRunner) WithNamedAPIKey(name string) (cre.CLIRunner, error)

WithNamedAPIKey provides a mock function for the type MockCLIRunner

type MockCLIRunner_ContextRegistries_Call added in v0.94.0

type MockCLIRunner_ContextRegistries_Call struct {
	*mock.Call
}

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

func (*MockCLIRunner_ContextRegistries_Call) Return added in v0.94.0

func (*MockCLIRunner_ContextRegistries_Call) Run added in v0.94.0

func (*MockCLIRunner_ContextRegistries_Call) RunAndReturn added in v0.94.0

type MockCLIRunner_Expecter added in v0.93.0

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

func (*MockCLIRunner_Expecter) ContextRegistries added in v0.94.0

ContextRegistries is a helper method to define mock.On call

func (*MockCLIRunner_Expecter) Run added in v0.93.0

func (_e *MockCLIRunner_Expecter) Run(ctx interface{}, env interface{}, args ...interface{}) *MockCLIRunner_Run_Call

Run is a helper method to define mock.On call

  • ctx context.Context
  • env map[string]string
  • args ...string

func (*MockCLIRunner_Expecter) WithNamedAPIKey added in v0.102.0

func (_e *MockCLIRunner_Expecter) WithNamedAPIKey(name interface{}) *MockCLIRunner_WithNamedAPIKey_Call

WithNamedAPIKey is a helper method to define mock.On call

  • name string

type MockCLIRunner_Run_Call added in v0.93.0

type MockCLIRunner_Run_Call struct {
	*mock.Call
}

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

func (*MockCLIRunner_Run_Call) Return added in v0.93.0

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

func (*MockCLIRunner_Run_Call) Run added in v0.93.0

func (_c *MockCLIRunner_Run_Call) Run(run func(ctx context.Context, env map[string]string, args ...string)) *MockCLIRunner_Run_Call

func (*MockCLIRunner_Run_Call) RunAndReturn added in v0.93.0

func (_c *MockCLIRunner_Run_Call) RunAndReturn(run func(ctx context.Context, env map[string]string, args ...string) (*cre.CallResult, error)) *MockCLIRunner_Run_Call

type MockCLIRunner_WithNamedAPIKey_Call added in v0.102.0

type MockCLIRunner_WithNamedAPIKey_Call struct {
	*mock.Call
}

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

func (*MockCLIRunner_WithNamedAPIKey_Call) Return added in v0.102.0

func (*MockCLIRunner_WithNamedAPIKey_Call) Run added in v0.102.0

func (*MockCLIRunner_WithNamedAPIKey_Call) RunAndReturn added in v0.102.0

type MockClient added in v0.93.0

type MockClient struct {
	mock.Mock
}

MockClient is an autogenerated mock type for the Client type

func NewMockClient added in v0.93.0

func NewMockClient(t interface {
	mock.TestingT
	Cleanup(func())
}) *MockClient

NewMockClient creates a new instance of MockClient. 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 (*MockClient) EXPECT added in v0.93.0

func (_m *MockClient) EXPECT() *MockClient_Expecter

type MockClient_Expecter added in v0.93.0

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

Jump to

Keyboard shortcuts

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