Groonga 3.0.9 Source Code Document
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
Macros | Functions
test-snip.c File Reference
#include <groonga.h>
#include <gcutter.h>
#include <glib/gstdio.h>
#include "../lib/grn-assertions.h"
Include dependency graph for test-snip.c:

Go to the source code of this file.

Macros

#define cut_check_g_error(error)
#define cut_assert_open_snip()
#define ADD_DATUM(label, expected, flags)

Functions

void test_simple_exec (void)
void test_simple_exec_euc_jp (void)
void test_simple_exec_sjis (void)
void test_simple_exec_utf8 (void)
void test_exec_with_empty_string (void)
void test_exec_with_invalid_argument (void)
void data_proper_tag_insertion (void)
void test_proper_tag_insertion (gconstpointer data)
void test_exec_composed_decomposed_normalize_utf8 (void)
void test_exec_with_normalize (void)
void test_exec_with_many_results (void)
void test_customized_tag (void)
void test_multi_conditions (void)
void test_invalid_result_index (void)
void test_html_mapping (void)
void test_html_mapping_escape (void)
void test_close_with_null (void)
void test_open_with_invalid_max_results (void)
void test_add_cond_with_invalid_argument (void)
void test_add_cond_with_too_large_keyword (void)
void test_add_cond_with_copy_tag_flag (void)
void cut_startup (void)
void cut_shutdown (void)
void cut_setup (void)
void cut_teardown (void)
void test_exec_with_one_length_keyword (void)
void test_open_with_copy_tag (void)
void test_add_cond_with_copy_tag (void)

Macro Definition Documentation

#define ADD_DATUM (   label,
  expected,
  flags 
)
Value:
gcut_add_datum(label, \
"expected", G_TYPE_STRING, (expected),\
"flags", G_TYPE_INT, (flags), \
NULL)
#define cut_assert_open_snip ( )
Value:
do \
{ \
open_snip(); \
cut_assert(snip); \
} while (0)

Definition at line 258 of file test-snip.c.

#define cut_check_g_error (   error)
Value:
do \
{ \
GError *_error = (error); \
if (_error) { \
const gchar *message; \
message = cut_take_printf("%s: %d: %s", \
g_quark_to_string(_error->domain), \
_error->code, \
_error->message); \
g_error_free(_error); \
cut_error("%s", message); \
} \
} while (0)

Definition at line 157 of file test-snip.c.

Function Documentation

void cut_setup ( void  )

Definition at line 199 of file test-snip.c.

Here is the call graph for this function:

void cut_shutdown ( void  )

Definition at line 187 of file test-snip.c.

void cut_startup ( void  )

Definition at line 172 of file test-snip.c.

Here is the call graph for this function:

void cut_teardown ( void  )

Definition at line 220 of file test-snip.c.

Here is the call graph for this function:

void data_proper_tag_insertion ( void  )

Definition at line 521 of file test-snip.c.

void test_add_cond_with_copy_tag ( void  )

Definition at line 916 of file test-snip.c.

Here is the call graph for this function:

void test_add_cond_with_copy_tag_flag ( void  )
void test_add_cond_with_invalid_argument ( void  )

Definition at line 836 of file test-snip.c.

Here is the call graph for this function:

void test_add_cond_with_too_large_keyword ( void  )

Definition at line 891 of file test-snip.c.

Here is the call graph for this function:

void test_close_with_null ( void  )

Definition at line 781 of file test-snip.c.

Here is the call graph for this function:

void test_customized_tag ( void  )

Definition at line 622 of file test-snip.c.

Here is the call graph for this function:

void test_exec_composed_decomposed_normalize_utf8 ( void  )

Definition at line 449 of file test-snip.c.

Here is the call graph for this function:

void test_exec_with_empty_string ( void  )

Definition at line 411 of file test-snip.c.

Here is the call graph for this function:

void test_exec_with_invalid_argument ( void  )

Definition at line 424 of file test-snip.c.

Here is the call graph for this function:

void test_exec_with_many_results ( void  )
void test_exec_with_normalize ( void  )

Definition at line 478 of file test-snip.c.

Here is the call graph for this function:

void test_exec_with_one_length_keyword ( void  )

Definition at line 588 of file test-snip.c.

Here is the call graph for this function:

void test_html_mapping ( void  )

Definition at line 722 of file test-snip.c.

Here is the call graph for this function:

void test_html_mapping_escape ( void  )

Definition at line 750 of file test-snip.c.

Here is the call graph for this function:

void test_invalid_result_index ( void  )

Definition at line 698 of file test-snip.c.

Here is the call graph for this function:

void test_multi_conditions ( void  )

Definition at line 659 of file test-snip.c.

Here is the call graph for this function:

void test_open_with_copy_tag ( void  )

Definition at line 803 of file test-snip.c.

void test_open_with_invalid_max_results ( void  )

Definition at line 787 of file test-snip.c.

void test_proper_tag_insertion ( gconstpointer  data)

Definition at line 555 of file test-snip.c.

Here is the call graph for this function:

void test_simple_exec ( void  )

Definition at line 265 of file test-snip.c.

Here is the call graph for this function:

void test_simple_exec_euc_jp ( void  )

Definition at line 298 of file test-snip.c.

Here is the call graph for this function:

void test_simple_exec_sjis ( void  )

Definition at line 337 of file test-snip.c.

Here is the call graph for this function:

void test_simple_exec_utf8 ( void  )

Definition at line 376 of file test-snip.c.

Here is the call graph for this function: