(t *testing.T)
| 9 | ) |
| 10 | |
| 11 | func TestOpen(t *testing.T) { |
| 12 | dsn := "gorm:gorm@tcp(localhost:9910)/gorm?loc=Asia%2FHongKong" // invalid loc |
| 13 | _, err := gorm.Open(mysql.Open(dsn), &gorm.Config{}) |
| 14 | if err == nil { |
| 15 | t.Fatalf("should returns error but got nil") |
| 16 | } |
| 17 | } |
| 18 | |
| 19 | func TestReturningWithNullToZeroValues(t *testing.T) { |
| 20 | dialect := DB.Dialector.Name() |