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.
24 lines
481 B
24 lines
481 B
2 months ago
|
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)
|
||
|
}
|
||
|
}
|
||
|
}
|