testutil

package
v0.0.0-...-18492a3 Latest Latest
Warning

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

Go to latest
Published: Oct 25, 2022 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ChooseRandomUnusedPort

func ChooseRandomUnusedPort() (port uint16)

ChooseRandomUnusedPort returns random free port

func GetTempFolder

func GetTempFolder(t require.TestingT, prefix string) (tmpPath string, cleanup func())

GetTempFolder return tmp forder and cleanup func

func MustReadData

func MustReadData(t *testing.T, path string) []byte

MustReadData open and read file checking errors

func WaitForHTTPSServerStart

func WaitForHTTPSServerStart(host string, port uint16) error

WaitForHTTPSServerStart wait up to 3 second to server start

Types

This section is empty.

Jump to

Keyboard shortcuts

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