httpservermocks

package
v1.4.6 Latest Latest
Warning

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

Go to latest
Published: Feb 29, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GoHTTPServer

type GoHTTPServer struct {
	mock.Mock
}

GoHTTPServer is an autogenerated mock type for the GoHTTPServer type

func NewGoHTTPServer added in v1.1.4

func NewGoHTTPServer(t interface {
	mock.TestingT
	Cleanup(func())
}) *GoHTTPServer

NewGoHTTPServer creates a new instance of GoHTTPServer. 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 (*GoHTTPServer) Close

func (_m *GoHTTPServer) Close() error

Close provides a mock function with given fields:

func (*GoHTTPServer) Serve

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

Serve provides a mock function with given fields: l

func (*GoHTTPServer) ServeTLS

func (_m *GoHTTPServer) ServeTLS(l net.Listener, certFile string, keyFile string) error

ServeTLS provides a mock function with given fields: l, certFile, keyFile

func (*GoHTTPServer) Shutdown

func (_m *GoHTTPServer) Shutdown(ctx context.Context) error

Shutdown provides a mock function with given fields: ctx

Jump to

Keyboard shortcuts

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