testutils

package
v0.0.8 Latest Latest
Warning

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

Go to latest
Published: Feb 17, 2024 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DeepEqual

func DeepEqual(actual, expected interface{}) string

DeepEqual compares a and b and returns a formatted string explaining the differences if there are any

func ErrorEqual

func ErrorEqual(actual, expected error) bool

ErrorEqual checks whether two errors have the same message (or are both nil)

func ErrorsEqual

func ErrorsEqual(actual, expected []error) bool

ErrorsEqual checks whether two error slices contains errors with the same messages and in the same order

Types

This section is empty.

Jump to

Keyboard shortcuts

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