#include <pat.h>
#include <gcutter.h>
#include <glib/gstdio.h>
#include "../lib/grn-assertions.h"
Go to the source code of this file.
Macro Definition Documentation
Value:do \
{ \
GRN_CTX_SET_ENCODING(
context, default_encoding); \
default_value_size, default_flags); \
} while (0)
Definition at line 177 of file test-patricia-trie.h.
#define cut_assert_create_trie |
( |
| ) |
|
Value:do \
{ \
cut_assert_open_context(); \
trie_free(); \
create_trie(); \
grn_test_assert_context(
context); \
cut_assert(trie); \
} while (0)
Definition at line 184 of file test-patricia-trie.h.
#define cut_assert_fail_open_trie |
( |
| ) |
|
Value:do \
{ \
cut_assert_open_context(); \
trie_free(); \
open_trie(); \
cut_assert_null(trie); \
} while (0)
Definition at line 206 of file test-patricia-trie.h.
#define cut_assert_lookup |
( |
|
key, |
|
|
|
key_size, |
|
|
|
flags |
|
) |
| |
Value:do \
{ \
grn_test_assert_not_nil((
id =
lookup(key, key_size, (flags))), \
cut_message("flags: <%d>", *(flags))); \
} while (0)
Definition at line 223 of file test-patricia-trie.h.
#define cut_assert_lookup_add |
( |
|
key | ) |
|
#define cut_assert_lookup_failed |
( |
|
key, |
|
|
|
key_size, |
|
|
|
flags |
|
) |
| |
Value:do \
{ \
grn_test_assert_nil(
lookup(key, key_size, (flags)), \
cut_message("flags: <%d>", *(flags))); \
} while (0)
Definition at line 229 of file test-patricia-trie.h.
#define cut_assert_open_context |
( |
| ) |
|
Value:do \
{ \
context_free(); \
open_context(); \
} while (0)
Definition at line 170 of file test-patricia-trie.h.
#define cut_assert_open_cursor |
( |
| ) |
|
Value:do \
{ \
clear_messages(); \
cursor_free(); \
open_cursor(); \
cut_assert_equal_g_list_string(NULL,
messages()); \
cut_assert(cursor); \
} while (0)
Definition at line 294 of file test-patricia-trie.h.
#define cut_assert_open_trie |
( |
| ) |
|
Value:do \
{ \
clear_messages(); \
cut_assert_open_context(); \
trie_free(); \
open_trie(); \
gcut_assert_equal_list_string(NULL,
messages()); \
cut_assert(trie); \
} while (0)
Definition at line 196 of file test-patricia-trie.h.
#define DEFAULT_VALUE_SIZE 64 |
#define GRN_TABLE_ADD (0x01<<6) |
#define lookup |
( |
|
key, |
|
|
|
key_size, |
|
|
|
flags |
|
) |
| |
Value:do \
{ \
default_context_flags)); \
GRN_CTX_SET_ENCODING(
context, default_encoding); \
} while (0)
Definition at line 162 of file test-patricia-trie.h.
Value:
default_cursor_min, \
default_cursor_min_size, \
default_cursor_max, \
default_cursor_max_size, \
default_cursor_offset, \
default_cursor_limit, \
default_cursor_flags)
Definition at line 284 of file test-patricia-trie.h.
#define put_sample_entry |
( |
| ) |
|
Value:do \
{ \
cut_assert_lookup_add(sample_key); \
sample_id = id; \
} while (0)
Definition at line 278 of file test-patricia-trie.h.
Typedef Documentation