toast

package module
v0.0.0-...-87401eb Latest Latest
Warning

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

Go to latest
Published: Mar 27, 2025 License: BSD-3-Clause Imports: 2 Imported by: 0

README

Test helpers for use with the google/go-cmp package.

func Equal(t *testing.T, x, y any, opts ...cmp.Option)
func MustEqual(t *testing.T, x, y any, opts ...cmp.Option)

It may be handy to dot-import this package.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Equal

func Equal(t *testing.T, x, y any, opts ...cmp.Option)

Equal checks if two values are equal. If they are not equal, it logs the difference in the error log, marks the function as having failed and continues its execution.

func MustEqual

func MustEqual(t *testing.T, x, y any, opts ...cmp.Option)

MustEqual checks if two values are equal. If they are not equal, it logs the difference in the error log, marks the function as having failed and stops its execution.

Types

This section is empty.

Jump to

Keyboard shortcuts

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