test

package
v1.2.2 Latest Latest
Warning

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

Go to latest
Published: Dec 3, 2022 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type HTTPServer

type HTTPServer struct {
	// URL has the `host:port` format.
	URL string
	// contains filtered or unexported fields
}

HTTPServer describes a mock http/https server.

func NewHTTPServer

func NewHTTPServer() HTTPServer

NewHTTPServer returns an instance of a mock http server.

func (HTTPServer) Close

func (s HTTPServer) Close()

Close closes the server connection.

func (HTTPServer) Serve

func (s HTTPServer) Serve(t *testing.T, uri string, statusCode int, response interface{})

ServeVersioned serves a versioned endpoint.

Jump to

Keyboard shortcuts

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