20 lines
372 B
Go
20 lines
372 B
Go
package application_test
|
|
|
|
import (
|
|
"reflect"
|
|
"testing"
|
|
|
|
"122.51.31.227/go-course/go18/devcloud/mpaas/apps/application"
|
|
)
|
|
|
|
func TestXxx(t *testing.T) {
|
|
app := &application.Application{}
|
|
tt := reflect.TypeOf(app)
|
|
// If app is a pointer, get the element type
|
|
if tt.Kind() == reflect.Ptr {
|
|
tt = tt.Elem()
|
|
}
|
|
fnName := tt.PkgPath() + "." + tt.Name()
|
|
t.Log(fnName)
|
|
}
|