fix issue in missing import for package gcode

This commit is contained in:
John Guo 2021-08-24 21:31:15 +08:00
parent 7b47fe96dd
commit 66b8b591df
4 changed files with 5 additions and 0 deletions

View File

@ -11,6 +11,7 @@ import (
"bytes"
"crypto/cipher"
"crypto/des"
"github.com/gogf/gf/errors/gcode"
"github.com/gogf/gf/errors/gerror"
)

View File

@ -7,6 +7,7 @@
package gcron
import (
"github.com/gogf/gf/errors/gcode"
"github.com/gogf/gf/errors/gerror"
"reflect"
"runtime"

View File

@ -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"

View File

@ -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)