tt

package
v0.0.0-...-164dcff Latest Latest
Warning

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

Go to latest
Published: Dec 13, 2018 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Header = func() http.Header {
	if header == nil {
		header = make(map[string][]string)
	}
	return header
}()

Functions

func Convey

func Convey(info string, t *testing.T, f func() bool)

Convey 执行

func DoHTTPTestBody

func DoHTTPTestBody(method string, port int, api string, body []byte) []byte

DoHTTPTestBody body

func DoHTTPTestURI

func DoHTTPTestURI(method string, port int, api string, params map[string]string) []byte

DoHTTPTestURI http

func SkipConvey

func SkipConvey(info string, t *testing.T, f func() bool)

SkipConvey 跳过测试

func StartServerOnPort

func StartServerOnPort(t *testing.T, port int, h fasthttp.RequestHandler) io.Closer

StartServerOnPort 开始测试

Types

This section is empty.

Jump to

Keyboard shortcuts

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