1
0
mirror of https://github.com/astaxie/beego.git synced 2025-07-15 04:41:01 +00:00

add some useful func

This commit is contained in:
skyblue
2013-12-11 22:18:45 +08:00
parent 52ebaece73
commit a43a1be0b4
4 changed files with 29 additions and 5 deletions

14
utils/caller_test.go Normal file
View File

@ -0,0 +1,14 @@
package utils
import (
"strings"
"testing"
)
func TestGetFuncName(t *testing.T) {
name := GetFuncName(TestGetFuncName)
t.Log(name)
if !strings.HasSuffix(name, ".TestGetFuncName") {
t.Error("get func name error")
}
}