testutil

package
v1.1.1 Latest Latest
Warning

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

Go to latest
Published: Apr 20, 2022 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

Package testutil provides helper methods for newbie tests. Thanks, https://github.com/benbjohnson/testing

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Equals

func Equals(tb testing.TB, expected, actual interface{})

Equals fails the test if exp is not equal to act.

func NotNil

func NotNil(tb testing.TB, err error)

NotNil fails if an err is nil.

func Ok

func Ok(tb testing.TB, err error)

Ok fails the test if an err is not nil.

Types

This section is empty.

Jump to

Keyboard shortcuts

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