fix unit test cases for ghttp/gres

This commit is contained in:
John
2019-09-04 19:23:19 +08:00
parent 16103c43eb
commit e4d34abd7e
8 changed files with 36 additions and 15 deletions

9
os/gres/data/data.go Normal file

File diff suppressed because one or more lines are too long

View File

@ -30,8 +30,8 @@ func Test_Pack(t *testing.T) {
func Test_PackMulti(t *testing.T) {
gtest.Case(t, func() {
srcPath := gdebug.CallerDirectory() + "/testdata/files"
goFilePath := gdebug.CallerDirectory() + "/testdata/testdata.go"
pkgName := "testdata"
goFilePath := gdebug.CallerDirectory() + "/testdata/data/data.go"
pkgName := "data"
array, err := gfile.ScanDir(srcPath, "*", false)
gtest.Assert(err, nil)
err = gres.PackToGoFile(strings.Join(array, ","), goFilePath, pkgName)

View File

@ -13,7 +13,7 @@ import (
"github.com/gogf/gf/test/gtest"
"github.com/gogf/gf/os/gres"
_ "github.com/gogf/gf/os/gres/testdata"
_ "github.com/gogf/gf/os/gres/testdata/data"
)
func Test_Basic(t *testing.T) {

9
os/gres/testdata/data/data.go vendored Normal file

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long