tests

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: May 27, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RequireCreateFile

func RequireCreateFile(tb testing.TB, content []byte) string

RequireCreateFile is a helper that create a temporary file and deletes it at the end of the test.

func RequireEncodeJSON added in v0.1.8

func RequireEncodeJSON(tb testing.TB, value any) []byte

RequireEncodeJSON marshals value to JSON.

Types

This section is empty.

Jump to

Keyboard shortcuts

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