From b7ae00ab52529024dbe8383573d5980791563c8c Mon Sep 17 00:00:00 2001 From: Hein Date: Fri, 2 Oct 2026 23:35:56 +0200 Subject: [PATCH] fix(test): simplify parameter list in identity column builder --- pkg/writers/bun/identity_column_test.go | 2 +- pkg/writers/gorm/identity_column_test.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg/writers/bun/identity_column_test.go b/pkg/writers/bun/identity_column_test.go index 67bbb81..281cb40 100644 --- a/pkg/writers/bun/identity_column_test.go +++ b/pkg/writers/bun/identity_column_test.go @@ -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 diff --git a/pkg/writers/gorm/identity_column_test.go b/pkg/writers/gorm/identity_column_test.go index f8f4ee8..e987718 100644 --- a/pkg/writers/gorm/identity_column_test.go +++ b/pkg/writers/gorm/identity_column_test.go @@ -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