Discover Packages
github.com/bakins/test-helpers
package
module
Version:
v0.0.0-...-af83df6
Opens a new window with list of versions in this module.
Published: Oct 28, 2014
License: MIT
Opens a new window with license information.
Imports: 5
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
README
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.
Expand ▾
Collapse ▴
Documentation
¶
Package helpers implements simple test helpers.
Assert fails the test if the condition is false.
func Equals(tb testing .TB , exp, act interface{})
Equals fails the test if exp is not equal to act.
Ok fails the test if an err is not nil.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.