fix(test): simplify parameter list in identity column builder
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user