assert

package
v0.0.0-...-e560ebb Latest Latest
Warning

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

Go to latest
Published: Jul 13, 2021 License: BSD-3-Clause Imports: 2 Imported by: 0

Documentation

Overview

Package assert contains common assert methods.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Assert

func Assert(t *testing.T, b bool)

Assert checks that the given bool is true.

func BoolsEqual

func BoolsEqual(t *testing.T, a, b bool)

BoolsEqual checks that the two bools are equal.

func ErrorContains

func ErrorContains(t *testing.T, err error, s string)

ErrorContains checks that the given string exists in an error.

func IntsEqual

func IntsEqual(t *testing.T, a, b int)

IntsEqual checks that the two ints are equal.

func NilError

func NilError(t *testing.T, err error)

NilError checks that the given error is nil.

func StringArrsEqual

func StringArrsEqual(t *testing.T, a, b []string)

StringArrsEqual checks that the two string arrays are equal.

func StringsEqual

func StringsEqual(t *testing.T, a, b string)

StringsEqual checks that the two strings are equal.

Types

This section is empty.

Jump to

Keyboard shortcuts

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