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

Go to the source code of this file.

Macros

#define ADD_DATA(label, expected, name, flags,key_type_name, value_type_name)
#define ADD_DATA(label, expected, table, name, flags, type_name, source)
#define ADD_DATA(label, expected, type_name, element_type,first_element, second_element, third_element)
#define SET_VALUE(index, name)

Functions

void data_table_create (void)
void test_table_create (gconstpointer data)
void data_column_create (void)
void test_column_create (gconstpointer data)
void data_uvector_column (void)
void data_vector_column (void)
void test_uvector_column (gconstpointer data)
void test_vector_column (gconstpointer data)
void test_unsequantial_records_in_table_with_keys (void)
void test_nil_reference (void)
void test_load_with_vector_int32_reference_key (void)
void test_tables_argument (void)
void cut_startup (void)
void cut_shutdown (void)
void cut_setup (void)
void cut_teardown (void)

Macro Definition Documentation

#define ADD_DATA (   label,
  expected,
  name,
  flags,
  key_type_name,
  value_type_name 
)
Value:
gcut_add_datum(label, \
"expected", G_TYPE_STRING, expected, \
"name", G_TYPE_STRING, name, \
"flags", G_TYPE_UINT, flags, \
"key_type_name", G_TYPE_STRING, key_type_name, \
"value_type_name", G_TYPE_STRING, value_type_name, \
NULL)

Definition at line 281 of file test-command-dump.c.

#define ADD_DATA (   label,
  expected,
  table,
  name,
  flags,
  type_name,
  source 
)
Value:
gcut_add_datum(label, \
"expected", G_TYPE_STRING, expected, \
"table", G_TYPE_STRING, table, \
"name", G_TYPE_STRING, name, \
"flags", G_TYPE_UINT, flags, \
"type_name", G_TYPE_STRING, type_name, \
"source", G_TYPE_STRING, source, \
NULL)

Definition at line 281 of file test-command-dump.c.

#define ADD_DATA (   label,
  expected,
  type_name,
  element_type,
  first_element,
  second_element,
  third_element 
)
Value:
do { \
gcut_add_datum(label, \
"expected", G_TYPE_STRING, expected, \
"type_name", G_TYPE_STRING, type_name, \
"first_element", element_type, first_element, \
"second_element", element_type, second_element, \
"third_element", element_type, third_element, \
NULL); \
} while(0)

Definition at line 281 of file test-command-dump.c.

#define SET_VALUE (   index,
  name 
)
Value:
if (g_str_equal(type_name, "Int32")) { \
GRN_INT32_INIT(&elements[index], 0); \
GRN_INT32_SET(context, &elements[index], \
gcut_data_get_int(data, name)); \
} if (g_str_equal(type_name, "Float")) { \
GRN_FLOAT_INIT(&elements[index], 0); \
GRN_FLOAT_SET(context, &elements[index], \
gcut_data_get_double(data, name)); \
} if (g_str_equal(type_name, "Bool")) { \
GRN_BOOL_INIT(&elements[index], 0); \
GRN_BOOL_SET(context, &elements[index], \
gcut_data_get_boolean(data, name)); \
} if (g_str_equal(type_name, "Text")) { \
GRN_TEXT_INIT(&elements[index], 0); \
GRN_TEXT_SETS(context, &elements[index], \
gcut_data_get_string(data, name)); \
}

Function Documentation

void cut_setup ( void  )

Definition at line 67 of file test-command-dump.c.

Here is the call graph for this function:

void cut_shutdown ( void  )

Definition at line 55 of file test-command-dump.c.

void cut_startup ( void  )

Definition at line 47 of file test-command-dump.c.

Here is the call graph for this function:

void cut_teardown ( void  )

Definition at line 82 of file test-command-dump.c.

Here is the call graph for this function:

void data_column_create ( void  )

Definition at line 246 of file test-command-dump.c.

void data_table_create ( void  )

Definition at line 215 of file test-command-dump.c.

void data_uvector_column ( void  )

Definition at line 293 of file test-command-dump.c.

void data_vector_column ( void  )

Definition at line 304 of file test-command-dump.c.

void test_column_create ( gconstpointer  data)

Definition at line 266 of file test-command-dump.c.

void test_load_with_vector_int32_reference_key ( void  )

Definition at line 515 of file test-command-dump.c.

void test_nil_reference ( void  )

Definition at line 477 of file test-command-dump.c.

void test_table_create ( gconstpointer  data)

Definition at line 225 of file test-command-dump.c.

void test_tables_argument ( void  )

Definition at line 540 of file test-command-dump.c.

void test_unsequantial_records_in_table_with_keys ( void  )

Definition at line 444 of file test-command-dump.c.

Here is the call graph for this function:

void test_uvector_column ( gconstpointer  data)

Definition at line 353 of file test-command-dump.c.

Here is the call graph for this function:

void test_vector_column ( gconstpointer  data)

Definition at line 397 of file test-command-dump.c.

Here is the call graph for this function: