tests

package
v0.4.2 Latest Latest
Warning

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

Go to latest
Published: Jul 14, 2023 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewCustomRequestHandler

func NewCustomRequestHandler(t *testing.T, method string, path string, reqVerify func(t *testing.T, r *http.Request), respHeaders func(t *testing.T) map[string]string, resp func(t *testing.T) (int, interface{})) http.HandlerFunc

func NewSimpleHandler

func NewSimpleHandler(t *testing.T, method string, path string, resp func(t *testing.T) (int, interface{})) http.HandlerFunc

Types

type AsyncHandler

type AsyncHandler interface {
	ID() string

	Start()
	InProgress()
	Missing()
	Done()
}

func NewAsyncHandler

func NewAsyncHandler(t *testing.T, s Server, method string, path string, retCode int, ret interface{}) AsyncHandler

type Server

type Server interface {
	NewConnection() driver.Connection
	NewClient() driver.Client

	Handle(f http.HandlerFunc)
	Addr() string
	Stop()
}

func NewServer

func NewServer(t *testing.T) Server

Jump to

Keyboard shortcuts

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