1
0
mirror of https://github.com/astaxie/beego.git synced 2024-11-18 11:30:55 +00:00
Beego/utils/caller_test.go

15 lines
226 B
Go
Raw Normal View History

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