Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type EchoHandler ¶
type EchoHandler struct {
// Requests contains all HTTP requests sent to the handler
Requests []*http.Request
}
EchoHandler is an http.Handler that echos the requested path in the document heading, i.e., the <h1> element.
func (*EchoHandler) RequestCount ¶
func (h *EchoHandler) RequestCount() int
RequestCount returns how many HTTP requests have been made to the handler
func (*EchoHandler) ServeHTTP ¶
func (h *EchoHandler) ServeHTTP(w http.ResponseWriter, r *http.Request)
type GomegaSuite ¶
GomegaSuite is a specialised suite.Suite that provides support for the gomega assertion library by providing a GomegaSuite.Expect function automatically initializes gomega with
func (*GomegaSuite) Expect ¶
func (s *GomegaSuite) Expect(actual interface{}, extra ...interface{}) types.Assertion
Expect is wraps gomega/Gomega.Expect, passing the correct testing/T. This supports gomega matchers for verification; which can in some cases provide more expressive tests.
Click to show internal directories.
Click to hide internal directories.