From 0013b8423ad76541b2425f315ccdce89b7b68dea Mon Sep 17 00:00:00 2001 From: Nathan Villaescusa Date: Sun, 21 Apr 2024 17:19:24 -0700 Subject: [PATCH] Rename --- clients/snowflake/util_test.go | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/clients/snowflake/util_test.go b/clients/snowflake/util_test.go index e2c66f4ad..24b73949f 100644 --- a/clients/snowflake/util_test.go +++ b/clients/snowflake/util_test.go @@ -14,35 +14,35 @@ func TestAddPrefixToTableName(t *testing.T) { const prefix = "%" type _testCase struct { name string - fqTableName TableIdentifier + tableID TableIdentifier expectedFqTableName string } testCases := []_testCase{ { name: "happy path", - fqTableName: NewTableIdentifier("database", "schema", "tableName", true), + tableID: NewTableIdentifier("database", "schema", "tableName", true), expectedFqTableName: "database.schema.%tableName", }, { name: "tableName only", - fqTableName: NewTableIdentifier("", "", "orders", true), + tableID: NewTableIdentifier("", "", "orders", true), expectedFqTableName: "..%orders", }, { name: "schema and tableName only", - fqTableName: NewTableIdentifier("", "public", "orders", true), + tableID: NewTableIdentifier("", "public", "orders", true), expectedFqTableName: ".public.%orders", }, { name: "db and tableName only", - fqTableName: NewTableIdentifier("db", "", "tableName", true), + tableID: NewTableIdentifier("db", "", "tableName", true), expectedFqTableName: "db..%tableName", }, } for _, testCase := range testCases { - assert.Equal(t, addPrefixToTableName(testCase.fqTableName, prefix), testCase.expectedFqTableName, testCase.name) + assert.Equal(t, addPrefixToTableName(testCase.tableID, prefix), testCase.expectedFqTableName, testCase.name) } }