1
0
mirror of https://github.com/astaxie/beego.git synced 2025-01-10 14:57:11 +00:00
Beego/utils/caller_test.go

15 lines
226 B
Go
Raw Permalink Normal View History

2013-12-11 22:18:45 +08:00
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")
}
}