- Sort Score
- Result 10 results
- Languages All
Results 1 - 1 of 1 for TestMapColumns (0.11 sec)
-
tests/query_test.go
if !regexp.MustCompile(userQuery).MatchString(result.Statement.SQL.String()) { t.Fatalf("SQL must include table name and selected fields, got %v", result.Statement.SQL.String()) } } func TestMapColumns(t *testing.T) { user := User{Name: "MapColumnsUser", Age: 12} DB.Save(&user) type result struct { Name string Nickname string Age uint } var res result
Registered: Sun Nov 03 09:35:10 UTC 2024 - Last Modified: Mon Jun 24 09:42:59 UTC 2024 - 50.4K bytes - Viewed (0)