harbor/utils/registry/error/error_test.go
2016-08-11 17:58:17 +08:00

18 lines
253 B
Go

package error
import (
"testing"
)
func TestError(t *testing.T) {
err := &Error{
StatusCode: 404,
Detail: "not found",
}
if err.Error() != "404 not found" {
t.Fatalf("unexpected content: %s != %s",
err.Error(), "404 not found")
}
}