test

package
v1.3.6 Latest Latest
Warning

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

Go to latest
Published: Jul 19, 2023 License: GPL-3.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const (
	BuildName = "build.data"
	BuildSize = 200 * 1024 * 1024
	Dir       = "./"
	BuildFile = Dir + BuildName

	DownloadName = "download.data"
	DownloadFile = Dir + DownloadName
)

Variables

This section is empty.

Functions

func DirMd5

func DirMd5(dirPath string) string

func FileMd5

func FileMd5(filePath string) string

func JsonEqual

func JsonEqual(v1 any, v2 any) bool

func StartTestCustomServer added in v1.3.3

func StartTestCustomServer() net.Listener

func StartTestErrorServer

func StartTestErrorServer() net.Listener

func StartTestFileServer

func StartTestFileServer() net.Listener

func StartTestPostServer

func StartTestPostServer() net.Listener

func StartTestRetryServer

func StartTestRetryServer() net.Listener

func StartTestSlowFileServer

func StartTestSlowFileServer(delay time.Duration) net.Listener

func ToJson

func ToJson(v interface{}) string

Types

type SlowFileServer

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

func (*SlowFileServer) ServeHTTP

func (s *SlowFileServer) ServeHTTP(w http.ResponseWriter, r *http.Request)

Jump to

Keyboard shortcuts

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