Tests: overlapping reference columns rejected, every CSV shape round-tripped, an empty column still a row, and an empty --table refused

This commit is contained in:
2026-09-04 09:08:23 +02:00
parent 83e11074ac
commit be5dfdf977
2 changed files with 47 additions and 8 deletions
+1
View File
@@ -535,6 +535,7 @@ func TestRunRecordMisuse(t *testing.T) {
{[]string{"--format", "json", "--separator", ",", "users"}, "--separator joins text values"},
{[]string{"--table", "t", "users"}, "--table names the INSERT target"},
{[]string{"--format", "json", "--table", "t", "users"}, "--table names the INSERT target"},
{[]string{"--format", "sql", "--table", "", "users"}, "--table names the INSERT target"},
} {
code, out, errb := runOut(c.args...)
if code != 2 || out != "" || !strings.Contains(errb, c.want) {