mirror of
https://github.com/project-zot/zot.git
synced 2024-12-16 21:56:37 -05:00
38b00e3507
Signed-off-by: Andrei Aaron <andaaron@cisco.com>
15 lines
292 B
Go
15 lines
292 B
Go
package api_test
|
|
|
|
import (
|
|
"testing"
|
|
|
|
. "github.com/smartystreets/goconvey/convey"
|
|
|
|
"zotregistry.io/zot/pkg/api"
|
|
)
|
|
|
|
func TestUnknownCodeError(t *testing.T) {
|
|
Convey("Retrieve a new error with unknown code", t, func() {
|
|
So(func() { _ = api.NewError(123456789, nil) }, ShouldPanic)
|
|
})
|
|
}
|