testutils

package
v0.1.50 Latest Latest
Warning

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

Go to latest
Published: Jun 7, 2023 License: BSD-3-Clause Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	StringNumberTooBigForInt = "9999999999999999999999999999"
)

Variables

This section is empty.

Functions

func AssertNoDiff added in v0.0.23

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

func PointerTo added in v0.0.23

func PointerTo[T any](val T) *T

PointerTo returns a pointer to whatever you give it, so you don't need to define a bunch of temporary variables in tests. The fun generics make it always agree with the type system.

func SetupTestContext

func SetupTestContext() (*gin.Context, *httptest.ResponseRecorder)

Types

This section is empty.

Jump to

Keyboard shortcuts

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