OpenDNSSEC-enforcer 2.1.10
|
#include "config.h"
#include "../db_configuration.h"
#include "../db_connection.h"
#include "../db_object.h"
#include "CUnit/Basic.h"
#include <string.h>
Go to the source code of this file.
Data Structures | |
struct | test_t |
struct | test_list_t |
struct | test2_t |
void __check_id | ( | const db_value_t * | id, |
int | id_int, | ||
const char * | id_text | ||
) |
Definition at line 1008 of file test_database_operations.c.
References DB_TYPE_INT32, DB_TYPE_INT64, DB_TYPE_TEXT, DB_TYPE_UINT32, DB_TYPE_UINT64, db_value_text(), db_value_to_int32(), db_value_to_int64(), db_value_to_uint32(), db_value_to_uint64(), and db_value_type().
db_object_t * __test2_new_object | ( | const db_connection_t * | connection | ) |
Definition at line 475 of file test_database_operations.c.
db_object_t * __test_new_object | ( | const db_connection_t * | connection | ) |
Definition at line 58 of file test_database_operations.c.
int clean_suite_database_operations | ( | void | ) |
Definition at line 988 of file test_database_operations.c.
References test_free().
Referenced by main().
int test2_create | ( | test2_t * | test2 | ) |
Definition at line 666 of file test_database_operations.c.
int test2_delete | ( | test2_t * | test2 | ) |
Definition at line 751 of file test_database_operations.c.
void test2_free | ( | test2_t * | test2 | ) |
Definition at line 521 of file test_database_operations.c.
int test2_from_result | ( | test2_t * | test2, |
const db_result_t * | result | ||
) |
Definition at line 563 of file test_database_operations.c.
int test2_get_by_id | ( | test2_t * | test2, |
const db_value_t * | id | ||
) |
Definition at line 626 of file test_database_operations.c.
int test2_get_by_name | ( | test2_t * | test2, |
const char * | name | ||
) |
Definition at line 586 of file test_database_operations.c.
const db_value_t * test2_id | ( | const test2_t * | test2 | ) |
Definition at line 539 of file test_database_operations.c.
const char * test2_name | ( | const test2_t * | test2 | ) |
Definition at line 545 of file test_database_operations.c.
test2_t * test2_new | ( | const db_connection_t * | connection | ) |
Definition at line 508 of file test_database_operations.c.
int test2_set_name | ( | test2_t * | test2, |
const char * | name | ||
) |
Definition at line 551 of file test_database_operations.c.
int test2_update | ( | test2_t * | test2 | ) |
Definition at line 700 of file test_database_operations.c.
size_t test_count_by_id | ( | test_t * | test, |
const db_value_t * | id | ||
) |
Definition at line 365 of file test_database_operations.c.
size_t test_count_by_name | ( | test_t * | test, |
const char * | name | ||
) |
Definition at line 342 of file test_database_operations.c.
int test_create | ( | test_t * | test | ) |
Definition at line 238 of file test_database_operations.c.
void test_database_operations_count | ( | void | ) |
Definition at line 1187 of file test_database_operations.c.
Referenced by main().
void test_database_operations_create_object2 | ( | void | ) |
Definition at line 1059 of file test_database_operations.c.
Referenced by main().
void test_database_operations_create_object2_2 | ( | void | ) |
Definition at line 1210 of file test_database_operations.c.
Referenced by main().
void test_database_operations_create_object3 | ( | void | ) |
Definition at line 1131 of file test_database_operations.c.
Referenced by main().
void test_database_operations_create_object3_2 | ( | void | ) |
Definition at line 1317 of file test_database_operations.c.
Referenced by main().
void test_database_operations_delete_object2 | ( | void | ) |
Definition at line 1114 of file test_database_operations.c.
Referenced by main().
void test_database_operations_delete_object2_2 | ( | void | ) |
Definition at line 1300 of file test_database_operations.c.
Referenced by main().
void test_database_operations_delete_object3 | ( | void | ) |
Definition at line 1152 of file test_database_operations.c.
Referenced by main().
void test_database_operations_delete_object3_2 | ( | void | ) |
Definition at line 1338 of file test_database_operations.c.
Referenced by main().
void test_database_operations_read_all | ( | void | ) |
Definition at line 1169 of file test_database_operations.c.
Referenced by main().
void test_database_operations_read_object1 | ( | void | ) |
Definition at line 1047 of file test_database_operations.c.
Referenced by main().
void test_database_operations_read_object1_2 | ( | void | ) |
Definition at line 1198 of file test_database_operations.c.
Referenced by main().
void test_database_operations_read_object2 | ( | void | ) |
Definition at line 1080 of file test_database_operations.c.
Referenced by main().
void test_database_operations_read_object2_2 | ( | void | ) |
Definition at line 1231 of file test_database_operations.c.
Referenced by main().
void test_database_operations_update_object2 | ( | void | ) |
Definition at line 1094 of file test_database_operations.c.
Referenced by main().
void test_database_operations_update_object2_2 | ( | void | ) |
Definition at line 1245 of file test_database_operations.c.
Referenced by main().
void test_database_operations_update_objects_revisions | ( | void | ) |
Definition at line 1265 of file test_database_operations.c.
Referenced by main().
int test_delete | ( | test_t * | test | ) |
Definition at line 316 of file test_database_operations.c.
void test_free | ( | test_t * | test | ) |
Definition at line 98 of file test_database_operations.c.
Referenced by clean_suite_database_operations().
int test_from_result | ( | test_t * | test, |
const db_result_t * | result | ||
) |
Definition at line 137 of file test_database_operations.c.
int test_get_by_id | ( | test_t * | test, |
const db_value_t * | id | ||
) |
Definition at line 198 of file test_database_operations.c.
int test_get_by_name | ( | test_t * | test, |
const char * | name | ||
) |
Definition at line 158 of file test_database_operations.c.
const db_value_t * test_id | ( | const test_t * | test | ) |
Definition at line 113 of file test_database_operations.c.
const test_t * test_list_begin | ( | test_list_t * | test_list | ) |
Definition at line 428 of file test_database_operations.c.
void test_list_free | ( | test_list_t * | test_list | ) |
Definition at line 399 of file test_database_operations.c.
int test_list_get | ( | test_list_t * | test_list | ) |
Definition at line 414 of file test_database_operations.c.
test_list_t * test_list_new | ( | const db_connection_t * | connection | ) |
Definition at line 388 of file test_database_operations.c.
const test_t * test_list_next | ( | test_list_t * | test_list | ) |
Definition at line 447 of file test_database_operations.c.
const char * test_name | ( | const test_t * | test | ) |
Definition at line 119 of file test_database_operations.c.
test_t * test_new | ( | const db_connection_t * | connection | ) |
Definition at line 86 of file test_database_operations.c.
int test_set_name | ( | test_t * | test, |
const char * | name | ||
) |
Definition at line 125 of file test_database_operations.c.
int test_update | ( | test_t * | test | ) |
Definition at line 271 of file test_database_operations.c.