Documentation ¶
Index ¶
- func NewMockServer(h HandlerFunc) *httptest.Server
- func ShouldBeSuperSetOf(super interface{}, sub ...interface{}) (msg string)
- func ShouldConsistOf(actual interface{}, expected ...interface{}) (msg string)
- func ShouldSetEqual(actual interface{}, expected ...interface{}) (msg string)
- func ShouldStructEqual(actual interface{}, expected ...interface{}) (msg string)
- type HandlerFunc
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)
Click to show internal directories.
Click to hide internal directories.