testings

package
v0.0.0-...-ae36b9e Latest Latest
Warning

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

Go to latest
Published: Feb 6, 2021 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AssertEqual

func AssertEqual(t *testing.T, want, got interface{}, message string, options ...cmp.Option)

AssertEqual ensures that got and want are equal by cmp.Diff. If they are not equal, it reports failure by t.Errorf with given `message`. If options are empty, it applies default options, which are defined in `defaultCmpOptions`. If any options are given, `defaultCmpOptions` are not applied.

func RequireEqual

func RequireEqual(t *testing.T, want, got interface{}, message string, options ...cmp.Option)

RequireEqual ensures that got and want are equal by cmp.Diff. If they are not equal, it reports failure by t.Fatalf with given `message`. If options are empty, it applies default options, which are defined in `defaultCmpOptions`. If any options are given, `defaultCmpOptions` are not applied.

Types

This section is empty.

Jump to

Keyboard shortcuts

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