forked from all_user/stat_center
Initial commit
This commit is contained in:
@@ -0,0 +1,20 @@
|
||||
package statutils
|
||||
|
||||
import (
|
||||
"testing"
|
||||
)
|
||||
|
||||
func AAA() error {
|
||||
return nil
|
||||
}
|
||||
|
||||
func TTT(fn func() error) string {
|
||||
return GetFuncName(fn)
|
||||
}
|
||||
|
||||
func TestGetFuncName(t *testing.T) {
|
||||
|
||||
s := TTT(AAA)
|
||||
t.Log("函数名:" + s)
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user