mock

package
v0.0.0-...-00b2d59 Latest Latest
Warning

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

Go to latest
Published: Oct 9, 2015 License: GPL-3.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewMockDB

func NewMockDB() error

NewMockDB creates a new mock database

func NewMockLogger

func NewMockLogger()

NewMockLogger creates a new mock logger

Types

type ResponseWriter

type ResponseWriter struct {
	Status int
	Output string
}

ResponseWriter is a mock http.ResponseWriter

func (ResponseWriter) Header

func (m ResponseWriter) Header() http.Header

Header mocks http.Header

func (*ResponseWriter) Write

func (m *ResponseWriter) Write(b []byte) (int, error)

Write mocks http.ResponseWriter.Write

func (*ResponseWriter) WriteHeader

func (m *ResponseWriter) WriteHeader(s int)

WriteHeader mocks http.ResponseWriter.WriteHEader

Jump to

Keyboard shortcuts

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