File: errors.go

package info (click to toggle)
golang-testify 0.0~git20141213-1
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 276 kB
  • ctags: 346
  • sloc: makefile: 4
file content (10 lines) | stat: -rw-r--r-- 326 bytes parent folder | download | duplicates (15)
1
2
3
4
5
6
7
8
9
10
package assert

import (
	"errors"
)

// AnError is an error instance useful for testing.  If the code does not care
// about error specifics, and only needs to return the error for example, this
// error should be used to make the test code more readable.
var AnError = errors.New("assert.AnError general error for testing")