testutil

package
v2.0.9+incompatible Latest Latest
Warning

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

Go to latest
Published: Apr 7, 2015 License: Apache-2.0 Imports: 5 Imported by: 33

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ForceGosched

func ForceGosched()

WARNING: This is a hack. Remove this when we are able to block/check the status of the go-routines.

func MustNewURL

func MustNewURL(t *testing.T, s string) *url.URL

func MustNewURLs

func MustNewURLs(t *testing.T, urls []string) []url.URL

Types

type Action

type Action struct {
	Name   string
	Params []interface{}
}

type PauseableHandler

type PauseableHandler struct {
	Next http.Handler
	// contains filtered or unexported fields
}

func (*PauseableHandler) Pause

func (ph *PauseableHandler) Pause()

func (*PauseableHandler) Resume

func (ph *PauseableHandler) Resume()

func (*PauseableHandler) ServeHTTP

func (ph *PauseableHandler) ServeHTTP(w http.ResponseWriter, r *http.Request)

type Recorder

type Recorder struct {
	sync.Mutex
	// contains filtered or unexported fields
}

func (*Recorder) Action

func (r *Recorder) Action() []Action

func (*Recorder) Record

func (r *Recorder) Record(a Action)

Jump to

Keyboard shortcuts

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