Groonga 3.0.9 Source Code Document
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
Macros | Functions
test-patricia-trie.c File Reference
#include "test-patricia-trie.h"
Include dependency graph for test-patricia-trie.c:

Go to the source code of this file.

Macros

#define cut_assert_delete(key)
#define cut_assert_truncate(key)
#define ADD_DATUM(label, commands)

Functions

void data_create (void)
void test_create (gconstpointer data)
void data_open_success (void)
void test_open_success (gconstpointer data)
void data_open_without_path (void)
void test_open_without_path (gconstpointer data)
void test_remove (void)
void test_remove_with_null_as_path (void)
void data_lookup_add (void)
void test_lookup_add (gconstpointer data)
void data_delete_by_id (void)
void test_delete_by_id (gconstpointer data)
void test_delete_by_id_sis_short (void)
void attributes_delete_by_id_sis_long (void)
void test_delete_by_id_sis_long (void)
void data_delete (void)
void test_delete (gconstpointer data)
void data_lookup_and_delete_for_same_prefix_key (void)
void test_lookup_and_delete_for_same_prefix_key (gconstpointer data)
void test_get_key (void)
void data_get_value (void)
void test_get_value (gconstpointer data)
void test_set_value (void)
void test_set_value_with_null_value (void)
void data_add_and_delete (void)
void test_add_and_delete (gconstpointer data)
void data_at (void)
void test_at (gconstpointer data)
void cut_setup (void)
void cut_teardown (void)
void data_truncate (void)
void test_truncate (gconstpointer data)

Macro Definition Documentation

#define ADD_DATUM (   label,
  commands 
)
Value:
gcut_add_datum(label, \
"commands", G_TYPE_STRING, commands, \
NULL)
#define cut_assert_delete (   key)
Value:
do \
{ \
const gchar *_key; \
uint32_t key_size = 0; \
\
_key = (key); \
if (_key) \
key_size = strlen(_key); \
grn_test_assert(grn_pat_delete(context, trie, _key, key_size, NULL)); \
grn_test_assert_equal_rc(GRN_INVALID_ARGUMENT, \
_key, key_size, NULL)); \
\
flags = 0; \
cut_assert_lookup_failed(_key, key_size, &flags); \
} while (0)

Definition at line 334 of file test-patricia-trie.c.

#define cut_assert_truncate (   key)
Value:
do \
{ \
const gchar *_key; \
uint32_t key_size = 0; \
\
_key = (key); \
if (_key) \
key_size = strlen(_key); \
grn_test_assert(grn_pat_truncate(context, trie, _key, key_size, NULL));\
grn_test_assert_equal_rc(GRN_INVALID_ARGUMENT, \
_key, key_size, NULL)); \
\
flags = 0; \
cut_assert_lookup_failed(_key, key_size, &flags); \
} while (0)

Definition at line 744 of file test-patricia-trie.c.

Function Documentation

void attributes_delete_by_id_sis_long ( void  )

Definition at line 303 of file test-patricia-trie.c.

void cut_setup ( void  )

Definition at line 55 of file test-patricia-trie.c.

void cut_teardown ( void  )

Definition at line 74 of file test-patricia-trie.c.

Here is the call graph for this function:

void data_add_and_delete ( void  )
void data_at ( void  )

Definition at line 796 of file test-patricia-trie.c.

void data_create ( void  )
void data_delete ( void  )
void data_delete_by_id ( void  )
void data_get_value ( void  )
void data_lookup_add ( void  )
void data_lookup_and_delete_for_same_prefix_key ( void  )

Definition at line 380 of file test-patricia-trie.c.

void data_open_success ( void  )

Definition at line 126 of file test-patricia-trie.c.

void data_open_without_path ( void  )

Definition at line 145 of file test-patricia-trie.c.

void data_truncate ( void  )

Definition at line 764 of file test-patricia-trie.c.

void test_add_and_delete ( gconstpointer  data)
void test_at ( gconstpointer  data)

Definition at line 824 of file test-patricia-trie.c.

Here is the call graph for this function:

void test_create ( gconstpointer  data)
void test_delete ( gconstpointer  data)
void test_delete_by_id ( gconstpointer  data)
void test_delete_by_id_sis_long ( void  )

Definition at line 310 of file test-patricia-trie.c.

Here is the call graph for this function:

void test_delete_by_id_sis_short ( void  )

Definition at line 277 of file test-patricia-trie.c.

Here is the call graph for this function:

void test_get_key ( void  )

Definition at line 418 of file test-patricia-trie.c.

Here is the call graph for this function:

void test_get_value ( gconstpointer  data)
void test_lookup_add ( gconstpointer  data)
void test_lookup_and_delete_for_same_prefix_key ( gconstpointer  data)

Definition at line 387 of file test-patricia-trie.c.

void test_open_success ( gconstpointer  data)

Definition at line 133 of file test-patricia-trie.c.

void test_open_without_path ( gconstpointer  data)

Definition at line 152 of file test-patricia-trie.c.

void test_remove ( void  )

Definition at line 171 of file test-patricia-trie.c.

Here is the call graph for this function:

void test_remove_with_null_as_path ( void  )

Definition at line 181 of file test-patricia-trie.c.

Here is the call graph for this function:

void test_set_value ( void  )
void test_set_value_with_null_value ( void  )

Definition at line 539 of file test-patricia-trie.c.

Here is the call graph for this function:

void test_truncate ( gconstpointer  data)

Definition at line 770 of file test-patricia-trie.c.

Here is the call graph for this function: