testutil

package
v1.0.7 Latest Latest
Warning

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

Go to latest
Published: Jun 2, 2023 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RunTestData

func RunTestData(t *testing.T, prefix string, check func(t *testing.T, input, golden *bytes.Buffer))

RunTestData runs all the tests resides in the `testdata` directory and their input/golden file has the following prefix using the `check` function the caller can easily consume the test file input and compare the actual result with the golden one.

Types

This section is empty.

Jump to

Keyboard shortcuts

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