testings

package
v0.0.0-...-3ef4865 Latest Latest
Warning

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

Go to latest
Published: Dec 29, 2022 License: MIT Imports: 2 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`.

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`.

Types

This section is empty.

Jump to

Keyboard shortcuts

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