add test for no rows to db.query

This commit is contained in:
Joel Wetzell
2026-03-22 21:30:09 -05:00
parent 9646c3f2d3
commit 97742d7e59

View File

@@ -88,6 +88,15 @@ func TestGoodDbQuery(t *testing.T) {
{"id": int64(2), "value": "test-2"},
},
},
{
name: "no rows",
params: map[string]any{
"module": "test",
"query": "select * from test where id = -1;",
},
payload: "",
expected: nil,
},
}
for _, test := range tests {
t.Run(test.name, func(t *testing.T) {