testing

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Feb 19, 2025 License: MIT Imports: 2 Imported by: 0

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)

Directories

Path Synopsis
Package gomegamatchers just exposes gomega matchers for easier importing.
Package gomegamatchers just exposes gomega matchers for easier importing.

Jump to

Keyboard shortcuts

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