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.
AnError is referenced in 5 repositoriesgithub.com/stretchr/codecs github.com/stretchr/sdk-go github.com/Wattpad/sqsconsumer
- 3 references in sqs_service_test.go
- 2 references in queue_consumer_test.go
- 1 reference in middleware/delete_on_success_test.go