testmgr

package
v0.0.6 Latest Latest
Warning

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

Go to latest
Published: Sep 1, 2022 License: Apache-2.0 Imports: 12 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Get

func Get(t *testing.T, k string) string

func HttpNewAuthRequest

func HttpNewAuthRequest(t *testing.T, method string, url string, body []byte, w http.ResponseWriter) *http.Request

func HttpNewAuthRequestO

func HttpNewAuthRequestO(t *testing.T, method string, url string, body interface{}, w http.ResponseWriter) *http.Request

func Init

func Init()

func Login

func Login(t *testing.T)

func SessID

func SessID(t *testing.T) string

func Set

func Set(t *testing.T, k string, v string)

func Tenant

func Tenant(t *testing.T) string

Types

type InMemResponseWriter

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

func NewInMemResponseWriter

func NewInMemResponseWriter() *InMemResponseWriter

func (*InMemResponseWriter) Bytes

func (i *InMemResponseWriter) Bytes() []byte

func (*InMemResponseWriter) Header

func (i *InMemResponseWriter) Header() http.Header

func (*InMemResponseWriter) Read

func (i *InMemResponseWriter) Read(b []byte) (int, error)

func (*InMemResponseWriter) Status

func (i *InMemResponseWriter) Status() int

func (*InMemResponseWriter) Write

func (i *InMemResponseWriter) Write(bs []byte) (int, error)

func (*InMemResponseWriter) WriteHeader

func (i *InMemResponseWriter) WriteHeader(statusCode int)

Jump to

Keyboard shortcuts

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