1
0
mirror of https://github.com/astaxie/beego.git synced 2024-06-26 04:14:14 +00:00
Beego/utils/caller_test.go
2013-12-11 22:18:45 +08:00

15 lines
226 B
Go

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")
}
}