GList用の検証ユーティリティ

GList用の検証ユーティリティ — GListに関する検証をもっと簡単に書くためのユーティリティ。

Functions

説明

検証を書くためには等価性を検証し、期待値と実測値を表示する必要があります。

このユーティリティはGListに関する検証の作成を補助します。

Functions

gcut_list_equal ()

gboolean
gcut_list_equal (const GList *list1,
                 const GList *list2,
                 GEqualFunc equal_func);

Compares two GList, list1 and list2 . equal_func is called for each corresponding values of list1 and list2 .

例:

1
TODO

Parameters

list1

比較するGList

 

list2

比較するGList

 

equal_func

ふたつの値を比較する関数。

 

Returns

TRUE if all corresponding values of list1 and list2 are reported TRUE by equal_func , FALSE otherwise.

Since: 1.0.5


gcut_list_inspect ()

gchar *
gcut_list_inspect (const GList *list,
                   GCutInspectFunction inspect_func,
                   gpointer user_data);

Inspects list . Each value of list is inspected by inspect_func . The returned string should be freed when no longer needed.

例:

1
TODO

Parameters

list

詳細を示すGList

 

inspect_func

各値の詳細を示す関数。

 

user_data

関数に渡すユーザ用データ。

 

Returns

listの詳細を示した文字列。

Since: 1.0.5


gcut_list_equal_int ()

gboolean
gcut_list_equal_int (const GList *list1,
                     const GList *list2);

Compares two GList, list1 and list2 . list1 and list2 should be GList of gint.

Parameters

list1

比較するgintGList

 

list2

比較するgintGList

 

Returns

list1list2の対応するすべての値が同じ場合はTRUE、そうでない場合はFALSE。

Since: 1.0.6


gcut_list_inspect_int ()

gchar *
gcut_list_inspect_int (const GList *list);

Inspects list . list should be GList of gint. The returned string should be freed when no longer needed.

Parameters

list

詳細を示すgintGList

 

Returns

listの詳細を示した文字列。

Since: 1.0.6


gcut_list_equal_uint ()

gboolean
gcut_list_equal_uint (const GList *list1,
                      const GList *list2);

Compares two GList, list1 and list2 . list1 and list2 should be GList of guint.

Parameters

list1

比較するguintGList

 

list2

比較するguintGList

 

Returns

list1list2のすべての対応する符号なし整数値が同じ値の場合はTRUE、そうでない場合はFALSE。

Since: 1.0.6


gcut_list_inspect_uint ()

gchar *
gcut_list_inspect_uint (const GList *list);

Inspects list . list should be GList of guint. The returned string should be freed when no longer needed.

Parameters

list

詳細を示すguintGListです。

 

Returns

listの詳細を示した文字列。

Since: 1.0.6


gcut_list_equal_string ()

gboolean
gcut_list_equal_string (const GList *list1,
                        const GList *list2);

Compares two GList, list1 and list2 . list1 and list2 should be GList of string.

Parameters

list1

比較する文字列のGList

 

list2

比較する文字列のGList

 

Returns

list1list2のすべての対応する文字列が同じ内容の文字列の場合はTRUE、そうでない場合はFALSE。

Since: 1.0.6


gcut_list_inspect_string ()

gchar *
gcut_list_inspect_string (const GList *list);

Inspects list . list should be GList of string. The returned string should be freed when no longer needed.

Parameters

list

詳細を示す文字列のGList

 

Returns

listの詳細を示した文字列。

Since: 1.0.6


gcut_list_inspect_object ()

gchar *
gcut_list_inspect_object (const GList *list);

Inspects list . list should be GList of GObject. The returned string should be freed when no longer needed.

Parameters

list

詳細を示すGObjectGList

 

Returns

listの詳細を示した文字列。

Since: 1.0.6


gcut_list_inspect_enum ()

gchar *
gcut_list_inspect_enum (GType type,
                        const GList *list);

Inspects list . list should be GList of enum value of GEnum. The returned string should be freed when no longer needed.

Parameters

type

GEnumの型。

 

list

詳細を示す列挙値のGList

 

Returns

listの詳細を示した文字列。

Since: 1.0.6


gcut_list_inspect_flags ()

gchar *
gcut_list_inspect_flags (GType type,
                         const GList *list);

Inspects list . list should be GList of flags value of GFlags. The returned string should be freed when no longer needed.

Parameters

type

GFlagsの型。

 

list

詳細を示すフラグ値のGList

 

Returns

listの詳細を示した文字列。

Since: 1.0.6


gcut_list_int_equal()

#define             gcut_list_int_equal(list1, list2)

gcut_list_int_equal has been deprecated since version 1.0.6 and should not be used in newly-written code.

Use gcut_list_equal_int() instead.

Compares two GList, list1 and list2 . list1 and list2 should be GList of gint.

Parameters

list1

比較するgintGList

 

list2

比較するgintGList

 

Returns

list1list2の対応するすべての値が同じ場合はTRUE、そうでない場合はFALSE。

Since: 1.0.5


gcut_list_int_inspect()

#define             gcut_list_int_inspect(list)

gcut_list_int_inspect has been deprecated since version 1.0.6 and should not be used in newly-written code.

Use gcut_list_inspect_int() instead.

Inspects list . list should be GList of gint. The returned string should be freed when no longer needed.

Parameters

list

詳細を示すgintGList

 

Returns

listの詳細を示した文字列。

Since: 1.0.5


gcut_list_uint_equal()

#define             gcut_list_uint_equal(list1, list2)

gcut_list_uint_equal has been deprecated since version 1.0.6 and should not be used in newly-written code.

Use gcut_list_equal_uint() instead.

Compares two GList, list1 and list2 . list1 and list2 should be GList of guint.

Parameters

list1

比較するguintGList

 

list2

比較するguintGList

 

Returns

list1list2のすべての対応する符号なし整数値が同じ値の場合はTRUE、そうでない場合はFALSE。

Since: 1.0.5


gcut_list_uint_inspect()

#define             gcut_list_uint_inspect(list)

gcut_list_uint_inspect has been deprecated since version 1.0.6 and should not be used in newly-written code.

Use gcut_list_inspect_uint() instead.

Inspects list . list should be GList of guint. The returned string should be freed when no longer needed.

Parameters

list

詳細を示すguintGListです。

 

Returns

listの詳細を示した文字列。

Since: 1.0.5


gcut_list_string_equal()

#define             gcut_list_string_equal(list1, list2)

gcut_list_string_equal has been deprecated since version 1.0.6 and should not be used in newly-written code.

Use gcut_list_equal_string() instead.

Compares two GList, list1 and list2 . list1 and list2 should be GList of string.

Parameters

list1

比較する文字列のGList

 

list2

比較する文字列のGList

 

Returns

list1list2のすべての対応する文字列が同じ内容の文字列の場合はTRUE、そうでない場合はFALSE。

Since: 1.0.5


gcut_list_string_inspect()

#define             gcut_list_string_inspect(list)

gcut_list_string_inspect has been deprecated since version 1.0.6 and should not be used in newly-written code.

Use gcut_list_inspect_string() instead.

Inspects list . list should be GList of string. The returned string should be freed when no longer needed.

Parameters

list

詳細を示す文字列のGList

 

Returns

listの詳細を示した文字列。

Since: 1.0.5


gcut_list_object_inspect()

#define             gcut_list_object_inspect(list)

gcut_list_object_inspect has been deprecated since version 1.0.6 and should not be used in newly-written code.

Use gcut_list_inspect_object() instead.

Inspects list . list should be GList of GObject. The returned string should be freed when no longer needed.

Parameters

list

詳細を示すGObjectGList

 

Returns

listの詳細を示した文字列。

Since: 1.0.5


gcut_list_enum_inspect()

#define             gcut_list_enum_inspect(list, type)

gcut_list_enum_inspect has been deprecated since version 1.0.6 and should not be used in newly-written code.

Use gcut_list_inspect_enum() instead.

Inspects list . list should be GList of enum value of GEnum. The returned string should be freed when no longer needed.

Parameters

list

詳細を示す列挙値のGList

 

type

GEnumの型。

 

Returns

listの詳細を示した文字列。

Since: 1.0.5


gcut_list_flags_inspect()

#define             gcut_list_flags_inspect(list, type)

gcut_list_flags_inspect has been deprecated since version 1.0.6 and should not be used in newly-written code.

Use gcut_list_inspect_flags() instead.

Inspects list . list should be GList of flags value of GFlags. The returned string should be freed when no longer needed.

Parameters

list

詳細を示すフラグ値のGList

 

type

GFlagsの型。

 

Returns

listの詳細を示した文字列。

Since: 1.0.5

Types and Values