errors.go 326 B

1234567891011
  1. package assert
  2. import (
  3. "errors"
  4. )
  5. // AnError is an error instance useful for testing. If the code does not care
  6. // about error specifics, and only needs to return the error for example, this
  7. // error should be used to make the test code more readable.
  8. var AnError = errors.New("assert.AnError general error for testing")