fix(test): simplify parameter list in identity column builder

This commit is contained in:
2026-10-02 23:35:56 +02:00
parent 8f8664357e
commit b7ae00ab52
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -10,7 +10,7 @@ import (
func TestBuildBunTag_IdentityColumn(t *testing.T) {
mapper := NewTypeMapper("", "")
build := func(pk bool, identity bool, generation string) *models.Column {
build := func(pk, identity bool, generation string) *models.Column {
col := models.InitColumn("id", "users", "public")
col.Type = "bigint"
col.IsPrimaryKey = pk
+1 -1
View File
@@ -10,7 +10,7 @@ import (
func TestBuildGormTag_IdentityColumn(t *testing.T) {
mapper := NewTypeMapper("")
build := func(pk bool, identity bool, generation string) *models.Column {
build := func(pk, identity bool, generation string) *models.Column {
col := models.InitColumn("id", "users", "public")
col.Type = "bigint"
col.IsPrimaryKey = pk