storj/internal
JT Olio 5ee6b76d41 internal/test: switch errors to error classes (#96)
* internal/test: switch errors to error classes

if you construct an error directly at package init time, you
won't get useful stack traces or anything. zeebo/errs expects that
you always construct an error (.New) when the error actually
happens. instead, you call Class at init time, then use (Class).Has
to test for error type membership.

* fix linter

* fix test
2018-06-19 20:03:46 +02:00
..
pkg/readcloser Add error to the return values of Ranger.Range method (#90) 2018-06-18 19:46:49 +03:00
test internal/test: switch errors to error classes (#96) 2018-06-19 20:03:46 +02:00
.keep keep 2018-04-06 12:36:55 -04:00