Categorygithub.com/chai2010/assert
repositorypackage
1.0.1
Repository: https://github.com/chai2010/assert.git
Documentation: pkg.go.dev

# README

Assert for Go1.9+ testing

Build Status Go Report Card GoDoc

Install

  1. go get -u github.com/chai2010/assert
  2. go test

Example

package somepkg_test

import (
	. "github.com/chai2010/assert"
)

func TestAssert(t *testing.T) {
	Assert(t, 1 == 1)
	Assert(t, 1 == 1, "message1", "message2")
}

func TestAssertf(t *testing.T) {
	Assertf(t, 1 == 1, "%v:%v", "message1", "message2")
}

BUGS

Report bugs to [email protected].

Thanks!