Groonga 3.0.9 Source Code Document
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
Macros | Typedefs | Functions
grn-test-utils.h File Reference
#include <groonga.h>
#include <gcutter.h>
#include <string.h>
Include dependency graph for grn-test-utils.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define GRN_TEST_ENV_TABLE_PATH   "GRN_TEST_TABLE_PATH"
#define GRN_TEST_ENV_TABLE_TYPE   "GRN_TEST_TABLE_TYPE"
#define GRN_TEST_ENV_HASH_PATH   "GRN_TEST_HASH_PATH"
#define GRN_TEST_ENV_PATRICIA_TRIE_PATH   "GRN_TEST_PATRICIA_TRIE_PATH"
#define GRN_TEST_ENV_MULTI_THREAD   "GRN_TEST_MULTI_THREAD"
#define GRN_TEST_ENV_N_PROCESSES   "GRN_TEST_N_PROCESSES"
#define GRN_TEST_ENV_PROCESS_NUMBER   "GRN_TEST_PROCESS_NUMBER"
#define GRN_TEST_GEO_COORDINATE(hours, minutes, seconds)   ((hours) * 3600 + (minutes) * 60 + (seconds)) * 1000
#define GRN_TEST_GEO_POINT_STRING(latitude, longitude)   g_strdup_printf("%dx%d", latitude, longitude)
#define g_thread_new(name, func, data)   g_thread_create(func, data, TRUE, NULL)

Typedefs

typedef void(* grn_test_set_parameters_func )(void)

Functions

const gchar * grn_rc_to_string (grn_rc rc)
const gchar * grn_test_get_base_dir (void)
const gchar * grn_test_get_build_dir (void)
const gchar * grn_test_get_tmp_dir (void)
grn_logger_infogrn_collect_logger_new (void)
void grn_collect_logger_clear_messages (grn_logger_info *logger)
const GList * grn_collect_logger_get_messages (grn_logger_info *logger)
const gchar * grn_collect_logger_to_string (grn_logger_info *logger)
void grn_collect_logger_print_messages (grn_logger_info *logger)
void grn_collect_logger_free (grn_logger_info *logger)
grn_logger_infosetup_grn_logger (void)
void teardown_grn_logger (grn_logger_info *logger)
GString * grn_long_path_new (const gchar *base_path, gssize max_size)
GString * grn_long_name_new (gssize max_size)
GList * grn_test_pat_cursor_get_keys (grn_ctx *context, grn_table_cursor *cursor)
GList * grn_test_pat_get_keys (grn_ctx *context, grn_obj *patricia_trie)
GList * grn_test_pat_cursor_get_pairs (grn_ctx *context, grn_table_cursor *cursor)
GHashTable * grn_test_pat_get_pairs (grn_ctx *context, grn_obj *patricia_trie)
const gchar * grn_test_type_inspect (grn_ctx *context, unsigned char type)
void grn_test_object_inspect (GString *output, grn_ctx *context, grn_obj *object)
const gchar * grn_test_send_command (grn_ctx *context, const gchar *command)
void grn_test_send_commands (grn_ctx *context, const gchar *line_separated_commands)
const GList * grn_test_table_collect_string (grn_ctx *context, grn_obj *table, const gchar *text_column_name)
gint grn_test_coordinate_in_milliseconds (gdouble coordinate_in_degree)
gdouble grn_test_coordinate_in_degree (gint coordinate_in_milliseconds)
const gchar * grn_test_location_string (gdouble latitude_in_degree, gdouble longitude_in_degree)

Macro Definition Documentation

#define g_thread_new (   name,
  func,
  data 
)    g_thread_create(func, data, TRUE, NULL)

Definition at line 47 of file grn-test-utils.h.

#define GRN_TEST_ENV_HASH_PATH   "GRN_TEST_HASH_PATH"

Definition at line 34 of file grn-test-utils.h.

#define GRN_TEST_ENV_MULTI_THREAD   "GRN_TEST_MULTI_THREAD"

Definition at line 36 of file grn-test-utils.h.

#define GRN_TEST_ENV_N_PROCESSES   "GRN_TEST_N_PROCESSES"

Definition at line 37 of file grn-test-utils.h.

#define GRN_TEST_ENV_PATRICIA_TRIE_PATH   "GRN_TEST_PATRICIA_TRIE_PATH"

Definition at line 35 of file grn-test-utils.h.

#define GRN_TEST_ENV_PROCESS_NUMBER   "GRN_TEST_PROCESS_NUMBER"

Definition at line 38 of file grn-test-utils.h.

#define GRN_TEST_ENV_TABLE_PATH   "GRN_TEST_TABLE_PATH"

Definition at line 32 of file grn-test-utils.h.

#define GRN_TEST_ENV_TABLE_TYPE   "GRN_TEST_TABLE_TYPE"

Definition at line 33 of file grn-test-utils.h.

#define GRN_TEST_GEO_COORDINATE (   hours,
  minutes,
  seconds 
)    ((hours) * 3600 + (minutes) * 60 + (seconds)) * 1000

Definition at line 40 of file grn-test-utils.h.

#define GRN_TEST_GEO_POINT_STRING (   latitude,
  longitude 
)    g_strdup_printf("%dx%d", latitude, longitude)

Definition at line 43 of file grn-test-utils.h.

Typedef Documentation

typedef void(* grn_test_set_parameters_func)(void)

Definition at line 51 of file grn-test-utils.h.

Function Documentation

void grn_collect_logger_clear_messages ( grn_logger_info logger)

Definition at line 364 of file grn-test-utils.c.

Here is the caller graph for this function:

void grn_collect_logger_free ( grn_logger_info logger)

Definition at line 414 of file grn-test-utils.c.

Here is the caller graph for this function:

const GList* grn_collect_logger_get_messages ( grn_logger_info logger)

Definition at line 372 of file grn-test-utils.c.

Here is the caller graph for this function:

grn_logger_info* grn_collect_logger_new ( void  )

Definition at line 350 of file grn-test-utils.c.

Here is the caller graph for this function:

void grn_collect_logger_print_messages ( grn_logger_info logger)

Definition at line 401 of file grn-test-utils.c.

Here is the call graph for this function:

const gchar* grn_collect_logger_to_string ( grn_logger_info logger)

Definition at line 380 of file grn-test-utils.c.

Here is the call graph for this function:

GString* grn_long_name_new ( gssize  max_size)

Definition at line 459 of file grn-test-utils.c.

Here is the caller graph for this function:

GString* grn_long_path_new ( const gchar *  base_path,
gssize  max_size 
)

Definition at line 445 of file grn-test-utils.c.

Here is the caller graph for this function:

const gchar* grn_rc_to_string ( grn_rc  rc)

Definition at line 25 of file grn-test-utils.c.

Here is the caller graph for this function:

gdouble grn_test_coordinate_in_degree ( gint  coordinate_in_milliseconds)

Definition at line 752 of file grn-test-utils.c.

gint grn_test_coordinate_in_milliseconds ( gdouble  coordinate_in_degree)

Definition at line 737 of file grn-test-utils.c.

Here is the caller graph for this function:

const gchar* grn_test_get_base_dir ( void  )

Definition at line 181 of file grn-test-utils.c.

Here is the caller graph for this function:

const gchar* grn_test_get_build_dir ( void  )

Definition at line 207 of file grn-test-utils.c.

Here is the call graph for this function:

Here is the caller graph for this function:

const gchar* grn_test_get_tmp_dir ( void  )

Definition at line 234 of file grn-test-utils.c.

Here is the call graph for this function:

Here is the caller graph for this function:

const gchar* grn_test_location_string ( gdouble  latitude_in_degree,
gdouble  longitude_in_degree 
)

Definition at line 758 of file grn-test-utils.c.

Here is the call graph for this function:

Here is the caller graph for this function:

void grn_test_object_inspect ( GString *  output,
grn_ctx context,
grn_obj object 
)

Definition at line 626 of file grn-test-utils.c.

Here is the call graph for this function:

Here is the caller graph for this function:

GList* grn_test_pat_cursor_get_keys ( grn_ctx context,
grn_table_cursor cursor 
)

Definition at line 477 of file grn-test-utils.c.

Here is the call graph for this function:

Here is the caller graph for this function:

GList* grn_test_pat_cursor_get_pairs ( grn_ctx context,
grn_table_cursor cursor 
)

Definition at line 512 of file grn-test-utils.c.

Here is the call graph for this function:

Here is the caller graph for this function:

GList* grn_test_pat_get_keys ( grn_ctx context,
grn_obj patricia_trie 
)

Definition at line 498 of file grn-test-utils.c.

Here is the call graph for this function:

Here is the caller graph for this function:

GHashTable* grn_test_pat_get_pairs ( grn_ctx context,
grn_obj patricia_trie 
)

Definition at line 540 of file grn-test-utils.c.

Here is the call graph for this function:

const gchar* grn_test_send_command ( grn_ctx context,
const gchar *  command 
)

Definition at line 660 of file grn-test-utils.c.

Here is the call graph for this function:

Here is the caller graph for this function:

void grn_test_send_commands ( grn_ctx context,
const gchar *  line_separated_commands 
)

Definition at line 692 of file grn-test-utils.c.

Here is the call graph for this function:

const GList* grn_test_table_collect_string ( grn_ctx context,
grn_obj table,
const gchar *  text_column_name 
)

Definition at line 705 of file grn-test-utils.c.

Here is the call graph for this function:

Here is the caller graph for this function:

const gchar* grn_test_type_inspect ( grn_ctx context,
unsigned char  type 
)

Definition at line 569 of file grn-test-utils.c.

Here is the caller graph for this function:

grn_logger_info* setup_grn_logger ( void  )

Definition at line 426 of file grn-test-utils.c.

Here is the call graph for this function:

Here is the caller graph for this function:

void teardown_grn_logger ( grn_logger_info logger)

Definition at line 436 of file grn-test-utils.c.

Here is the call graph for this function:

Here is the caller graph for this function: