File: errors.go

package info (click to toggle)
golang-github-alecthomas-assert 0.0~git20170929.405dbfe-1.1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye, sid
  • size: 176 kB
  • sloc: makefile: 2
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")