From 0d361c88637ad0e947c284955eed3c7e12464224 Mon Sep 17 00:00:00 2001 From: Josh Kaplinsky <37640086+joshkaplinsky@users.noreply.github.com> Date: Mon, 14 Apr 2025 08:36:13 -0400 Subject: [PATCH] chore: remove unit tests --- generator/template/model_template_test.go | 32 ++----------------- .../template/sql_builder_template_test.go | 32 ++----------------- 2 files changed, 4 insertions(+), 60 deletions(-) diff --git a/generator/template/model_template_test.go b/generator/template/model_template_test.go index 0fce487..a7bbe28 100644 --- a/generator/template/model_template_test.go +++ b/generator/template/model_template_test.go @@ -1,11 +1,9 @@ package template import ( - "testing" - - "github.com/stretchr/testify/require" - "github.com/go-jet/jet/v2/generator/metadata" + "github.com/stretchr/testify/require" + "testing" ) func Test_TableModelField(t *testing.T) { @@ -45,29 +43,3 @@ func Test_TableModelField(t *testing.T) { Tags: nil, }) } - -func Test_Model_ShouldSkip(t *testing.T) { - tests := []struct { - name string - initial Model - skip bool - }{ - { - name: "True", - initial: Model{Skip: false}, - skip: true, - }, - { - name: "False", - initial: Model{Skip: true}, - skip: false, - }, - } - - for _, tt := range tests { - t.Run(tt.name, func(t *testing.T) { - updatedModel := tt.initial.ShouldSkip(tt.skip) - require.Equal(t, tt.skip, updatedModel.Skip) - }) - } -} diff --git a/generator/template/sql_builder_template_test.go b/generator/template/sql_builder_template_test.go index 9d6dcdb..b980a60 100644 --- a/generator/template/sql_builder_template_test.go +++ b/generator/template/sql_builder_template_test.go @@ -1,11 +1,9 @@ package template import ( - "testing" - - "github.com/stretchr/testify/require" - "github.com/go-jet/jet/v2/generator/metadata" + "github.com/stretchr/testify/require" + "testing" ) func TestToGoEnumValueIdentifier(t *testing.T) { @@ -37,29 +35,3 @@ func TestColumnRenameReserved(t *testing.T) { }) } } - -func Test_SQLBuilder_ShouldSkip(t *testing.T) { - tests := []struct { - name string - initial SQLBuilder - skip bool - }{ - { - name: "True", - initial: SQLBuilder{Skip: false}, - skip: true, - }, - { - name: "False", - initial: SQLBuilder{Skip: true}, - skip: false, - }, - } - - for _, tt := range tests { - t.Run(tt.name, func(t *testing.T) { - updatedBuilder := tt.initial.ShouldSkip(tt.skip) - require.Equal(t, tt.skip, updatedBuilder.Skip) - }) - } -}