A website for my game dev stuff that supports chat, etc.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
zedshaw-games/tests/admin_test.go

23 lines
481 B

package tests
import (
"testing"
"fmt"
"reflect"
"zedshaw.games/webapp/data"
// _ "github.com/mattn/go-sqlite3"
// "github.com/jmoiron/sqlx"
)
func TestAdminIndexPage(t *testing.T) {
models := data.Models()
for table, model := range models {
fmt.Printf("\n------\ntable=%s; model=%s\n", table, model.Name())
fields := reflect.VisibleFields(model)
for _, field := range fields {
fmt.Println("\t", field.Name, field.Type, field.Tag)
}
}
}