void cut_setup(void) { logger = setup_grn_logger(); grn_ctx_init(&context, 0); database = grn_db_create(&context, NULL, NULL); }
void cut_setup(void) { logger = setup_grn_logger(); grn_ctx_init(&context, 0); GRN_VOID_INIT(&src); GRN_VOID_INIT(&dest); }
void cut_setup(void) { logger = setup_grn_logger(); grn_ctx_init(&context, 0); database = grn_db_create(&context, NULL, NULL); create_bookmarks_table(); add_count_column_to_bookmarks_table(); add_groonga_bookmark(); }
void cut_setup(void) { context = NULL; logger = setup_grn_logger(); context = g_new0(grn_ctx, 1); grn_ctx_init(context, 0); database = grn_db_create(context, NULL, NULL); }
void cut_setup(void) { gchar *table_path, *vgram_path; const gchar *type_name, *table_name; cut_set_fixture_data_dir(grn_test_get_base_dir(), "fixtures", "inverted-index", NULL); logger = setup_grn_logger(); expected_messages = NULL; record_ids = NULL; remove_tmp_directory(); g_mkdir_with_parents(tmp_directory, 0700); path = g_build_filename(tmp_directory, "inverted-index", NULL); context = g_new0(grn_ctx, 1); grn_test_assert(grn_ctx_init(context, GRN_CTX_USE_QL)); GRN_CTX_SET_ENCODING(context, GRN_ENC_UTF8); db = grn_db_create(context, NULL, NULL); grn_ctx_use(context, db); type_name = "name"; type = grn_type_create(context, type_name, strlen(type_name), GRN_OBJ_KEY_VAR_SIZE, TYPE_SIZE); table_name = "lexicon"; table_path = g_build_filename(tmp_directory, "lexicon-table", NULL); lexicon = grn_table_create(context, table_name, strlen(table_name), table_path, GRN_OBJ_PERSISTENT | GRN_OBJ_TABLE_PAT_KEY, type, NULL); grn_obj_set_info(context, lexicon, GRN_INFO_DEFAULT_TOKENIZER, grn_ctx_at(context, GRN_DB_BIGRAM)); g_free(table_path); vgram_path = g_build_filename(tmp_directory, "vgram", NULL); /* vgram = grn_vgram_create(vgram_path); */ g_free(vgram_path); inverted_index = NULL; }
void cut_setup(void) { const gchar *database_path; remove_tmp_directory(); g_mkdir_with_parents(tmp_directory, 0700); logger = setup_grn_logger(); context = g_new0(grn_ctx, 1); grn_ctx_init(context, 0); database_path = cut_build_path(tmp_directory, "database.groonga", NULL); database = grn_db_create(context, database_path, NULL); }
void cut_setup(void) { remove_tmp_directory(); g_mkdir_with_parents(tmp_directory, 0700); context = NULL; logger = setup_grn_logger(); context = g_new0(grn_ctx, 1); grn_ctx_init(context, 0); database = grn_db_create(context, cut_build_path(tmp_directory, "table.db", NULL), NULL); }
void cut_setup(void) { reset_variables(); logger = setup_grn_logger(); context = g_new(grn_ctx, 1); grn_ctx_init(context, 0); setup_database(); result = grn_table_create(context, NULL, 0, NULL, GRN_TABLE_HASH_KEY | GRN_OBJ_WITH_SUBREC, comments, NULL); grn_test_assert_context(context); }
void cut_setup(void) { view = NULL; entries = NULL; users = NULL; dogs = NULL; logger = setup_grn_logger(); context = g_new(grn_ctx, 1); grn_ctx_init(context, 0); remove_tmp_directory(); g_mkdir_with_parents(tmp_directory, 0700); database = grn_db_create(context, database_path, NULL); grn_test_assert_context(context); }