assert

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Mar 5, 2023 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Overview

Package assert contains small assertion test functions to assist in writing clean tests.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Equal

func Equal(t *testing.T, expected, actual any) bool

Equal asserts actual is equal to expected

func EqualError

func EqualError(t *testing.T, err error, expected string) bool

EqualError asserts err.Error() is equal to expected

func NoError

func NoError(t *testing.T, err error) bool

NoError asserts err is nil

func NotPanics

func NotPanics(t *testing.T, fn func())

NotPanics asserts fn() does not panic

Types

This section is empty.

Jump to

Keyboard shortcuts

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