github.com/go-board/x-go@v0.1.2-0.20220610024734-db1323f6cb15/xruntime/rt_test.go (about) 1 package xruntime 2 3 import ( 4 "testing" 5 ) 6 7 func TestCallerName(t *testing.T) { 8 name := CallerName() 9 t.Log(name) 10 } 11 12 func TestCaller(t *testing.T) { 13 t.Log(Caller()) 14 } 15 16 func TestBuildPath(t *testing.T) { 17 t.Log(BuildPath()) 18 } 19 20 func TestStack(t *testing.T) { 21 t.Logf("%s\n", Stack(false)) 22 }