testutil

package
v0.0.0-...-632d234 Latest Latest
Warning

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

Go to latest
Published: Apr 30, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Equal

func Equal(t *testing.T, got, expected interface{}, prefix string, opts ...cmp.Option) bool

Equal takes t, got, expected, and a prefix, returning true if got and expected are expected.

func JSONEqual

func JSONEqual(t *testing.T, got, expected string, prefix string, opts ...cmp.Option) bool

JSONEqual takes a got and expected string of json and compares the parsed values with Equal.

Types

This section is empty.

Jump to

Keyboard shortcuts

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