testhelpers

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Jul 12, 2022 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	RootDir  = path.Join(path.Dir(thisfile), "../..")
	TestDir  = path.Join(RootDir, "test")
	CertsDir = path.Join(TestDir, "certs")
	BinDir   = path.Join(RootDir, "bin")
)

Functions

func Await added in v0.1.2

func Await(predicate func() bool) error

func FixtureFilePath

func FixtureFilePath(dataPath string) string

func HttpClient added in v0.1.2

func HttpClient(t *testing.T) *http.Client

func HttpsClient added in v0.1.2

func HttpsClient(t *testing.T) *http.Client

Types

type RunningServer added in v0.1.2

type RunningServer struct {
	Stop StopServer
}

func StartServer added in v0.1.2

func StartServer(args ...string) (*RunningServer, error)

type StopServer added in v0.1.2

type StopServer func()

Jump to

Keyboard shortcuts

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