assert

package
v0.20.0-alpha Latest Latest
Warning

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

Go to latest
Published: May 17, 2023 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BoolEqual added in v0.8.0

func BoolEqual(t testingDotT, expected, result bool)

BoolEqual will call t.Errorf if expected != result t should be a *testing.T normally

func DeepEqual

func DeepEqual(t testingDotT, expected, result interface{})

DeepEqual will call t.Errorf if !reflect.DeepEqual(expected, result) t should be a *testing.T normally

func ExpectError

func ExpectError(t testingDotT, expectError bool, err error)

ExpectError will call t.Errorf if expectError != (err == nil) t should be a *testing.T normally

func StringEqual

func StringEqual(t testingDotT, expected, result string)

StringEqual will call t.Errorf if expected != result t should be a *testing.T normally

Types

This section is empty.

Jump to

Keyboard shortcuts

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