Feature/error code 迁移到各自的包下 (#67)

This commit is contained in:
libin
2024-04-03 11:00:09 +08:00
committed by GitHub
parent b5654c2b4b
commit 5a16cb3559
25 changed files with 124 additions and 109 deletions

View File

@@ -1,7 +1,6 @@
package jsonUtil
import (
"github.com/jefferyjob/go-easy-utils/v2"
"testing"
)
@@ -125,7 +124,7 @@ func TestToUint64(t *testing.T) {
{
name: "Test invalid string",
input: "not a number",
wantError: go_easy_utils.ErrSyntax,
wantError: ErrSyntax,
},
{
name: "Test nil pointer",
@@ -146,7 +145,7 @@ func TestToUint64(t *testing.T) {
{
name: "Test invalid type",
input: make(chan int),
wantError: go_easy_utils.ErrType,
wantError: ErrType,
},
}