mirror of
https://gitee.com/johng/gf.git
synced 2024-12-01 19:57:40 +08:00
fix issue in missing import for package gcode
This commit is contained in:
parent
7b47fe96dd
commit
66b8b591df
@ -11,6 +11,7 @@ import (
|
||||
"bytes"
|
||||
"crypto/cipher"
|
||||
"crypto/des"
|
||||
"github.com/gogf/gf/errors/gcode"
|
||||
"github.com/gogf/gf/errors/gerror"
|
||||
)
|
||||
|
||||
|
@ -7,6 +7,7 @@
|
||||
package gcron
|
||||
|
||||
import (
|
||||
"github.com/gogf/gf/errors/gcode"
|
||||
"github.com/gogf/gf/errors/gerror"
|
||||
"reflect"
|
||||
"runtime"
|
||||
|
@ -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"
|
||||
|
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user