mirror of
https://gitee.com/johng/gf
synced 2026-07-04 13:02:36 +08:00
v2 -> v3
This commit is contained in:
@ -12,10 +12,10 @@ import (
|
||||
|
||||
func Test_getPackageFromCallerFunction(t *testing.T) {
|
||||
dataMap := map[string]string{
|
||||
"github.com/gogf/gf/v2/test/a": "github.com/gogf/gf/v2/test/a",
|
||||
"github.com/gogf/gf/v2/test/a.C": "github.com/gogf/gf/v2/test/a",
|
||||
"github.com/gogf/gf/v2/test/aa.C": "github.com/gogf/gf/v2/test/aa",
|
||||
"github.com/gogf/gf/v2/test/gtest.C": "github.com/gogf/gf/v2/test/gtest",
|
||||
"github.com/gogf/gf/v3/test/a": "github.com/gogf/gf/v3/test/a",
|
||||
"github.com/gogf/gf/v3/test/a.C": "github.com/gogf/gf/v3/test/a",
|
||||
"github.com/gogf/gf/v3/test/aa.C": "github.com/gogf/gf/v3/test/aa",
|
||||
"github.com/gogf/gf/v3/test/gtest.C": "github.com/gogf/gf/v3/test/gtest",
|
||||
}
|
||||
for functionName, packageName := range dataMap {
|
||||
if result := getPackageFromCallerFunction(functionName); result != packageName {
|
||||
|
||||
Reference in New Issue
Block a user