testutil

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Aug 20, 2015 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewMockServer

func NewMockServer(h HandlerFunc) *httptest.Server

func ShouldBeSuperSetOf

func ShouldBeSuperSetOf(super interface{}, sub ...interface{}) (msg string)

func ShouldConsistOf

func ShouldConsistOf(actual interface{}, expected ...interface{}) (msg string)

func ShouldSetEqual

func ShouldSetEqual(actual interface{}, expected ...interface{}) (msg string)

Checks whether two slices contain the same elements.

func ShouldStructEqual

func ShouldStructEqual(actual interface{}, expected ...interface{}) (msg string)

Types

type HandlerFunc

type HandlerFunc func(http.ResponseWriter, *http.Request)

Jump to

Keyboard shortcuts

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