Files
zot/pkg/api/errors/errors_test.go
T

16 lines
312 B
Go

package errors_test
import (
"testing"
. "github.com/smartystreets/goconvey/convey"
apiErr "zotregistry.io/zot/pkg/api/errors"
)
func TestUnknownCodeError(t *testing.T) {
Convey("Retrieve a new error with unknown code", t, func() {
So(func() { _ = apiErr.NewError(123456789, nil) }, ShouldPanic)
})
}