diff --git a/crypto/gdes/gdes.go b/crypto/gdes/gdes.go index 00d030e75..8b00e1a7c 100644 --- a/crypto/gdes/gdes.go +++ b/crypto/gdes/gdes.go @@ -11,6 +11,7 @@ import ( "bytes" "crypto/cipher" "crypto/des" + "github.com/gogf/gf/errors/gcode" "github.com/gogf/gf/errors/gerror" ) diff --git a/os/gcron/gcron_entry.go b/os/gcron/gcron_entry.go index 60aa64931..3f3b90d8f 100644 --- a/os/gcron/gcron_entry.go +++ b/os/gcron/gcron_entry.go @@ -7,6 +7,7 @@ package gcron import ( + "github.com/gogf/gf/errors/gcode" "github.com/gogf/gf/errors/gerror" "reflect" "runtime" diff --git a/os/gcron/gcron_schedule.go b/os/gcron/gcron_schedule.go index 0b92fec15..7ff33d03e 100644 --- a/os/gcron/gcron_schedule.go +++ b/os/gcron/gcron_schedule.go @@ -7,6 +7,7 @@ package gcron import ( + "github.com/gogf/gf/errors/gcode" "github.com/gogf/gf/errors/gerror" "github.com/gogf/gf/os/gtime" "strconv" diff --git a/util/gvalid/gvalid_z_unit_basic_all_test.go b/util/gvalid/gvalid_z_unit_basic_all_test.go index 23de12ab7..906d768fa 100755 --- a/util/gvalid/gvalid_z_unit_basic_all_test.go +++ b/util/gvalid/gvalid_z_unit_basic_all_test.go @@ -8,6 +8,7 @@ package gvalid_test import ( "context" + "github.com/gogf/gf/errors/gcode" "github.com/gogf/gf/errors/gerror" "github.com/gogf/gf/os/gtime" "testing" @@ -1021,6 +1022,7 @@ func Test_Code(t *testing.T) { t.AssertNE(err, nil) t.Assert(gerror.Code(err), gcode.CodeValidationFailed) }) + gtest.C(t, func(t *gtest.T) { err := g.Validator().Rules("none-exist-rule").CheckValue("") t.AssertNE(err, nil)