testutils

package
v0.0.0-...-a44ad7e Latest Latest
Warning

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

Go to latest
Published: Dec 8, 2024 License: BSD-3-Clause Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func EnsureNewGameResponseMatchesDifficultySettings

func EnsureNewGameResponseMatchesDifficultySettings(
	t *testing.T,
	difficulty game.Difficulty,
	w *httptest.ResponseRecorder,
)

func NewRequest

func NewRequest(
	method string,
	target string,
	body any,
) *http.Request

func NewServer

func NewServer() *http.Server

func Unmarshal

func Unmarshal[Body any](
	body *bytes.Buffer,
) (*Body, error)

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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