2012-10-16 21:22:47 +01:00
2012-10-16 11:14:23 -06:00
2012-10-16 11:14:23 -06:00
2012-10-16 11:14:23 -06:00
2012-10-16 10:49:51 -06:00
2012-10-16 11:14:23 -06:00
2012-10-16 21:22:47 +01:00

Testify - Thou shalt write tests

Go code (golang) set of packages that provide many tools for testifying that your code will behave as you intend.

  • Easy assertions
  • Mocking
  • HTTP response trapping

Read the API documentation: http://go.pkgdoc.org/github.com/stretchrcom/testify

Assert package

The assert package provides some helpful methods that allow you to write better test code in Go.

Some examples:

func TestSomething(t *testing.T) {

  assert.Equal(t, 123, 123, "they should be equal")
  assert.NotNil(t, object)
  assert.Nil(t, object)

}
Description
A toolkit with common assertions and mocks that plays nicely with the standard library
Readme MIT 7.7 MiB
Languages
Go 100%