test

package
v1.9.0 Latest Latest
Warning

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

Go to latest
Published: May 4, 2025 License: MIT Imports: 6 Imported by: 0

Documentation

Overview

Package test used for process tests

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AssertNilError added in v1.9.0

func AssertNilError(t *testing.T, err error)

func AssertNoDiff added in v1.9.0

func AssertNoDiff(t *testing.T, want, got any)

func AssertType added in v1.9.0

func AssertType(t *testing.T, v any, targetType string)

func AssertWrite added in v1.9.0

func AssertWrite(t *testing.T, w io.Writer, data []byte)

func MapsStringBoolEqual

func MapsStringBoolEqual(a, b map[string]bool) bool

MapsStringBoolEqual check if two maps are equal

func Ptr added in v1.9.0

func Ptr[T any](v T) *T

Ptr is a helper routine that allocates a new T value to store v and returns a pointer to it.

func TestFormValues added in v1.9.0

func TestFormValues(t *testing.T, r *http.Request, values values)

func TestHeader added in v1.9.0

func TestHeader(t *testing.T, r *http.Request, header string, want string)

func TestMethod added in v1.9.0

func TestMethod(t *testing.T, r *http.Request, want string)

func TestURLParseError added in v1.9.0

func TestURLParseError(t *testing.T, err error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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