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

Go to the source code of this file.

Macros

#define ADD_DATA(label, expected, text)
#define GEO_TEXT   "130194581x503802073"
#define ADD_DATA(label, expected, type, text)
#define ADD_DATA(label, expected, number)
#define ADD_DATA(label, expected, number)
#define ADD_DATA(label, expected, number)
#define ADD_DATA(label, expected, number)

Functions

void data_text_to_bool (void)
void test_text_to_bool (gconstpointer data)
void test_text_to_int8 (void)
void test_text_to_uint8 (void)
void test_text_to_int16 (void)
void test_text_to_uint16 (void)
void test_text_to_int32 (void)
void test_text_to_uint32 (void)
void test_text_to_int64 (void)
void test_text_to_uint64 (void)
void test_text_to_float (void)
void test_text_to_time (void)
void test_text_to_geo_point (void)
void test_text_to_geo_point_empty (void)
void test_text_to_geo_point_garbage (void)
void test_text_to_geo_point_comma (void)
void test_text_to_geo_point_invalid (void)
void test_text_to_geo_point_in_degree (void)
void test_text_to_geo_point_in_degree_comma (void)
void test_text_to_geo_point_in_degree_invalid (void)
void test_text_to_geo_point_mixed (void)
void test_text_to_geo_point_mixed_comma (void)
void test_text_to_geo_point_mixed_invalid (void)
void data_text_error (void)
void test_text_error (gconstpointer data)
void test_bool_to_bool (void)
void data_int32_to_bool (void)
void test_int32_to_bool (gconstpointer data)
void test_int32_to_int8 (void)
void test_int32_to_uint8 (void)
void test_int32_to_int16 (void)
void test_int32_to_uint16 (void)
void test_int32_to_int32 (void)
void test_int32_to_uint32 (void)
void test_int32_to_int64 (void)
void test_int32_to_uint64 (void)
void test_int32_to_float (void)
void test_int32_to_time (void)
void test_int32_to_geo_point_zero (void)
void test_int32_to_geo_point_invalid (void)
void data_uint32_to_bool (void)
void test_uint32_to_bool (gconstpointer data)
void test_uint32_to_int8 (void)
void test_uint32_to_uint8 (void)
void test_uint32_to_int16 (void)
void test_uint32_to_uint16 (void)
void test_uint32_to_int32 (void)
void test_uint32_to_uint32 (void)
void test_uint32_to_int64 (void)
void test_uint32_to_uint64 (void)
void test_uint32_to_float (void)
void test_uint32_to_time (void)
void data_int64_to_bool (void)
void test_int64_to_bool (gconstpointer data)
void test_int64_to_int8 (void)
void test_int64_to_uint8 (void)
void test_int64_to_int16 (void)
void test_int64_to_uint16 (void)
void test_int64_to_int32 (void)
void test_int64_to_uint32 (void)
void test_int64_to_int64 (void)
void test_int64_to_uint64 (void)
void test_int64_to_float (void)
void test_int64_to_time (void)
void data_uint64_to_bool (void)
void test_uint64_to_bool (gconstpointer data)
void test_uint64_to_int8 (void)
void test_uint64_to_uint8 (void)
void test_uint64_to_int16 (void)
void test_uint64_to_uint16 (void)
void test_uint64_to_int32 (void)
void test_uint64_to_uint32 (void)
void test_uint64_to_int64 (void)
void test_uint64_to_uint64 (void)
void test_uint64_to_float (void)
void test_uint64_to_time (void)
void test_tokyo_geo_point_to_tokyo_geo_point (void)
void test_tokyo_geo_point_to_wgs84_geo_point (void)
void test_wgs84_geo_point_to_wgs84_geo_point (void)
void test_wgs84_geo_point_to_tokyo_geo_point (void)
void cut_setup (void)
void cut_teardown (void)
void test_int32_to_text (void)
void test_uint32_to_text (void)
void test_int64_to_text (void)
void test_uint64_to_text (void)

Macro Definition Documentation

#define ADD_DATA (   label,
  expected,
  text 
)
Value:
gcut_add_datum(label, \
"expected", G_TYPE_UINT, expected, \
"text", G_TYPE_STRING, text, \
NULL)
#define ADD_DATA (   label,
  expected,
  type,
  text 
)
Value:
gcut_add_datum(label, \
"expected", G_TYPE_UINT, expected, \
"type", G_TYPE_UINT, type, \
"text", G_TYPE_STRING, text, \
NULL)
#define ADD_DATA (   label,
  expected,
  number 
)
Value:
gcut_add_datum(label, \
"expected", G_TYPE_UINT, expected, \
"number", G_TYPE_INT, number, \
NULL)
#define ADD_DATA (   label,
  expected,
  number 
)
Value:
gcut_add_datum(label, \
"expected", G_TYPE_UINT, expected, \
"number", G_TYPE_UINT, number, \
NULL)
#define ADD_DATA (   label,
  expected,
  number 
)
Value:
gcut_add_datum(label, \
"expected", G_TYPE_UINT, expected, \
"number", G_TYPE_INT, number, \
NULL)
#define ADD_DATA (   label,
  expected,
  number 
)
Value:
gcut_add_datum(label, \
"expected", G_TYPE_UINT, expected, \
"number", G_TYPE_UINT, number, \
NULL)
#define GEO_TEXT   "130194581x503802073"

Function Documentation

void cut_setup ( void  )

Definition at line 119 of file test-cast-basic.c.

Here is the call graph for this function:

void cut_teardown ( void  )

Definition at line 128 of file test-cast-basic.c.

Here is the call graph for this function:

void data_int32_to_bool ( void  )

Definition at line 452 of file test-cast-basic.c.

void data_int64_to_bool ( void  )

Definition at line 724 of file test-cast-basic.c.

void data_text_error ( void  )

Definition at line 391 of file test-cast-basic.c.

void data_text_to_bool ( void  )

Definition at line 153 of file test-cast-basic.c.

void data_uint32_to_bool ( void  )

Definition at line 597 of file test-cast-basic.c.

void data_uint64_to_bool ( void  )

Definition at line 851 of file test-cast-basic.c.

void test_bool_to_bool ( void  )

Definition at line 430 of file test-cast-basic.c.

Here is the call graph for this function:

void test_int32_to_bool ( gconstpointer  data)

Definition at line 468 of file test-cast-basic.c.

Here is the call graph for this function:

void test_int32_to_float ( void  )

Definition at line 543 of file test-cast-basic.c.

Here is the call graph for this function:

void test_int32_to_geo_point_invalid ( void  )

Definition at line 580 of file test-cast-basic.c.

Here is the call graph for this function:

void test_int32_to_geo_point_zero ( void  )

Definition at line 571 of file test-cast-basic.c.

Here is the call graph for this function:

void test_int32_to_int16 ( void  )

Definition at line 493 of file test-cast-basic.c.

Here is the call graph for this function:

void test_int32_to_int32 ( void  )

Definition at line 509 of file test-cast-basic.c.

Here is the call graph for this function:

void test_int32_to_int64 ( void  )

Definition at line 525 of file test-cast-basic.c.

Here is the call graph for this function:

void test_int32_to_int8 ( void  )

Definition at line 477 of file test-cast-basic.c.

Here is the call graph for this function:

void test_int32_to_text ( void  )

Definition at line 563 of file test-cast-basic.c.

Here is the call graph for this function:

void test_int32_to_time ( void  )

Definition at line 551 of file test-cast-basic.c.

Here is the call graph for this function:

void test_int32_to_uint16 ( void  )

Definition at line 501 of file test-cast-basic.c.

Here is the call graph for this function:

void test_int32_to_uint32 ( void  )

Definition at line 517 of file test-cast-basic.c.

Here is the call graph for this function:

void test_int32_to_uint64 ( void  )

Definition at line 534 of file test-cast-basic.c.

Here is the call graph for this function:

void test_int32_to_uint8 ( void  )

Definition at line 485 of file test-cast-basic.c.

Here is the call graph for this function:

void test_int64_to_bool ( gconstpointer  data)

Definition at line 740 of file test-cast-basic.c.

Here is the call graph for this function:

void test_int64_to_float ( void  )

Definition at line 815 of file test-cast-basic.c.

Here is the call graph for this function:

void test_int64_to_int16 ( void  )

Definition at line 765 of file test-cast-basic.c.

Here is the call graph for this function:

void test_int64_to_int32 ( void  )

Definition at line 781 of file test-cast-basic.c.

Here is the call graph for this function:

void test_int64_to_int64 ( void  )

Definition at line 797 of file test-cast-basic.c.

Here is the call graph for this function:

void test_int64_to_int8 ( void  )

Definition at line 749 of file test-cast-basic.c.

Here is the call graph for this function:

void test_int64_to_text ( void  )

Definition at line 835 of file test-cast-basic.c.

Here is the call graph for this function:

void test_int64_to_time ( void  )

Definition at line 823 of file test-cast-basic.c.

Here is the call graph for this function:

void test_int64_to_uint16 ( void  )

Definition at line 773 of file test-cast-basic.c.

Here is the call graph for this function:

void test_int64_to_uint32 ( void  )

Definition at line 789 of file test-cast-basic.c.

Here is the call graph for this function:

void test_int64_to_uint64 ( void  )

Definition at line 806 of file test-cast-basic.c.

Here is the call graph for this function:

void test_int64_to_uint8 ( void  )

Definition at line 757 of file test-cast-basic.c.

Here is the call graph for this function:

void test_text_error ( gconstpointer  data)

Definition at line 406 of file test-cast-basic.c.

Here is the call graph for this function:

void test_text_to_bool ( gconstpointer  data)

Definition at line 170 of file test-cast-basic.c.

Here is the call graph for this function:

void test_text_to_float ( void  )

Definition at line 245 of file test-cast-basic.c.

Here is the call graph for this function:

void test_text_to_geo_point ( void  )

Definition at line 265 of file test-cast-basic.c.

Here is the call graph for this function:

void test_text_to_geo_point_comma ( void  )

Definition at line 304 of file test-cast-basic.c.

Here is the call graph for this function:

void test_text_to_geo_point_empty ( void  )

Definition at line 277 of file test-cast-basic.c.

Here is the call graph for this function:

void test_text_to_geo_point_garbage ( void  )

Definition at line 289 of file test-cast-basic.c.

Here is the call graph for this function:

void test_text_to_geo_point_in_degree ( void  )

Definition at line 325 of file test-cast-basic.c.

Here is the call graph for this function:

void test_text_to_geo_point_in_degree_comma ( void  )

Definition at line 337 of file test-cast-basic.c.

Here is the call graph for this function:

void test_text_to_geo_point_in_degree_invalid ( void  )

Definition at line 349 of file test-cast-basic.c.

Here is the call graph for this function:

void test_text_to_geo_point_invalid ( void  )

Definition at line 316 of file test-cast-basic.c.

Here is the call graph for this function:

void test_text_to_geo_point_mixed ( void  )

Definition at line 358 of file test-cast-basic.c.

Here is the call graph for this function:

void test_text_to_geo_point_mixed_comma ( void  )

Definition at line 370 of file test-cast-basic.c.

Here is the call graph for this function:

void test_text_to_geo_point_mixed_invalid ( void  )

Definition at line 382 of file test-cast-basic.c.

Here is the call graph for this function:

void test_text_to_int16 ( void  )

Definition at line 195 of file test-cast-basic.c.

Here is the call graph for this function:

void test_text_to_int32 ( void  )

Definition at line 211 of file test-cast-basic.c.

Here is the call graph for this function:

void test_text_to_int64 ( void  )

Definition at line 227 of file test-cast-basic.c.

Here is the call graph for this function:

void test_text_to_int8 ( void  )

Definition at line 179 of file test-cast-basic.c.

Here is the call graph for this function:

void test_text_to_time ( void  )

Definition at line 253 of file test-cast-basic.c.

Here is the call graph for this function:

void test_text_to_uint16 ( void  )

Definition at line 203 of file test-cast-basic.c.

Here is the call graph for this function:

void test_text_to_uint32 ( void  )

Definition at line 219 of file test-cast-basic.c.

Here is the call graph for this function:

void test_text_to_uint64 ( void  )

Definition at line 236 of file test-cast-basic.c.

Here is the call graph for this function:

void test_text_to_uint8 ( void  )

Definition at line 187 of file test-cast-basic.c.

Here is the call graph for this function:

void test_tokyo_geo_point_to_tokyo_geo_point ( void  )

Definition at line 970 of file test-cast-basic.c.

Here is the call graph for this function:

void test_tokyo_geo_point_to_wgs84_geo_point ( void  )

Definition at line 991 of file test-cast-basic.c.

Here is the call graph for this function:

void test_uint32_to_bool ( gconstpointer  data)

Definition at line 613 of file test-cast-basic.c.

Here is the call graph for this function:

void test_uint32_to_float ( void  )

Definition at line 688 of file test-cast-basic.c.

Here is the call graph for this function:

void test_uint32_to_int16 ( void  )

Definition at line 638 of file test-cast-basic.c.

Here is the call graph for this function:

void test_uint32_to_int32 ( void  )

Definition at line 654 of file test-cast-basic.c.

Here is the call graph for this function:

void test_uint32_to_int64 ( void  )

Definition at line 670 of file test-cast-basic.c.

Here is the call graph for this function:

void test_uint32_to_int8 ( void  )

Definition at line 622 of file test-cast-basic.c.

Here is the call graph for this function:

void test_uint32_to_text ( void  )

Definition at line 708 of file test-cast-basic.c.

Here is the call graph for this function:

void test_uint32_to_time ( void  )

Definition at line 696 of file test-cast-basic.c.

Here is the call graph for this function:

void test_uint32_to_uint16 ( void  )

Definition at line 646 of file test-cast-basic.c.

Here is the call graph for this function:

void test_uint32_to_uint32 ( void  )

Definition at line 662 of file test-cast-basic.c.

Here is the call graph for this function:

void test_uint32_to_uint64 ( void  )

Definition at line 679 of file test-cast-basic.c.

Here is the call graph for this function:

void test_uint32_to_uint8 ( void  )

Definition at line 630 of file test-cast-basic.c.

Here is the call graph for this function:

void test_uint64_to_bool ( gconstpointer  data)

Definition at line 867 of file test-cast-basic.c.

Here is the call graph for this function:

void test_uint64_to_float ( void  )

Definition at line 942 of file test-cast-basic.c.

Here is the call graph for this function:

void test_uint64_to_int16 ( void  )

Definition at line 892 of file test-cast-basic.c.

Here is the call graph for this function:

void test_uint64_to_int32 ( void  )

Definition at line 908 of file test-cast-basic.c.

Here is the call graph for this function:

void test_uint64_to_int64 ( void  )

Definition at line 924 of file test-cast-basic.c.

Here is the call graph for this function:

void test_uint64_to_int8 ( void  )

Definition at line 876 of file test-cast-basic.c.

Here is the call graph for this function:

void test_uint64_to_text ( void  )

Definition at line 962 of file test-cast-basic.c.

Here is the call graph for this function:

void test_uint64_to_time ( void  )

Definition at line 950 of file test-cast-basic.c.

Here is the call graph for this function:

void test_uint64_to_uint16 ( void  )

Definition at line 900 of file test-cast-basic.c.

Here is the call graph for this function:

void test_uint64_to_uint32 ( void  )

Definition at line 916 of file test-cast-basic.c.

Here is the call graph for this function:

void test_uint64_to_uint64 ( void  )

Definition at line 933 of file test-cast-basic.c.

Here is the call graph for this function:

void test_uint64_to_uint8 ( void  )

Definition at line 884 of file test-cast-basic.c.

Here is the call graph for this function:

void test_wgs84_geo_point_to_tokyo_geo_point ( void  )

Definition at line 1035 of file test-cast-basic.c.

Here is the call graph for this function:

void test_wgs84_geo_point_to_wgs84_geo_point ( void  )

Definition at line 1014 of file test-cast-basic.c.

Here is the call graph for this function: