metrics

package
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: Feb 3, 2025 License: MIT 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) Close

func (_m *MockhttpServer) Close() error

Close provides a mock function with no fields

func (*MockhttpServer) EXPECT

func (*MockhttpServer) Serve

func (_m *MockhttpServer) Serve(l net.Listener) error

Serve provides a mock function with given fields: l

type MockhttpServer_Close_Call

type MockhttpServer_Close_Call struct {
	*mock.Call
}

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

func (*MockhttpServer_Close_Call) Return

func (*MockhttpServer_Close_Call) Run

func (*MockhttpServer_Close_Call) RunAndReturn

func (_c *MockhttpServer_Close_Call) RunAndReturn(run func() error) *MockhttpServer_Close_Call

type MockhttpServer_Expecter

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

func (*MockhttpServer_Expecter) Close

Close is a helper method to define mock.On call

func (*MockhttpServer_Expecter) Serve

func (_e *MockhttpServer_Expecter) Serve(l interface{}) *MockhttpServer_Serve_Call

Serve is a helper method to define mock.On call

  • l net.Listener

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 (*MockhttpServer_Serve_Call) RunAndReturn

Jump to

Keyboard shortcuts

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