test_helpers

package
v2.1.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Jun 12, 2017 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AuthFailureHandler

type AuthFailureHandler struct {
	Message string
}

func (AuthFailureHandler) ServeHTTP

func (failer AuthFailureHandler) ServeHTTP(rw http.ResponseWriter, r *http.Request)

type FakeDebugPrinter

type FakeDebugPrinter struct {
	Messages []*fakeDebugPrinterMessage
}

func (*FakeDebugPrinter) Print

func (p *FakeDebugPrinter) Print(title, body string)

type FakeHandler

type FakeHandler struct {
	GenerateHandler func(chan []byte) http.Handler
	InputChan       chan []byte
	Fail            bool
	ContentLen      string

	sync.RWMutex
	// contains filtered or unexported fields
}

func (*FakeHandler) Call

func (fh *FakeHandler) Call()

func (*FakeHandler) Close

func (fh *FakeHandler) Close()

func (*FakeHandler) GetAuthHeader

func (fh *FakeHandler) GetAuthHeader() string

func (*FakeHandler) GetLastURL

func (fh *FakeHandler) GetLastURL() string

func (*FakeHandler) Reset

func (fh *FakeHandler) Reset()

func (*FakeHandler) ServeHTTP

func (fh *FakeHandler) ServeHTTP(rw http.ResponseWriter, r *http.Request)

func (*FakeHandler) SetAuthHeader

func (fh *FakeHandler) SetAuthHeader(authHeader string)

func (*FakeHandler) SetLastURL

func (fh *FakeHandler) SetLastURL(url string)

func (*FakeHandler) WasCalled

func (fh *FakeHandler) WasCalled() bool

Jump to

Keyboard shortcuts

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