style: reformat test tables

This commit is contained in:
2026-10-03 21:41:54 +02:00
parent bed80b046b
commit b49859537b
12 changed files with 146 additions and 59 deletions
+13 -5
View File
@@ -219,11 +219,19 @@ func TestFormatDefaultValue(t *testing.T) {
in any
want string
}{
{"now()", "sql`now()`"}, {"CURRENT_TIMESTAMP", "sql`now()`"},
{"gen_random_uuid()", "sql`gen_random_uuid()`"}, {"uuid_generate_v4()", "sql`gen_random_uuid()`"},
{"42", "42"}, {"-1.5", "-1.5"}, {"it's", `'it\'s'`}, {"plain", "'plain'"},
{true, "true"}, {false, "false"},
{7, "7"}, {int64(8), "8"}, {2.5, "2.5"},
{"now()", "sql`now()`"},
{"CURRENT_TIMESTAMP", "sql`now()`"},
{"gen_random_uuid()", "sql`gen_random_uuid()`"},
{"uuid_generate_v4()", "sql`gen_random_uuid()`"},
{"42", "42"},
{"-1.5", "-1.5"},
{"it's", `'it\'s'`},
{"plain", "'plain'"},
{true, "true"},
{false, "false"},
{7, "7"},
{int64(8), "8"},
{2.5, "2.5"},
}
for _, tt := range tests {
if got := tm.formatDefaultValue(tt.in); got != tt.want {