mirror of
https://github.com/project-zot/zot.git
synced 2024-12-23 22:27:35 -05:00
247f6dcd3f
Signed-off-by: Alexei Dodon <adodon@cisco.com>
15 lines
307 B
Go
15 lines
307 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) }, ShouldPanic)
|
|
})
|
|
}
|