test

package
v1.2.3 Latest Latest
Warning

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

Go to latest
Published: Feb 10, 2023 License: AGPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RequireJSONMatchesFixture

func RequireJSONMatchesFixture(t *testing.T, filename string, actual string)

RequireJSONMatchesFixture asserts that the JSON text in actual matches the JSON read from filename, without taking into account whitespace and ordering. Files can be specified relative to the calling test (e.g. testdata/example.json). To regenerate the expected test data automatically after making a code change, pass the `-update-fixtures` flag to `go test`.

Types

This section is empty.

Jump to

Keyboard shortcuts

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