mirror of
https://github.com/project-zot/zot.git
synced 2024-12-23 22:27:35 -05:00
96226af869
Signed-off-by: Ramkumar Chinchani <rchincha@cisco.com>
14 lines
291 B
Go
14 lines
291 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)
|
|
})
|
|
}
|