mocks

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Feb 3, 2026 License: BSD-3-Clause Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockHttpServer

type MockHttpServer struct {
	mock.Mock
}

MockHttpServer is an autogenerated mock type for the HttpServer type

func NewMockHttpServer

func NewMockHttpServer(t interface {
	mock.TestingT
	Cleanup(func())
}) *MockHttpServer

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

func (*MockHttpServer) Serve

func (_mock *MockHttpServer) Serve(socketPath string) error

Serve provides a mock function for the type MockHttpServer

func (*MockHttpServer) Shutdown

func (_mock *MockHttpServer) Shutdown(ctx context.Context) error

Shutdown provides a mock function for the type MockHttpServer

type MockHttpServer_Expecter

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

func (*MockHttpServer_Expecter) Serve

func (_e *MockHttpServer_Expecter) Serve(socketPath interface{}) *MockHttpServer_Serve_Call

Serve is a helper method to define mock.On call

  • socketPath string

func (*MockHttpServer_Expecter) Shutdown

func (_e *MockHttpServer_Expecter) Shutdown(ctx interface{}) *MockHttpServer_Shutdown_Call

Shutdown is a helper method to define mock.On call

  • ctx context.Context

type MockHttpServer_Serve_Call

type MockHttpServer_Serve_Call struct {
	*mock.Call
}

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

func (*MockHttpServer_Serve_Call) Return

func (*MockHttpServer_Serve_Call) Run

func (_c *MockHttpServer_Serve_Call) Run(run func(socketPath string)) *MockHttpServer_Serve_Call

func (*MockHttpServer_Serve_Call) RunAndReturn

func (_c *MockHttpServer_Serve_Call) RunAndReturn(run func(socketPath string) error) *MockHttpServer_Serve_Call

type MockHttpServer_Shutdown_Call

type MockHttpServer_Shutdown_Call struct {
	*mock.Call
}

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

func (*MockHttpServer_Shutdown_Call) Return

func (*MockHttpServer_Shutdown_Call) Run

func (*MockHttpServer_Shutdown_Call) RunAndReturn

type MockOSLayer

type MockOSLayer struct {
	mock.Mock
}

MockOSLayer is an autogenerated mock type for the OSLayer type

func NewMockOSLayer

func NewMockOSLayer(t interface {
	mock.TestingT
	Cleanup(func())
}) *MockOSLayer

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

func (_m *MockOSLayer) EXPECT() *MockOSLayer_Expecter

func (*MockOSLayer) RemoveAll

func (_mock *MockOSLayer) RemoveAll(name string) error

RemoveAll provides a mock function for the type MockOSLayer

type MockOSLayer_Expecter

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

func (*MockOSLayer_Expecter) RemoveAll

func (_e *MockOSLayer_Expecter) RemoveAll(name interface{}) *MockOSLayer_RemoveAll_Call

RemoveAll is a helper method to define mock.On call

  • name string

type MockOSLayer_RemoveAll_Call

type MockOSLayer_RemoveAll_Call struct {
	*mock.Call
}

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

func (*MockOSLayer_RemoveAll_Call) Return

func (*MockOSLayer_RemoveAll_Call) Run

func (*MockOSLayer_RemoveAll_Call) RunAndReturn

func (_c *MockOSLayer_RemoveAll_Call) RunAndReturn(run func(name string) error) *MockOSLayer_RemoveAll_Call

Jump to

Keyboard shortcuts

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