zotregistry.io/zot@v1.4.4-0.20231124084042-02a8ed785457/pkg/api/errors/errors_test.go (about) 1 package errors_test 2 3 import ( 4 "testing" 5 6 . "github.com/smartystreets/goconvey/convey" 7 8 apiErr "zotregistry.io/zot/pkg/api/errors" 9 ) 10 11 func TestUnknownCodeError(t *testing.T) { 12 Convey("Retrieve a new error with unknown code", t, func() { 13 So(func() { _ = apiErr.NewError(123456789) }, ShouldPanic) 14 }) 15 }