tt

package
v0.0.0-...-f715ac0 Latest Latest
Warning

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

Go to latest
Published: Nov 5, 2019 License: MIT Imports: 2 Imported by: 0

Documentation

Overview

Package tt implements some basic testing helpers.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Eq

func Eq(t *testing.T, name string, expected, out interface{})

Eq calls Errorf if out and expected are not equal.

func Err

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

Err calls Fatalf is err is non-nil.

func Panic

func Panic(t *testing.T, f func())

Panic runs the function and calls Errorf if there is *no* panic.

Types

This section is empty.

Jump to

Keyboard shortcuts

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