testutils

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Apr 27, 2023 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewFromJsonFile

func NewFromJsonFile[T any](filename string) (T, error)

Gets an new instance of T by reading and unmarsalling the json file

func NewFromResponseRecorder

func NewFromResponseRecorder[T any](response *httptest.ResponseRecorder) (T, error)

func ReaderFromJsonFile

func ReaderFromJsonFile(filename string) (io.Reader, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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