chore: gofumpt style

This commit is contained in:
a631807682 2023-02-07 12:18:41 +08:00
parent 9d3e9028e0
commit eb40696eab
No known key found for this signature in database
GPG Key ID: 137D1D75522168AB

View File

@ -1376,6 +1376,7 @@ func TestQueryError(t *testing.T) {
var p2 interface{}
err = DB.Table("ps").Clauses(clause.Eq{Column: clause.Column{
Table: clause.CurrentTable, Name: clause.PrimaryKey}, Value: 1}).Scan(&p2).Error
Table: clause.CurrentTable, Name: clause.PrimaryKey,
}, Value: 1}).Scan(&p2).Error
AssertEqual(t, err, gorm.ErrModelValueRequired)
}