mocks

package
v1.8.0 Latest Latest
Warning

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

Go to latest
Published: Nov 29, 2026 License: MIT Imports: 4 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 MockPluginService

type MockPluginService struct {
	mock.Mock
}

MockPluginService is an autogenerated mock type for the PluginService type

func NewMockPluginService

func NewMockPluginService(t interface {
	mock.TestingT
	Cleanup(func())
}) *MockPluginService

NewMockPluginService creates a new instance of MockPluginService. 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 (*MockPluginService) Build

func (_mock *MockPluginService) Build(ctx context.Context, name string) (plugingen.BuildResult, error)

Build provides a mock function for the type MockPluginService

func (*MockPluginService) Delete

func (_mock *MockPluginService) Delete(ctx context.Context, name string) error

Delete provides a mock function for the type MockPluginService

func (*MockPluginService) EXPECT

func (*MockPluginService) Generate

func (_mock *MockPluginService) Generate(ctx context.Context, brief plugingen.Brief) (plugingen.Project, plugingen.ValidationReport, error)

Generate provides a mock function for the type MockPluginService

func (*MockPluginService) Get

func (_mock *MockPluginService) Get(ctx context.Context, name string) (plugingen.Project, error)

Get provides a mock function for the type MockPluginService

func (*MockPluginService) List

func (_mock *MockPluginService) List(ctx context.Context) ([]plugingen.InstalledProject, error)

List provides a mock function for the type MockPluginService

func (*MockPluginService) Zip

func (_mock *MockPluginService) Zip(ctx context.Context, name string) ([]byte, error)

Zip provides a mock function for the type MockPluginService

type MockPluginService_Build_Call

type MockPluginService_Build_Call struct {
	*mock.Call
}

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

func (*MockPluginService_Build_Call) Return

func (_c *MockPluginService_Build_Call) Return(buildResult plugingen.BuildResult, err error) *MockPluginService_Build_Call

func (*MockPluginService_Build_Call) Run

func (*MockPluginService_Build_Call) RunAndReturn

func (_c *MockPluginService_Build_Call) RunAndReturn(run func(ctx context.Context, name string) (plugingen.BuildResult, error)) *MockPluginService_Build_Call

type MockPluginService_Delete_Call

type MockPluginService_Delete_Call struct {
	*mock.Call
}

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

func (*MockPluginService_Delete_Call) Return

func (*MockPluginService_Delete_Call) Run

func (*MockPluginService_Delete_Call) RunAndReturn

type MockPluginService_Expecter

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

func (*MockPluginService_Expecter) Build

Build is a helper method to define mock.On call

  • ctx context.Context
  • name string

func (*MockPluginService_Expecter) Delete

Delete is a helper method to define mock.On call

  • ctx context.Context
  • name string

func (*MockPluginService_Expecter) Generate

Generate is a helper method to define mock.On call

  • ctx context.Context
  • brief plugingen.Brief

func (*MockPluginService_Expecter) Get

Get is a helper method to define mock.On call

  • ctx context.Context
  • name string

func (*MockPluginService_Expecter) List

List is a helper method to define mock.On call

  • ctx context.Context

func (*MockPluginService_Expecter) Zip

Zip is a helper method to define mock.On call

  • ctx context.Context
  • name string

type MockPluginService_Generate_Call

type MockPluginService_Generate_Call struct {
	*mock.Call
}

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

func (*MockPluginService_Generate_Call) Return

func (_c *MockPluginService_Generate_Call) Return(project plugingen.Project, validationReport plugingen.ValidationReport, err error) *MockPluginService_Generate_Call

func (*MockPluginService_Generate_Call) Run

func (_c *MockPluginService_Generate_Call) Run(run func(ctx context.Context, brief plugingen.Brief)) *MockPluginService_Generate_Call

func (*MockPluginService_Generate_Call) RunAndReturn

func (_c *MockPluginService_Generate_Call) RunAndReturn(run func(ctx context.Context, brief plugingen.Brief) (plugingen.Project, plugingen.ValidationReport, error)) *MockPluginService_Generate_Call

type MockPluginService_Get_Call

type MockPluginService_Get_Call struct {
	*mock.Call
}

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

func (*MockPluginService_Get_Call) Return

func (_c *MockPluginService_Get_Call) Return(project plugingen.Project, err error) *MockPluginService_Get_Call

func (*MockPluginService_Get_Call) Run

func (*MockPluginService_Get_Call) RunAndReturn

func (_c *MockPluginService_Get_Call) RunAndReturn(run func(ctx context.Context, name string) (plugingen.Project, error)) *MockPluginService_Get_Call

type MockPluginService_List_Call

type MockPluginService_List_Call struct {
	*mock.Call
}

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

func (*MockPluginService_List_Call) Return

func (_c *MockPluginService_List_Call) Return(installedProjects []plugingen.InstalledProject, err error) *MockPluginService_List_Call

func (*MockPluginService_List_Call) Run

func (*MockPluginService_List_Call) RunAndReturn

func (_c *MockPluginService_List_Call) RunAndReturn(run func(ctx context.Context) ([]plugingen.InstalledProject, error)) *MockPluginService_List_Call

type MockPluginService_Zip_Call

type MockPluginService_Zip_Call struct {
	*mock.Call
}

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

func (*MockPluginService_Zip_Call) Return

func (*MockPluginService_Zip_Call) Run

func (*MockPluginService_Zip_Call) RunAndReturn

func (_c *MockPluginService_Zip_Call) RunAndReturn(run func(ctx context.Context, name string) ([]byte, error)) *MockPluginService_Zip_Call

type MockPluginStatusReader

type MockPluginStatusReader struct {
	mock.Mock
}

MockPluginStatusReader is an autogenerated mock type for the PluginStatusReader type

func NewMockPluginStatusReader

func NewMockPluginStatusReader(t interface {
	mock.TestingT
	Cleanup(func())
}) *MockPluginStatusReader

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

func (*MockPluginStatusReader) LoadedPlugins

func (_mock *MockPluginStatusReader) LoadedPlugins(ctx context.Context) []api.PluginStatus

LoadedPlugins provides a mock function for the type MockPluginStatusReader

type MockPluginStatusReader_Expecter

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

func (*MockPluginStatusReader_Expecter) LoadedPlugins

LoadedPlugins is a helper method to define mock.On call

  • ctx context.Context

type MockPluginStatusReader_LoadedPlugins_Call

type MockPluginStatusReader_LoadedPlugins_Call struct {
	*mock.Call
}

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

func (*MockPluginStatusReader_LoadedPlugins_Call) Return

func (*MockPluginStatusReader_LoadedPlugins_Call) Run

func (*MockPluginStatusReader_LoadedPlugins_Call) RunAndReturn

Jump to

Keyboard shortcuts

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