#include <hash.h>
#include <gcutter.h>
#include <glib/gstdio.h>
#include "../lib/grn-assertions.h"
#include "../lib/grn-test-hash-factory.h"
#include "../lib/grn-test-hash-assertions.h"
Go to the source code of this file.
Macro Definition Documentation
#define cut_assert_lookup |
( |
|
key, |
|
|
|
flags |
|
) |
| |
Value:do \
{ \
grn_test_assert_not_nil((
id =
lookup(key, (flags))), \
cut_message("flags: <%d>", *(flags))); \
} while (0)
Definition at line 149 of file test-hash.h.
#define cut_assert_lookup_add |
( |
|
key | ) |
|
#define cut_assert_lookup_add_with_value |
( |
|
key, |
|
|
|
value |
|
) |
| |
Value:do \
{ \
const gchar *_sample_value = sample_value; \
sample_value = cut_take_string(g_strdup(value)); \
cut_assert_lookup_add(key); \
sample_value = _sample_value; \
} while (0)
Definition at line 200 of file test-hash.h.
#define cut_assert_lookup_failed |
( |
|
key, |
|
|
|
flags |
|
) |
| |
Value:do \
{ \
grn_test_assert_nil(
lookup(key, (flags)), \
cut_message("flags: <%d>", *(flags))); \
} while (0)
Definition at line 155 of file test-hash.h.
#define cut_assert_open_cursor |
( |
| ) |
|
Value:do \
{ \
clear_messages(); \
open_cursor(); \
cut_assert_equal_g_list_string(NULL,
messages()); \
cut_assert(cursor); \
} while (0)
Definition at line 216 of file test-hash.h.
#define GRN_TABLE_ADD (0x01<<6) |
#define lookup |
( |
|
key, |
|
|
|
flags |
|
) |
| |
Value:do \
{ \
\
gcut_assert_error(error); \
} while (0)
Definition at line 208 of file test-hash.h.
Typedef Documentation