helpers

package module
v0.0.0-...-af83df6 Latest Latest
Warning

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

Go to latest
Published: Oct 28, 2014 License: MIT Imports: 5 Imported by: 0

README

test-helpers

Simple testing helpers for Go. A "packaged" version of https://github.com/benbjohnson/testing I was copy pasting and tweaking those functions in a lot of projects, so I decided to put them in a repo.

Documentation

Overview

Package helpers implements simple test helpers.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Assert

func Assert(tb testing.TB, condition bool, msg string, v ...interface{})

Assert fails the test if the condition is false.

func Equals

func Equals(tb testing.TB, exp, act interface{})

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

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