Test that the help's examples read no data and list the exit codes, a data path that is no directory says so in one shape, a choice suggests a record of one, a JSON syntax error names its line and column, and FakeStruct says no data is loaded

This commit is contained in:
2026-10-11 23:27:33 +02:00
committed by Lillem4n
parent 780586ad68
commit 1a7656d076
6 changed files with 44 additions and 12 deletions
+1 -1
View File
@@ -74,7 +74,7 @@ func TestRecordErrors(t *testing.T) {
want string
}{
{"bare", "has no fields, so no columns"},
{"pick", "names a choice"},
{"pick", `names a choice, not a template; a record is a template whose fields are its columns; render it as a column of one: {"format":"","pick":"{/pick}"}`},
{"group", "names a folder"},
{"nope", "no entry"},
} {