mtesting

package
v0.0.0-...-94ee829 Latest Latest
Warning

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

Go to latest
Published: Mar 5, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewContext

func NewContext() *modulir.Context

NewContext is a convenience helper to create a new modulir.Context suitable for use in the test suite.

func WriteTempFile

func WriteTempFile(t *testing.T, data []byte) string

WriteTempFile writes the given data to a temporary file. It returns the path to the temporary file which should be removed with `defer os.Remove(path)`.

Types

This section is empty.

Jump to

Keyboard shortcuts

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