testcommon

package
v2.1.0 Latest Latest
Warning

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

Go to latest
Published: Oct 20, 2024 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetWorkingDirectory

func GetWorkingDirectory(t *testing.T) string

func OpenBrowser

func OpenBrowser(path string)

func QueryApiVersion

func QueryApiVersion(doPost bool, queryParams map[string]string, headers http.Header, expectedStatus []int) (int, http.Header, error)

Types

type TestWebServer

type TestWebServer struct {
	Server *webserver.Server
	// contains filtered or unexported fields
}

func RunWebServer

func RunWebServer(t *testing.T, initCB func(srv *webserver.Server) error) *TestWebServer

func (*TestWebServer) Stop

func (tws *TestWebServer) Stop()

Jump to

Keyboard shortcuts

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