1
0
mirror of https://github.com/astaxie/beego.git synced 2024-11-29 13:31:28 +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")
}
}