From: Sebastian Harl Date: Mon, 2 Sep 2013 16:28:22 +0000 (+0200) Subject: t/utils/dbi_test: Added mock queries covering various corner cases. X-Git-Tag: sysdb-0.1.0~361 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=3130a4553846824f6c117f70b4f0fac34b217c6e;p=sysdb.git t/utils/dbi_test: Added mock queries covering various corner cases. --- diff --git a/t/utils/dbi_test.c b/t/utils/dbi_test.c index 2fb739c..9f4fb47 100644 --- a/t/utils/dbi_test.c +++ b/t/utils/dbi_test.c @@ -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;