mirror of
https://gitee.com/johng/gf
synced 2026-06-07 10:22:11 +08:00
fix unit test cases for ghttp/gres
This commit is contained in:
9
os/gres/data/data.go
Normal file
9
os/gres/data/data.go
Normal file
File diff suppressed because one or more lines are too long
@ -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)
|
||||
|
||||
@ -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
9
os/gres/testdata/data/data.go
vendored
Normal file
File diff suppressed because one or more lines are too long
2
os/gres/testdata/testdata.go
vendored
2
os/gres/testdata/testdata.go
vendored
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user