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: 0

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