|
GnuCash 2.4.99
|
00001 /******************************************************************** 00002 * utest-gnc-backend-sql.c: * 00003 * GLib g_test test suite for gnc-backend-sql.c. * 00004 * Copyright 2012 John Ralls <jralls@ceridwen.us> * 00005 * * 00006 * This program is free software; you can redistribute it and/or * 00007 * modify it under the terms of the GNU General Public License as * 00008 * published by the Free Software Foundation; either version 2 of * 00009 * the License, or (at your option) any later version. * 00010 * * 00011 * This program is distributed in the hope that it will be useful, * 00012 * but WITHOUT ANY WARRANTY; without even the implied warranty of * 00013 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * 00014 * GNU General Public License for more details. * 00015 * * 00016 * You should have received a copy of the GNU General Public License* 00017 * along with this program; if not, contact: * 00018 * * 00019 * Free Software Foundation Voice: +1-617-542-5942 * 00020 * 51 Franklin Street, Fifth Floor Fax: +1-617-542-2652 * 00021 * Boston, MA 02110-1301, USA gnu@gnu.org * 00022 ********************************************************************/ 00023 #include "config.h" 00024 #include <string.h> 00025 #include <glib.h> 00026 #include <unittest-support.h> 00027 /* Add specific headers for this class */ 00028 #include "../gnc-backend-sql.h" 00029 00030 static const gchar *suitename = "/backend/sql/gnc-backend-sql"; 00031 void test_suite_gnc_backend_sql (void); 00032 00033 /* gnc_sql_init 00034 void 00035 gnc_sql_init (GncSqlBackend* be)// C: 1 */ 00036 /* static void 00037 test_gnc_sql_init (Fixture *fixture, gconstpointer pData) 00038 { 00039 }*/ 00040 /* create_tables_cb 00041 static void 00042 create_tables_cb (const gchar* type, gpointer data_p, gpointer be_p)// 2 00043 */ 00044 /* static void 00045 test_create_tables_cb (Fixture *fixture, gconstpointer pData) 00046 { 00047 }*/ 00048 /* gnc_sql_set_load_order 00049 void 00050 gnc_sql_set_load_order (const gchar** load_order)// 2 00051 */ 00052 /* static void 00053 test_gnc_sql_set_load_order (Fixture *fixture, gconstpointer pData) 00054 { 00055 }*/ 00056 /* initial_load_cb 00057 static void 00058 initial_load_cb (const gchar* type, gpointer data_p, gpointer be_p)// 2 00059 */ 00060 /* static void 00061 test_initial_load_cb (Fixture *fixture, gconstpointer pData) 00062 { 00063 }*/ 00064 /* gnc_sql_load 00065 void 00066 gnc_sql_load (GncSqlBackend* be, QofBook *book, QofBackendLoadType loadType)// C: 1 */ 00067 /* static void 00068 test_gnc_sql_load (Fixture *fixture, gconstpointer pData) 00069 { 00070 }*/ 00071 /* write_account_tree 00072 static gboolean 00073 write_account_tree (GncSqlBackend* be, Account* root)// 3 00074 */ 00075 /* static void 00076 test_write_account_tree (Fixture *fixture, gconstpointer pData) 00077 { 00078 }*/ 00079 /* write_accounts 00080 static gboolean 00081 write_accounts (GncSqlBackend* be)// 2 00082 */ 00083 /* static void 00084 test_write_accounts (Fixture *fixture, gconstpointer pData) 00085 { 00086 }*/ 00087 /* write_tx 00088 static int 00089 write_tx (Transaction* tx, gpointer data)// 3 00090 */ 00091 /* static void 00092 test_write_tx (Fixture *fixture, gconstpointer pData) 00093 { 00094 }*/ 00095 /* write_transactions 00096 static gboolean 00097 write_transactions (GncSqlBackend* be)// 2 00098 */ 00099 /* static void 00100 test_write_transactions (Fixture *fixture, gconstpointer pData) 00101 { 00102 }*/ 00103 /* write_template_transactions 00104 static gboolean 00105 write_template_transactions (GncSqlBackend* be)// 2 00106 */ 00107 /* static void 00108 test_write_template_transactions (Fixture *fixture, gconstpointer pData) 00109 { 00110 }*/ 00111 /* write_schedXactions 00112 static gboolean 00113 write_schedXactions (GncSqlBackend* be)// 2 00114 */ 00115 /* static void 00116 test_write_schedXactions (Fixture *fixture, gconstpointer pData) 00117 { 00118 }*/ 00119 /* write_cb 00120 static void 00121 write_cb (const gchar* type, gpointer data_p, gpointer be_p)// 2 00122 */ 00123 /* static void 00124 test_write_cb (Fixture *fixture, gconstpointer pData) 00125 { 00126 }*/ 00127 /* update_progress 00128 static void 00129 update_progress (GncSqlBackend* be)// 17 00130 */ 00131 /* static void 00132 test_update_progress (Fixture *fixture, gconstpointer pData) 00133 { 00134 }*/ 00135 /* finish_progress 00136 static void 00137 finish_progress (GncSqlBackend* be)// 4 00138 */ 00139 /* static void 00140 test_finish_progress (Fixture *fixture, gconstpointer pData) 00141 { 00142 }*/ 00143 /* gnc_sql_sync_all 00144 void 00145 gnc_sql_sync_all (GncSqlBackend* be, QofBook *book)// C: 2 in 1 */ 00146 /* static void 00147 test_gnc_sql_sync_all (Fixture *fixture, gconstpointer pData) 00148 { 00149 }*/ 00150 /* gnc_sql_begin_edit 00151 void 00152 gnc_sql_begin_edit (GncSqlBackend *be, QofInstance *inst)// C: 1 */ 00153 /* static void 00154 test_gnc_sql_begin_edit (Fixture *fixture, gconstpointer pData) 00155 { 00156 }*/ 00157 /* gnc_sql_rollback_edit 00158 void 00159 gnc_sql_rollback_edit (GncSqlBackend *be, QofInstance *inst)// C: 1 */ 00160 /* static void 00161 test_gnc_sql_rollback_edit (Fixture *fixture, gconstpointer pData) 00162 { 00163 }*/ 00164 /* commit_cb 00165 static void 00166 commit_cb (const gchar* type, gpointer data_p, gpointer be_data_p)// 2 00167 */ 00168 /* static void 00169 test_commit_cb (Fixture *fixture, gconstpointer pData) 00170 { 00171 }*/ 00172 /* gnc_sql_commit_edit 00173 void 00174 gnc_sql_commit_edit (GncSqlBackend *be, QofInstance *inst)// C: 1 */ 00175 static void 00176 test_dirty_cb (QofBook* book, gboolean dirty, gpointer data) 00177 { 00178 g_assert (data != NULL); 00179 if (dirty) 00180 ++*(guint*)data; 00181 else if (*(guint*)data) 00182 --*(guint*)data; 00183 } 00184 00185 static gboolean 00186 fake_connection_function (GncSqlConnection *conn) 00187 { 00188 return TRUE; 00189 } 00190 00191 static void 00192 test_gnc_sql_commit_edit (void) 00193 { 00194 GncSqlBackend be; 00195 QofInstance *inst; 00196 guint dirty_called = 0; 00197 GncSqlConnection conn; 00198 gchar *msg1 = "[gnc_sql_commit_edit()] gnc_sql_commit_edit(): Unknown object type 'null'\n"; 00199 gchar *msg2 = "[gnc_sql_commit_edit()] gnc_sql_commit_edit(): Unknown object type 'Book'\n"; 00200 guint loglevel = G_LOG_LEVEL_CRITICAL | G_LOG_FLAG_FATAL; 00201 gchar *logdomain = "gnc.backend.sql"; 00202 TestErrorStruct check1 = { loglevel, logdomain, msg1, 0 }; 00203 TestErrorStruct check2 = { loglevel, logdomain, msg2, 0 }; 00204 guint hdlr1; 00205 00206 test_add_error (&check1); 00207 test_add_error (&check2); 00208 hdlr1 = g_log_set_handler (logdomain, loglevel, 00209 (GLogFunc)test_list_handler, NULL); 00210 g_test_log_set_fatal_handler ((GTestLogFatalFunc)test_list_handler, NULL); 00211 00212 qof_object_initialize (); 00213 be.book = qof_book_new (); 00214 be.conn = &conn; 00215 conn.beginTransaction = fake_connection_function; 00216 conn.rollbackTransaction = fake_connection_function; 00217 conn.commitTransaction = fake_connection_function; 00218 inst = g_object_new (QOF_TYPE_INSTANCE, NULL); 00219 qof_instance_init_data (inst, QOF_ID_NULL, be.book); 00220 be.loading = FALSE; 00221 qof_book_set_dirty_cb (be.book, test_dirty_cb, &dirty_called); 00222 qof_instance_set_dirty_flag (inst, TRUE); 00223 qof_book_mark_session_dirty (be.book); 00224 00225 g_assert (qof_instance_get_dirty_flag (inst)); 00226 g_assert (qof_book_session_not_saved (be.book)); 00227 g_assert_cmpint (dirty_called, == , 1); 00228 gnc_sql_commit_edit (&be, inst); 00229 g_assert (!qof_instance_get_dirty_flag (inst)); 00230 g_assert (!qof_book_session_not_saved (be.book)); 00231 g_assert_cmpint (dirty_called, == , 0); 00232 g_assert_cmpint (check1.hits, ==, 2); 00233 g_assert_cmpint (check2.hits, ==, 0); 00234 00235 qof_book_mark_session_dirty (be.book); 00236 00237 g_assert (!qof_instance_get_dirty_flag (QOF_INSTANCE (be.book))); 00238 g_assert (qof_book_session_not_saved (be.book)); 00239 g_assert_cmpint (dirty_called, == , 1); 00240 gnc_sql_commit_edit (&be, QOF_INSTANCE (be.book)); 00241 g_assert (!qof_instance_get_dirty_flag (QOF_INSTANCE (be.book))); 00242 g_assert (qof_book_session_not_saved (be.book)); 00243 g_assert_cmpint (dirty_called, == , 1); 00244 g_assert_cmpint (check1.hits, ==, 2); 00245 g_assert_cmpint (check2.hits, ==, 0); 00246 00247 qof_instance_set_dirty_flag (QOF_INSTANCE (be.book), TRUE); 00248 00249 g_assert (qof_instance_get_dirty_flag (QOF_INSTANCE (be.book))); 00250 g_assert (qof_book_session_not_saved (be.book)); 00251 g_assert_cmpint (dirty_called, == , 1); 00252 gnc_sql_commit_edit (&be, QOF_INSTANCE (be.book)); 00253 g_assert (!qof_instance_get_dirty_flag (QOF_INSTANCE (be.book))); 00254 g_assert (!qof_book_session_not_saved (be.book)); 00255 g_assert_cmpint (dirty_called, == , 0); 00256 g_assert_cmpint (check1.hits, ==, 2); 00257 g_assert_cmpint (check2.hits, ==, 2); 00258 00259 g_log_remove_handler (logdomain, hdlr1); 00260 g_object_unref (inst); 00261 g_object_unref (be.book); 00262 } 00263 /* handle_and_term 00264 static void 00265 handle_and_term (QofQueryTerm* pTerm, GString* sql)// 2 00266 */ 00267 /* static void 00268 test_handle_and_term (Fixture *fixture, gconstpointer pData) 00269 { 00270 }*/ 00271 /* compile_query_cb 00272 static void 00273 compile_query_cb (const gchar* type, gpointer data_p, gpointer be_data_p)// 2 00274 */ 00275 /* static void 00276 test_compile_query_cb (Fixture *fixture, gconstpointer pData) 00277 { 00278 }*/ 00279 // Make Static 00280 /* gnc_sql_compile_query 00281 gpointer 00282 gnc_sql_compile_query (QofBackend* pBEnd, QofQuery* pQuery)// 4 00283 */ 00284 /* static void 00285 test_gnc_sql_compile_query (Fixture *fixture, gconstpointer pData) 00286 { 00287 }*/ 00288 /* convert_search_obj 00289 static const gchar* 00290 convert_search_obj (QofIdType objType)// 3 00291 */ 00292 /* static void 00293 test_convert_search_obj (Fixture *fixture, gconstpointer pData) 00294 { 00295 }*/ 00296 // Make Static 00297 /* gnc_sql_compile_query_to_sql 00298 gchar* 00299 gnc_sql_compile_query_to_sql (GncSqlBackend* be, QofQuery* query)// 3 00300 */ 00301 /* static void 00302 test_gnc_sql_compile_query_to_sql (Fixture *fixture, gconstpointer pData) 00303 { 00304 }*/ 00305 /* free_query_cb 00306 static void 00307 free_query_cb (const gchar* type, gpointer data_p, gpointer be_data_p)// 2 00308 */ 00309 /* static void 00310 test_free_query_cb (Fixture *fixture, gconstpointer pData) 00311 { 00312 }*/ 00313 // Not Used 00314 /* gnc_sql_free_query 00315 void 00316 gnc_sql_free_query (QofBackend* pBEnd, gpointer pQuery)// 1 00317 */ 00318 /* static void 00319 test_gnc_sql_free_query (Fixture *fixture, gconstpointer pData) 00320 { 00321 }*/ 00322 /* run_query_cb 00323 static void 00324 run_query_cb (const gchar* type, gpointer data_p, gpointer be_data_p)// 2 00325 */ 00326 /* static void 00327 test_run_query_cb (Fixture *fixture, gconstpointer pData) 00328 { 00329 }*/ 00330 // Not Used 00331 /* gnc_sql_run_query 00332 void 00333 gnc_sql_run_query (QofBackend* pBEnd, gpointer pQuery)// 1 00334 */ 00335 /* static void 00336 test_gnc_sql_run_query (Fixture *fixture, gconstpointer pData) 00337 { 00338 }*/ 00339 /* business_core_sql_init 00340 static void 00341 business_core_sql_init(void)// 2 00342 */ 00343 /* static void 00344 test_business_core_sql_init (Fixture *fixture, gconstpointer pData) 00345 { 00346 }*/ 00347 /* gnc_sql_init_object_handlers 00348 static void 00349 gnc_sql_init_object_handlers (void)// 3 00350 */ 00351 /* static void 00352 test_gnc_sql_init_object_handlers (Fixture *fixture, gconstpointer pData) 00353 { 00354 }*/ 00355 /* gnc_sql_get_integer_value 00356 gint64 00357 gnc_sql_get_integer_value (const GValue* value)// C: 1 */ 00358 /* static void 00359 test_gnc_sql_get_integer_value (Fixture *fixture, gconstpointer pData) 00360 { 00361 }*/ 00362 // Make Static 00363 /* get_autoinc_id 00364 get_autoinc_id()// 2 00365 */ 00366 /* static void 00367 test_get_autoinc_id (Fixture *fixture, gconstpointer pData) 00368 { 00369 }*/ 00370 /* set_autoinc_id 00371 static void 00372 set_autoinc_id()// 2 00373 */ 00374 /* static void 00375 test_set_autoinc_id (Fixture *fixture, gconstpointer pData) 00376 { 00377 }*/ 00378 /* gnc_sql_get_getter 00379 gnc_sql_get_getter (QofIdTypeConst obj_name, const GncSqlColumnTableEntry* table_row)// C: 3 in 2 */ 00380 /* static void 00381 test_gnc_sql_get_getter (Fixture *fixture, gconstpointer pData) 00382 { 00383 }*/ 00384 // Make Static 00385 /* gnc_sql_add_colname_to_list 00386 void 00387 gnc_sql_add_colname_to_list (const GncSqlColumnTableEntry* table_row, GList** pList)// 9 00388 */ 00389 /* static void 00390 test_gnc_sql_add_colname_to_list (Fixture *fixture, gconstpointer pData) 00391 { 00392 }*/ 00393 /* gnc_sql_add_subtable_colnames_to_list 00394 void 00395 gnc_sql_add_subtable_colnames_to_list (const GncSqlColumnTableEntry* table_row, const GncSqlColumnTableEntry* subtable, 00396 GList** pList)// C: 1 */ 00397 /* static void 00398 test_gnc_sql_add_subtable_colnames_to_list (Fixture *fixture, gconstpointer pData) 00399 { 00400 }*/ 00401 /* create_column_info 00402 static GncSqlColumnInfo* 00403 create_column_info (const GncSqlColumnTableEntry* table_row, GncSqlBasicColumnType type, 00404 gint size, gboolean is_unicode)// 9 00405 */ 00406 /* static void 00407 test_create_column_info (Fixture *fixture, gconstpointer pData) 00408 { 00409 }*/ 00410 /* load_string 00411 static void 00412 load_string (const GncSqlBackend* be, GncSqlRow* row, 00413 const GncSqlColumnTableEntry* table_row)// 2 00414 */ 00415 /* static void 00416 test_load_string (Fixture *fixture, gconstpointer pData) 00417 { 00418 }*/ 00419 /* add_string_col_info_to_list 00420 static void 00421 add_string_col_info_to_list (const GncSqlBackend* be, const GncSqlColumnTableEntry* table_row, 00422 GList** pList)// 2 00423 */ 00424 /* static void 00425 test_add_string_col_info_to_list (Fixture *fixture, gconstpointer pData) 00426 { 00427 }*/ 00428 /* add_gvalue_string_to_slist 00429 static void 00430 add_gvalue_string_to_slist (const GncSqlBackend* be, QofIdTypeConst obj_name, 00431 const gpointer pObject, const GncSqlColumnTableEntry* table_row, GSList** pList)// 2 00432 */ 00433 /* static void 00434 test_add_gvalue_string_to_slist (Fixture *fixture, gconstpointer pData) 00435 { 00436 }*/ 00437 /* load_int 00438 static void 00439 load_int (const GncSqlBackend* be, GncSqlRow* row,// 4 00440 */ 00441 /* static void 00442 test_load_int (Fixture *fixture, gconstpointer pData) 00443 { 00444 }*/ 00445 /* add_int_col_info_to_list 00446 static void 00447 add_int_col_info_to_list (const GncSqlBackend* be, const GncSqlColumnTableEntry* table_row,// 2 00448 */ 00449 /* static void 00450 test_add_int_col_info_to_list (Fixture *fixture, gconstpointer pData) 00451 { 00452 }*/ 00453 /* add_gvalue_int_to_slist 00454 static void 00455 add_gvalue_int_to_slist (const GncSqlBackend* be, QofIdTypeConst obj_name,// 2 00456 */ 00457 /* static void 00458 test_add_gvalue_int_to_slist (Fixture *fixture, gconstpointer pData) 00459 { 00460 }*/ 00461 /* load_boolean 00462 static void 00463 load_boolean (const GncSqlBackend* be, GncSqlRow* row,// 2 00464 */ 00465 /* static void 00466 test_load_boolean (Fixture *fixture, gconstpointer pData) 00467 { 00468 }*/ 00469 /* add_boolean_col_info_to_list 00470 static void 00471 add_boolean_col_info_to_list (const GncSqlBackend* be, const GncSqlColumnTableEntry* table_row,// 2 00472 */ 00473 /* static void 00474 test_add_boolean_col_info_to_list (Fixture *fixture, gconstpointer pData) 00475 { 00476 }*/ 00477 /* add_gvalue_boolean_to_slist 00478 static void 00479 add_gvalue_boolean_to_slist (const GncSqlBackend* be, QofIdTypeConst obj_name,// 2 00480 */ 00481 /* static void 00482 test_add_gvalue_boolean_to_slist (Fixture *fixture, gconstpointer pData) 00483 { 00484 }*/ 00485 /* load_int64 00486 static void 00487 load_int64 (const GncSqlBackend* be, GncSqlRow* row,// 2 00488 */ 00489 /* static void 00490 test_load_int64 (Fixture *fixture, gconstpointer pData) 00491 { 00492 }*/ 00493 /* add_int64_col_info_to_list 00494 static void 00495 add_int64_col_info_to_list (const GncSqlBackend* be, const GncSqlColumnTableEntry* table_row,// 2 00496 */ 00497 /* static void 00498 test_add_int64_col_info_to_list (Fixture *fixture, gconstpointer pData) 00499 { 00500 }*/ 00501 /* add_gvalue_int64_to_slist 00502 static void 00503 add_gvalue_int64_to_slist (const GncSqlBackend* be, QofIdTypeConst obj_name,// 2 00504 */ 00505 /* static void 00506 test_add_gvalue_int64_to_slist (Fixture *fixture, gconstpointer pData) 00507 { 00508 }*/ 00509 /* load_double 00510 static void 00511 load_double (const GncSqlBackend* be, GncSqlRow* row,// 2 00512 */ 00513 /* static void 00514 test_load_double (Fixture *fixture, gconstpointer pData) 00515 { 00516 }*/ 00517 /* add_double_col_info_to_list 00518 static void 00519 add_double_col_info_to_list (const GncSqlBackend* be, const GncSqlColumnTableEntry* table_row,// 2 00520 */ 00521 /* static void 00522 test_add_double_col_info_to_list (Fixture *fixture, gconstpointer pData) 00523 { 00524 }*/ 00525 /* add_gvalue_double_to_slist 00526 static void 00527 add_gvalue_double_to_slist (const GncSqlBackend* be, QofIdTypeConst obj_name,// 2 00528 */ 00529 /* static void 00530 test_add_gvalue_double_to_slist (Fixture *fixture, gconstpointer pData) 00531 { 00532 }*/ 00533 /* load_guid 00534 static void 00535 load_guid (const GncSqlBackend* be, GncSqlRow* row,// 3 00536 */ 00537 /* static void 00538 test_load_guid (Fixture *fixture, gconstpointer pData) 00539 { 00540 }*/ 00541 /* add_guid_col_info_to_list 00542 static void 00543 add_guid_col_info_to_list (const GncSqlBackend* be, const GncSqlColumnTableEntry* table_row,// 3 00544 */ 00545 /* static void 00546 test_add_guid_col_info_to_list (Fixture *fixture, gconstpointer pData) 00547 { 00548 }*/ 00549 /* add_gvalue_guid_to_slist 00550 static void 00551 add_gvalue_guid_to_slist (const GncSqlBackend* be, QofIdTypeConst obj_name,// 2 00552 */ 00553 /* static void 00554 test_add_gvalue_guid_to_slist (Fixture *fixture, gconstpointer pData) 00555 { 00556 }*/ 00557 // Not Used 00558 /* gnc_sql_add_gvalue_objectref_guid_to_slist 00559 void 00560 gnc_sql_add_gvalue_objectref_guid_to_slist (const GncSqlBackend* be, QofIdTypeConst obj_name,// 1 00561 */ 00562 /* static void 00563 test_gnc_sql_add_gvalue_objectref_guid_to_slist (Fixture *fixture, gconstpointer pData) 00564 { 00565 }*/ 00566 // Not Used 00567 /* gnc_sql_add_objectref_guid_col_info_to_list 00568 void 00569 gnc_sql_add_objectref_guid_col_info_to_list (const GncSqlBackend* be,// 1 00570 */ 00571 /* static void 00572 test_gnc_sql_add_objectref_guid_col_info_to_list (Fixture *fixture, gconstpointer pData) 00573 { 00574 }*/ 00575 /* gnc_sql_convert_timespec_to_string 00576 gchar* 00577 gnc_sql_convert_timespec_to_string (const GncSqlBackend* be, Timespec ts)// C: 1 */ 00578 /* static void 00579 test_gnc_sql_convert_timespec_to_string (Fixture *fixture, gconstpointer pData) 00580 { 00581 }*/ 00582 /* load_timespec 00583 static void 00584 load_timespec (const GncSqlBackend* be, GncSqlRow* row,// 2 00585 */ 00586 /* static void 00587 test_load_timespec (Fixture *fixture, gconstpointer pData) 00588 { 00589 }*/ 00590 /* add_timespec_col_info_to_list 00591 static void 00592 add_timespec_col_info_to_list (const GncSqlBackend* be, const GncSqlColumnTableEntry* table_row,// 2 00593 */ 00594 /* static void 00595 test_add_timespec_col_info_to_list (Fixture *fixture, gconstpointer pData) 00596 { 00597 }*/ 00598 /* add_gvalue_timespec_to_slist 00599 static void 00600 add_gvalue_timespec_to_slist (const GncSqlBackend* be, QofIdTypeConst obj_name,// 2 00601 */ 00602 /* static void 00603 test_add_gvalue_timespec_to_slist (Fixture *fixture, gconstpointer pData) 00604 { 00605 }*/ 00606 /* load_date 00607 static void 00608 load_date (const GncSqlBackend* be, GncSqlRow* row,// 2 00609 */ 00610 /* static void 00611 test_load_date (Fixture *fixture, gconstpointer pData) 00612 { 00613 }*/ 00614 /* add_date_col_info_to_list 00615 static void 00616 add_date_col_info_to_list (const GncSqlBackend* be, const GncSqlColumnTableEntry* table_row,// 2 00617 */ 00618 /* static void 00619 test_add_date_col_info_to_list (Fixture *fixture, gconstpointer pData) 00620 { 00621 }*/ 00622 /* add_gvalue_date_to_slist 00623 static void 00624 add_gvalue_date_to_slist (const GncSqlBackend* be, QofIdTypeConst obj_name,// 2 00625 */ 00626 /* static void 00627 test_add_gvalue_date_to_slist (Fixture *fixture, gconstpointer pData) 00628 { 00629 }*/ 00630 /* load_numeric 00631 static void 00632 load_numeric (const GncSqlBackend* be, GncSqlRow* row,// 2 00633 */ 00634 /* static void 00635 test_load_numeric (Fixture *fixture, gconstpointer pData) 00636 { 00637 }*/ 00638 /* add_numeric_col_info_to_list 00639 static void 00640 add_numeric_col_info_to_list (const GncSqlBackend* be, const GncSqlColumnTableEntry* table_row,// 2 00641 */ 00642 /* static void 00643 test_add_numeric_col_info_to_list (Fixture *fixture, gconstpointer pData) 00644 { 00645 }*/ 00646 /* add_numeric_colname_to_list 00647 static void 00648 add_numeric_colname_to_list (const GncSqlColumnTableEntry* table_row, GList** pList)// 2 00649 */ 00650 /* static void 00651 test_add_numeric_colname_to_list (Fixture *fixture, gconstpointer pData) 00652 { 00653 }*/ 00654 /* add_gvalue_numeric_to_slist 00655 static void 00656 add_gvalue_numeric_to_slist (const GncSqlBackend* be, QofIdTypeConst obj_name,// 2 00657 */ 00658 /* static void 00659 test_add_gvalue_numeric_to_slist (Fixture *fixture, gconstpointer pData) 00660 { 00661 }*/ 00662 /* get_handler 00663 get_handler (const GncSqlColumnTableEntry* table_row)// C: 1 */ 00664 /* static void 00665 test_get_handler (Fixture *fixture, gconstpointer pData) 00666 { 00667 }*/ 00668 /* register_standard_col_type_handlers 00669 static void 00670 register_standard_col_type_handlers (void)// 3 00671 */ 00672 /* static void 00673 test_register_standard_col_type_handlers (Fixture *fixture, gconstpointer pData) 00674 { 00675 }*/ 00676 // Make Static 00677 /* _retrieve_guid_ 00678 void 00679 _retrieve_guid_ (gpointer pObject, gpointer pValue)// 3 00680 */ 00681 /* static void 00682 test__retrieve_guid_ (Fixture *fixture, gconstpointer pData) 00683 { 00684 }*/ 00685 /* gnc_sql_load_guid 00686 const GncGUID* 00687 gnc_sql_load_guid (const GncSqlBackend* be, GncSqlRow* row)// C: 15 in 14 */ 00688 /* static void 00689 test_gnc_sql_load_guid (Fixture *fixture, gconstpointer pData) 00690 { 00691 }*/ 00692 // Not Used 00693 /* gnc_sql_load_tx_guid 00694 const GncGUID* 00695 gnc_sql_load_tx_guid (const GncSqlBackend* be, GncSqlRow* row)// 1 00696 */ 00697 /* static void 00698 test_gnc_sql_load_tx_guid (Fixture *fixture, gconstpointer pData) 00699 { 00700 }*/ 00701 /* gnc_sql_load_object 00702 void 00703 gnc_sql_load_object (const GncSqlBackend* be, GncSqlRow* row,// C: 29 in 19 */ 00704 /* static void 00705 test_gnc_sql_load_object (Fixture *fixture, gconstpointer pData) 00706 { 00707 }*/ 00708 /* gnc_sql_create_select_statement 00709 gnc_sql_create_select_statement (GncSqlBackend* be, const gchar* table_name)// C: 16 in 16 */ 00710 /* static void 00711 test_gnc_sql_create_select_statement (Fixture *fixture, gconstpointer pData) 00712 { 00713 }*/ 00714 // Make Static 00715 /* create_single_col_select_statement 00716 create_single_col_select_statement (GncSqlBackend* be,// 2 00717 */ 00718 /* static void 00719 test_create_single_col_select_statement (Fixture *fixture, gconstpointer pData) 00720 { 00721 }*/ 00722 /* gnc_sql_execute_select_statement 00723 gnc_sql_execute_select_statement (GncSqlBackend* be, GncSqlStatement* stmt)// C: 25 in 19 */ 00724 /* static void 00725 test_gnc_sql_execute_select_statement (Fixture *fixture, gconstpointer pData) 00726 { 00727 }*/ 00728 /* gnc_sql_create_statement_from_sql 00729 gnc_sql_create_statement_from_sql (GncSqlBackend* be, const gchar* sql)// C: 11 in 3 */ 00730 /* static void 00731 test_gnc_sql_create_statement_from_sql (Fixture *fixture, gconstpointer pData) 00732 { 00733 }*/ 00734 /* gnc_sql_execute_select_sql 00735 gnc_sql_execute_select_sql (GncSqlBackend* be, const gchar* sql)// C: 1 */ 00736 /* static void 00737 test_gnc_sql_execute_select_sql (Fixture *fixture, gconstpointer pData) 00738 { 00739 }*/ 00740 /* gnc_sql_execute_nonselect_sql 00741 gint 00742 gnc_sql_execute_nonselect_sql (GncSqlBackend* be, const gchar* sql)// C: 1 */ 00743 /* static void 00744 test_gnc_sql_execute_nonselect_sql (Fixture *fixture, gconstpointer pData) 00745 { 00746 }*/ 00747 /* execute_statement_get_count 00748 static guint 00749 execute_statement_get_count (GncSqlBackend* be, GncSqlStatement* stmt)// 2 00750 */ 00751 /* static void 00752 test_execute_statement_get_count (Fixture *fixture, gconstpointer pData) 00753 { 00754 }*/ 00755 /* gnc_sql_append_guid_list_to_sql 00756 guint 00757 gnc_sql_append_guid_list_to_sql (GString* sql, GList* list, guint maxCount)// C: 2 in 2 */ 00758 /* static void 00759 test_gnc_sql_append_guid_list_to_sql (Fixture *fixture, gconstpointer pData) 00760 { 00761 }*/ 00762 /* gnc_sql_object_is_it_in_db 00763 gboolean 00764 gnc_sql_object_is_it_in_db (GncSqlBackend* be, const gchar* table_name,// C: 1 */ 00765 /* static void 00766 test_gnc_sql_object_is_it_in_db (Fixture *fixture, gconstpointer pData) 00767 { 00768 }*/ 00769 /* gnc_sql_do_db_operation 00770 gboolean 00771 gnc_sql_do_db_operation (GncSqlBackend* be,// C: 22 in 12 */ 00772 /* static void 00773 test_gnc_sql_do_db_operation (Fixture *fixture, gconstpointer pData) 00774 { 00775 }*/ 00776 /* create_gslist_from_values 00777 static GSList* 00778 create_gslist_from_values (GncSqlBackend* be,// 3 00779 */ 00780 /* static void 00781 test_create_gslist_from_values (Fixture *fixture, gconstpointer pData) 00782 { 00783 }*/ 00784 /* gnc_sql_get_sql_value 00785 gchar* 00786 gnc_sql_get_sql_value (const GncSqlConnection* conn, const GValue* value)// C: 1 */ 00787 /* static void 00788 test_gnc_sql_get_sql_value (Fixture *fixture, gconstpointer pData) 00789 { 00790 }*/ 00791 /* free_gvalue_list 00792 static void 00793 free_gvalue_list (GSList* list)// 4 00794 */ 00795 /* static void 00796 test_free_gvalue_list (Fixture *fixture, gconstpointer pData) 00797 { 00798 }*/ 00799 // Make Static 00800 /* build_insert_statement 00801 build_insert_statement (GncSqlBackend* be,// 3 00802 */ 00803 /* static void 00804 test_build_insert_statement (Fixture *fixture, gconstpointer pData) 00805 { 00806 }*/ 00807 // Make Static 00808 /* build_update_statement 00809 build_update_statement (GncSqlBackend* be,// 3 00810 */ 00811 /* static void 00812 test_build_update_statement (Fixture *fixture, gconstpointer pData) 00813 { 00814 }*/ 00815 // Make Static 00816 /* build_delete_statement 00817 build_delete_statement (GncSqlBackend* be,// 3 00818 */ 00819 /* static void 00820 test_build_delete_statement (Fixture *fixture, gconstpointer pData) 00821 { 00822 }*/ 00823 /* gnc_sql_commit_standard_item 00824 gboolean 00825 gnc_sql_commit_standard_item (GncSqlBackend* be, QofInstance* inst, const gchar* tableName,// C: 7 in 7 */ 00826 /* static void 00827 test_gnc_sql_commit_standard_item (Fixture *fixture, gconstpointer pData) 00828 { 00829 }*/ 00830 /* do_create_table 00831 static gboolean 00832 do_create_table (const GncSqlBackend* be, const gchar* table_name,// 5 00833 */ 00834 /* static void 00835 test_do_create_table (Fixture *fixture, gconstpointer pData) 00836 { 00837 }*/ 00838 /* gnc_sql_create_table 00839 gboolean 00840 gnc_sql_create_table (GncSqlBackend* be, const gchar* table_name,// C: 22 in 19 */ 00841 /* static void 00842 test_gnc_sql_create_table (Fixture *fixture, gconstpointer pData) 00843 { 00844 }*/ 00845 // Make Static 00846 /* gnc_sql_create_temp_table 00847 gboolean 00848 gnc_sql_create_temp_table (const GncSqlBackend* be, const gchar* table_name,// 2 00849 */ 00850 /* static void 00851 test_gnc_sql_create_temp_table (Fixture *fixture, gconstpointer pData) 00852 { 00853 }*/ 00854 /* gnc_sql_create_index 00855 gboolean 00856 gnc_sql_create_index (const GncSqlBackend* be, const gchar* index_name,// C: 7 in 2 */ 00857 /* static void 00858 test_gnc_sql_create_index (Fixture *fixture, gconstpointer pData) 00859 { 00860 }*/ 00861 /* gnc_sql_get_table_version 00862 gint 00863 gnc_sql_get_table_version (const GncSqlBackend* be, const gchar* table_name)// C: 24 in 20 */ 00864 /* static void 00865 test_gnc_sql_get_table_version (Fixture *fixture, gconstpointer pData) 00866 { 00867 }*/ 00868 /* gnc_sql_upgrade_table 00869 void 00870 gnc_sql_upgrade_table (GncSqlBackend* be, const gchar* table_name,// C: 12 in 10 */ 00871 /* static void 00872 test_gnc_sql_upgrade_table (Fixture *fixture, gconstpointer pData) 00873 { 00874 }*/ 00875 /* gnc_sql_add_columns_to_table 00876 gboolean gnc_sql_add_columns_to_table (GncSqlBackend* be, const gchar* table_name,// C: 1 */ 00877 /* static void 00878 test_gnc_sql_add_columns_to_table (Fixture *fixture, gconstpointer pData) 00879 { 00880 }*/ 00881 /* gnc_sql_init_version_info 00882 void 00883 gnc_sql_init_version_info (GncSqlBackend* be)// C: 1 */ 00884 /* static void 00885 test_gnc_sql_init_version_info (Fixture *fixture, gconstpointer pData) 00886 { 00887 }*/ 00888 /* reset_version_info 00889 static gboolean 00890 reset_version_info (GncSqlBackend* be)// 3 00891 */ 00892 /* static void 00893 test_reset_version_info (Fixture *fixture, gconstpointer pData) 00894 { 00895 }*/ 00896 /* gnc_sql_finalize_version_info 00897 void 00898 gnc_sql_finalize_version_info (GncSqlBackend* be)// C: 1 */ 00899 /* static void 00900 test_gnc_sql_finalize_version_info (Fixture *fixture, gconstpointer pData) 00901 { 00902 }*/ 00903 /* gnc_sql_set_table_version 00904 gboolean 00905 gnc_sql_set_table_version (GncSqlBackend* be, const gchar* table_name, gint version)// C: 12 in 10 */ 00906 /* static void 00907 test_gnc_sql_set_table_version (Fixture *fixture, gconstpointer pData) 00908 { 00909 }*/ 00910 00911 00912 void 00913 test_suite_gnc_backend_sql (void) 00914 { 00915 00916 // GNC_TEST_ADD (suitename, "gnc sql init", Fixture, NULL, test_gnc_sql_init, teardown); 00917 // GNC_TEST_ADD (suitename, "create tables cb", Fixture, NULL, test_create_tables_cb, teardown); 00918 // GNC_TEST_ADD (suitename, "gnc sql set load order", Fixture, NULL, test_gnc_sql_set_load_order, teardown); 00919 // GNC_TEST_ADD (suitename, "initial load cb", Fixture, NULL, test_initial_load_cb, teardown); 00920 // GNC_TEST_ADD (suitename, "gnc sql load", Fixture, NULL, test_gnc_sql_load, teardown); 00921 // GNC_TEST_ADD (suitename, "write account tree", Fixture, NULL, test_write_account_tree, teardown); 00922 // GNC_TEST_ADD (suitename, "write accounts", Fixture, NULL, test_write_accounts, teardown); 00923 // GNC_TEST_ADD (suitename, "write tx", Fixture, NULL, test_write_tx, teardown); 00924 // GNC_TEST_ADD (suitename, "write transactions", Fixture, NULL, test_write_transactions, teardown); 00925 // GNC_TEST_ADD (suitename, "write template transactions", Fixture, NULL, test_write_template_transactions, teardown); 00926 // GNC_TEST_ADD (suitename, "write schedXactions", Fixture, NULL, test_write_schedXactions, teardown); 00927 // GNC_TEST_ADD (suitename, "write cb", Fixture, NULL, test_write_cb, teardown); 00928 // GNC_TEST_ADD (suitename, "update progress", Fixture, NULL, test_update_progress, teardown); 00929 // GNC_TEST_ADD (suitename, "finish progress", Fixture, NULL, test_finish_progress, teardown); 00930 // GNC_TEST_ADD (suitename, "gnc sql sync all", Fixture, NULL, test_gnc_sql_sync_all, teardown); 00931 // GNC_TEST_ADD (suitename, "gnc sql begin edit", Fixture, NULL, test_gnc_sql_begin_edit, teardown); 00932 // GNC_TEST_ADD (suitename, "gnc sql rollback edit", Fixture, NULL, test_gnc_sql_rollback_edit, teardown); 00933 // GNC_TEST_ADD (suitename, "commit cb", Fixture, NULL, test_commit_cb, teardown); 00934 GNC_TEST_ADD_FUNC (suitename, "gnc sql commit edit", test_gnc_sql_commit_edit); 00935 // GNC_TEST_ADD (suitename, "handle and term", Fixture, NULL, test_handle_and_term, teardown); 00936 // GNC_TEST_ADD (suitename, "compile query cb", Fixture, NULL, test_compile_query_cb, teardown); 00937 // GNC_TEST_ADD (suitename, "gnc sql compile query", Fixture, NULL, test_gnc_sql_compile_query, teardown); 00938 // GNC_TEST_ADD (suitename, "convert search obj", Fixture, NULL, test_convert_search_obj, teardown); 00939 // GNC_TEST_ADD (suitename, "gnc sql compile query to sql", Fixture, NULL, test_gnc_sql_compile_query_to_sql, teardown); 00940 // GNC_TEST_ADD (suitename, "free query cb", Fixture, NULL, test_free_query_cb, teardown); 00941 // GNC_TEST_ADD (suitename, "gnc sql free query", Fixture, NULL, test_gnc_sql_free_query, teardown); 00942 // GNC_TEST_ADD (suitename, "run query cb", Fixture, NULL, test_run_query_cb, teardown); 00943 // GNC_TEST_ADD (suitename, "gnc sql run query", Fixture, NULL, test_gnc_sql_run_query, teardown); 00944 // GNC_TEST_ADD (suitename, "business core sql init", Fixture, NULL, test_business_core_sql_init, teardown); 00945 // GNC_TEST_ADD (suitename, "gnc sql init object handlers", Fixture, NULL, test_gnc_sql_init_object_handlers, teardown); 00946 // GNC_TEST_ADD (suitename, "gnc sql get integer value", Fixture, NULL, test_gnc_sql_get_integer_value, teardown); 00947 // GNC_TEST_ADD (suitename, "get autoinc id", Fixture, NULL, test_get_autoinc_id, teardown); 00948 // GNC_TEST_ADD (suitename, "set autoinc id", Fixture, NULL, test_set_autoinc_id, teardown); 00949 // GNC_TEST_ADD (suitename, "gnc sql get getter", Fixture, NULL, test_gnc_sql_get_getter, teardown); 00950 // GNC_TEST_ADD (suitename, "gnc sql add colname to list", Fixture, NULL, test_gnc_sql_add_colname_to_list, teardown); 00951 // GNC_TEST_ADD (suitename, "gnc sql add subtable colnames to list", Fixture, NULL, test_gnc_sql_add_subtable_colnames_to_list, teardown); 00952 // GNC_TEST_ADD (suitename, "create column info", Fixture, NULL, test_create_column_info, teardown); 00953 // GNC_TEST_ADD (suitename, "load string", Fixture, NULL, test_load_string, teardown); 00954 // GNC_TEST_ADD (suitename, "add string col info to list", Fixture, NULL, test_add_string_col_info_to_list, teardown); 00955 // GNC_TEST_ADD (suitename, "add gvalue string to slist", Fixture, NULL, test_add_gvalue_string_to_slist, teardown); 00956 // GNC_TEST_ADD (suitename, "load int", Fixture, NULL, test_load_int, teardown); 00957 // GNC_TEST_ADD (suitename, "add int col info to list", Fixture, NULL, test_add_int_col_info_to_list, teardown); 00958 // GNC_TEST_ADD (suitename, "add gvalue int to slist", Fixture, NULL, test_add_gvalue_int_to_slist, teardown); 00959 // GNC_TEST_ADD (suitename, "load boolean", Fixture, NULL, test_load_boolean, teardown); 00960 // GNC_TEST_ADD (suitename, "add boolean col info to list", Fixture, NULL, test_add_boolean_col_info_to_list, teardown); 00961 // GNC_TEST_ADD (suitename, "add gvalue boolean to slist", Fixture, NULL, test_add_gvalue_boolean_to_slist, teardown); 00962 // GNC_TEST_ADD (suitename, "load int64", Fixture, NULL, test_load_int64, teardown); 00963 // GNC_TEST_ADD (suitename, "add int64 col info to list", Fixture, NULL, test_add_int64_col_info_to_list, teardown); 00964 // GNC_TEST_ADD (suitename, "add gvalue int64 to slist", Fixture, NULL, test_add_gvalue_int64_to_slist, teardown); 00965 // GNC_TEST_ADD (suitename, "load double", Fixture, NULL, test_load_double, teardown); 00966 // GNC_TEST_ADD (suitename, "add double col info to list", Fixture, NULL, test_add_double_col_info_to_list, teardown); 00967 // GNC_TEST_ADD (suitename, "add gvalue double to slist", Fixture, NULL, test_add_gvalue_double_to_slist, teardown); 00968 // GNC_TEST_ADD (suitename, "load guid", Fixture, NULL, test_load_guid, teardown); 00969 // GNC_TEST_ADD (suitename, "add guid col info to list", Fixture, NULL, test_add_guid_col_info_to_list, teardown); 00970 // GNC_TEST_ADD (suitename, "add gvalue guid to slist", Fixture, NULL, test_add_gvalue_guid_to_slist, teardown); 00971 // GNC_TEST_ADD (suitename, "gnc sql add gvalue objectref guid to slist", Fixture, NULL, test_gnc_sql_add_gvalue_objectref_guid_to_slist, teardown); 00972 // GNC_TEST_ADD (suitename, "gnc sql add objectref guid col info to list", Fixture, NULL, test_gnc_sql_add_objectref_guid_col_info_to_list, teardown); 00973 // GNC_TEST_ADD (suitename, "gnc sql convert timespec to string", Fixture, NULL, test_gnc_sql_convert_timespec_to_string, teardown); 00974 // GNC_TEST_ADD (suitename, "load timespec", Fixture, NULL, test_load_timespec, teardown); 00975 // GNC_TEST_ADD (suitename, "add timespec col info to list", Fixture, NULL, test_add_timespec_col_info_to_list, teardown); 00976 // GNC_TEST_ADD (suitename, "add gvalue timespec to slist", Fixture, NULL, test_add_gvalue_timespec_to_slist, teardown); 00977 // GNC_TEST_ADD (suitename, "load date", Fixture, NULL, test_load_date, teardown); 00978 // GNC_TEST_ADD (suitename, "add date col info to list", Fixture, NULL, test_add_date_col_info_to_list, teardown); 00979 // GNC_TEST_ADD (suitename, "add gvalue date to slist", Fixture, NULL, test_add_gvalue_date_to_slist, teardown); 00980 // GNC_TEST_ADD (suitename, "load numeric", Fixture, NULL, test_load_numeric, teardown); 00981 // GNC_TEST_ADD (suitename, "add numeric col info to list", Fixture, NULL, test_add_numeric_col_info_to_list, teardown); 00982 // GNC_TEST_ADD (suitename, "add numeric colname to list", Fixture, NULL, test_add_numeric_colname_to_list, teardown); 00983 // GNC_TEST_ADD (suitename, "add gvalue numeric to slist", Fixture, NULL, test_add_gvalue_numeric_to_slist, teardown); 00984 // GNC_TEST_ADD (suitename, "get handler", Fixture, NULL, test_get_handler, teardown); 00985 // GNC_TEST_ADD (suitename, "register standard col type handlers", Fixture, NULL, test_register_standard_col_type_handlers, teardown); 00986 // GNC_TEST_ADD (suitename, " retrieve guid ", Fixture, NULL, test__retrieve_guid_, teardown); 00987 // GNC_TEST_ADD (suitename, "gnc sql load guid", Fixture, NULL, test_gnc_sql_load_guid, teardown); 00988 // GNC_TEST_ADD (suitename, "gnc sql load tx guid", Fixture, NULL, test_gnc_sql_load_tx_guid, teardown); 00989 // GNC_TEST_ADD (suitename, "gnc sql load object", Fixture, NULL, test_gnc_sql_load_object, teardown); 00990 // GNC_TEST_ADD (suitename, "gnc sql create select statement", Fixture, NULL, test_gnc_sql_create_select_statement, teardown); 00991 // GNC_TEST_ADD (suitename, "create single col select statement", Fixture, NULL, test_create_single_col_select_statement, teardown); 00992 // GNC_TEST_ADD (suitename, "gnc sql execute select statement", Fixture, NULL, test_gnc_sql_execute_select_statement, teardown); 00993 // GNC_TEST_ADD (suitename, "gnc sql create statement from sql", Fixture, NULL, test_gnc_sql_create_statement_from_sql, teardown); 00994 // GNC_TEST_ADD (suitename, "gnc sql execute select sql", Fixture, NULL, test_gnc_sql_execute_select_sql, teardown); 00995 // GNC_TEST_ADD (suitename, "gnc sql execute nonselect sql", Fixture, NULL, test_gnc_sql_execute_nonselect_sql, teardown); 00996 // GNC_TEST_ADD (suitename, "execute statement get count", Fixture, NULL, test_execute_statement_get_count, teardown); 00997 // GNC_TEST_ADD (suitename, "gnc sql append guid list to sql", Fixture, NULL, test_gnc_sql_append_guid_list_to_sql, teardown); 00998 // GNC_TEST_ADD (suitename, "gnc sql object is it in db", Fixture, NULL, test_gnc_sql_object_is_it_in_db, teardown); 00999 // GNC_TEST_ADD (suitename, "gnc sql do db operation", Fixture, NULL, test_gnc_sql_do_db_operation, teardown); 01000 // GNC_TEST_ADD (suitename, "create gslist from values", Fixture, NULL, test_create_gslist_from_values, teardown); 01001 // GNC_TEST_ADD (suitename, "gnc sql get sql value", Fixture, NULL, test_gnc_sql_get_sql_value, teardown); 01002 // GNC_TEST_ADD (suitename, "free gvalue list", Fixture, NULL, test_free_gvalue_list, teardown); 01003 // GNC_TEST_ADD (suitename, "build insert statement", Fixture, NULL, test_build_insert_statement, teardown); 01004 // GNC_TEST_ADD (suitename, "build update statement", Fixture, NULL, test_build_update_statement, teardown); 01005 // GNC_TEST_ADD (suitename, "build delete statement", Fixture, NULL, test_build_delete_statement, teardown); 01006 // GNC_TEST_ADD (suitename, "gnc sql commit standard item", Fixture, NULL, test_gnc_sql_commit_standard_item, teardown); 01007 // GNC_TEST_ADD (suitename, "do create table", Fixture, NULL, test_do_create_table, teardown); 01008 // GNC_TEST_ADD (suitename, "gnc sql create table", Fixture, NULL, test_gnc_sql_create_table, teardown); 01009 // GNC_TEST_ADD (suitename, "gnc sql create temp table", Fixture, NULL, test_gnc_sql_create_temp_table, teardown); 01010 // GNC_TEST_ADD (suitename, "gnc sql create index", Fixture, NULL, test_gnc_sql_create_index, teardown); 01011 // GNC_TEST_ADD (suitename, "gnc sql get table version", Fixture, NULL, test_gnc_sql_get_table_version, teardown); 01012 // GNC_TEST_ADD (suitename, "gnc sql upgrade table", Fixture, NULL, test_gnc_sql_upgrade_table, teardown); 01013 // GNC_TEST_ADD (suitename, "gnc sql add columns to table", Fixture, NULL, test_gnc_sql_add_columns_to_table, teardown); 01014 // GNC_TEST_ADD (suitename, "gnc sql init version info", Fixture, NULL, test_gnc_sql_init_version_info, teardown); 01015 // GNC_TEST_ADD (suitename, "reset version info", Fixture, NULL, test_reset_version_info, teardown); 01016 // GNC_TEST_ADD (suitename, "gnc sql finalize version info", Fixture, NULL, test_gnc_sql_finalize_version_info, teardown); 01017 // GNC_TEST_ADD (suitename, "gnc sql set table version", Fixture, NULL, test_gnc_sql_set_table_version, teardown); 01018 01019 }
1.7.4