mirror of
https://gitee.com/johng/gf
synced 2026-06-06 02:25:47 +08:00
rename gdebug.TestData* -> gtest.Data*; add UT case for http server
This commit is contained in:
@ -9,7 +9,6 @@ package gbase64_test
|
||||
import (
|
||||
"testing"
|
||||
|
||||
"github.com/gogf/gf/v2/debug/gdebug"
|
||||
"github.com/gogf/gf/v2/encoding/gbase64"
|
||||
"github.com/gogf/gf/v2/test/gtest"
|
||||
)
|
||||
@ -66,7 +65,7 @@ func Test_Basic(t *testing.T) {
|
||||
}
|
||||
|
||||
func Test_File(t *testing.T) {
|
||||
path := gdebug.TestDataPath("test")
|
||||
path := gtest.DataPath("test")
|
||||
expect := "dGVzdA=="
|
||||
gtest.C(t, func(t *gtest.T) {
|
||||
b, err := gbase64.EncodeFile(path)
|
||||
|
||||
Reference in New Issue
Block a user