Documentation
¶
Overview ¶
Package testserver provides a one-line setup for HTTP-handler tests. New(t) returns an httptest.Server backed by in-memory fakes. Tests inspect the embedded Stores to verify side effects.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DecodeJSON ¶
DecodeJSON reads the response body and unmarshals into out.
Types ¶
type TS ¶
TS bundles a running httptest.Server with the in-memory fakes that back it.
func New ¶
New returns a fully-wired test server backed by in-memory fakes. Auth is disabled (empty Google client ID/secret).
Click to show internal directories.
Click to hide internal directories.