Code

t/utils/dbi_test: Added mock queries covering various corner cases.
authorSebastian Harl <sh@tokkee.org>
Mon, 2 Sep 2013 16:28:22 +0000 (18:28 +0200)
committerSebastian Harl <sh@tokkee.org>
Mon, 2 Sep 2013 16:28:22 +0000 (18:28 +0200)
t/utils/dbi_test.c

index 2fb739cca9338f11b6f9359fac5a5074d435baa5..9f4fb47a22716220d162bf52c5dfc9210eb7baf7 100644 (file)
@@ -85,7 +85,9 @@ static mock_data_t golden_data[][1] = {
 /* query definitions */
 static mock_query_t mock_queries[] = {
        { "mockquery0", 5, 1, 0, NULL, NULL },
-       { "mockquery1", 5, 1, 1, rows1[0].field_types, rows1[0].field_names },
+       { "mockquery1", 0, 0, 1, rows1[0].field_types, rows1[0].field_names },
+       { "mockquery2", 1, 1, 1, rows1[0].field_types, rows1[0].field_names },
+       { "mockquery3", 5, 1, 1, rows1[0].field_types, rows1[0].field_names },
 };
 
 static mock_query_t *current_query = NULL;