Documentation
¶
Index ¶
- type MockHttpServer
- type MockHttpServer_Expecter
- type MockHttpServer_Serve_Call
- type MockHttpServer_Shutdown_Call
- func (_c *MockHttpServer_Shutdown_Call) Return(err error) *MockHttpServer_Shutdown_Call
- func (_c *MockHttpServer_Shutdown_Call) Run(run func(ctx context.Context)) *MockHttpServer_Shutdown_Call
- func (_c *MockHttpServer_Shutdown_Call) RunAndReturn(run func(ctx context.Context) error) *MockHttpServer_Shutdown_Call
- type MockOSLayer
- type MockOSLayer_Expecter
- type MockOSLayer_RemoveAll_Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockHttpServer ¶
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 (_m *MockHttpServer) EXPECT() *MockHttpServer_Expecter
func (*MockHttpServer) Serve ¶
func (_mock *MockHttpServer) Serve(socketPath string) error
Serve 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 ¶
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 (_c *MockHttpServer_Serve_Call) Return(err error) *MockHttpServer_Serve_Call
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 ¶
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 (_c *MockHttpServer_Shutdown_Call) Return(err error) *MockHttpServer_Shutdown_Call
func (*MockHttpServer_Shutdown_Call) Run ¶
func (_c *MockHttpServer_Shutdown_Call) Run(run func(ctx context.Context)) *MockHttpServer_Shutdown_Call
func (*MockHttpServer_Shutdown_Call) RunAndReturn ¶
func (_c *MockHttpServer_Shutdown_Call) RunAndReturn(run func(ctx context.Context) error) *MockHttpServer_Shutdown_Call
type MockOSLayer ¶
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 ¶
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 (_c *MockOSLayer_RemoveAll_Call) Return(err error) *MockOSLayer_RemoveAll_Call
func (*MockOSLayer_RemoveAll_Call) Run ¶
func (_c *MockOSLayer_RemoveAll_Call) Run(run func(name string)) *MockOSLayer_RemoveAll_Call
func (*MockOSLayer_RemoveAll_Call) RunAndReturn ¶
func (_c *MockOSLayer_RemoveAll_Call) RunAndReturn(run func(name string) error) *MockOSLayer_RemoveAll_Call