| Top |
void gcut_assert_equal_type (GType expected,GType actual,...);
Passes if expected
== actual
.
Since: 1.0.3
void cut_assert_equal_g_type (GType expected,GType actual,...);
cut_assert_equal_g_type has been deprecated since version 1.0.3 and should not be used in newly-written code.
Use gcut_assert_equal_type() instead.
Passes if expected
== actual
.
void gcut_assert_equal_value (GValue *expected,GValue *actual,...);
Passes if expected
== actual
.
Since: 1.0.3
void cut_assert_equal_g_value (GValue *expected,GValue *actual,...);
cut_assert_equal_g_value has been deprecated since version 1.0.3 and should not be used in newly-written code.
Use gcut_assert_equal_value() instead.
Passes if expected
== actual
.
void gcut_assert_equal_list (GList *expected,GList *actual,GEqualFunc equal_function,GCutInspectFunction inspect_function,gpointer inspect_user_data,...);
Passes if equal_function
(expected
, actual
) == CUT_TRUE.
expected |
期待するリスト。 |
|
actual |
実際のリスト。 |
|
equal_function |
|
|
inspect_function |
|
|
inspect_user_data |
a data to be passed to |
|
... |
追加メッセージ(省略可能)。詳細は |
Since: 1.0.6
void gcut_assert_equal_list_int (GList *expected,GList *actual,...);
Passes if expected
== actual
.
Since: 1.0.3
void cut_assert_equal_g_list_int (GList *expected,GList *actual,...);
cut_assert_equal_g_list_int has been deprecated since version 1.0.3 and should not be used in newly-written code.
Use gcut_assert_equal_list_int() instead.
Passes if expected
== actual
.
Since: 0.8
void gcut_assert_equal_list_uint (GList *expected,GList *actual,...);
Passes if expected
== actual
.
expected |
期待する符号無し整数のリスト。 |
|
actual |
実際の符号無し整数のリスト。 |
|
... |
追加メッセージ(省略可能)。詳細は |
Since: 1.0.3
void gcut_assert_equal_list_string (GList *expected,GList *actual,...);
Passes if expected
== actual
.
Since: 1.0.3
void cut_assert_equal_g_list_string (GList *expected,GList *actual,...);
cut_assert_equal_g_list_string has been deprecated since version 1.0.3 and should not be used in newly-written code.
Use gcut_assert_equal_list_string() instead.
Passes if expected
== actual
.
Since: 0.8
void gcut_assert_equal_list_object (GList *expected,GList *actual,...);
expectedとactualが同じGObject *を同じ順番で持っているときパスします。
expected |
期待するGObjectのリスト。 |
|
actual |
実際のGObjectのリスト。 |
|
... |
追加メッセージ(省略可能)。詳細は |
Since: 1.0.5
void gcut_assert_equal_list_object_custom (GList *expected,GList *actual,GEqualFunc equal_function,...);
Passes if expected
and actual
has same GObject in same
order. Each comparison of GObject uses equal_function
.
expected |
期待するGObjectのリスト。 |
|
actual |
実際のGObjectのリスト。 |
|
equal_function |
ふたつのGObjectを比較する関数。 |
|
... |
追加メッセージ(省略可能)。詳細は |
Since: 1.0.5
void gcut_assert_equal_list_enum (GType type,GList *expected,GList *actual,...);
expectedとactualが同じ列挙値を同じ順序で持っているときパスします。
type |
GEnumの型。 |
|
expected |
期待する列挙値のリスト。 |
|
actual |
実際の列挙値のリスト。 |
|
... |
追加メッセージ(省略可能)。詳細は |
Since: 1.0.5
void gcut_assert_equal_list_flags (GType type,GList *expected,GList *actual,...);
expectedとactualが同じフラグ値を同じ順序で持っているときパスします。
type |
GFlagsの型。 |
|
expected |
期待するフラグ値のリスト。 |
|
actual |
実際のフラグ値のリスト。 |
|
... |
追加メッセージ(省略可能)。詳細は |
Since: 1.0.5
void gcut_assert_equal_hash_table (GHashTable *expected,GHashTable *actual,GEqualFunc equal_function,GCutInspectFunction key_inspect_function,GCutInspectFunction value_inspect_function,gpointer inspect_user_data,...);
Passes if expected
== actual
.
expected |
期待する文字列のGHashTable。 |
|
actual |
実際の文字列のGHashTable。 |
|
equal_function |
|
|
key_inspect_function |
|
|
value_inspect_function |
|
|
inspect_user_data |
a data to be passed to |
|
... |
追加メッセージ(省略可能)。詳細は |
Since: 1.0.6
void gcut_assert_equal_hash_table_string_string (GHashTable *expected,GHashTable *actual,...);
Passes if expected
== actual
.
expected |
期待する文字列のGHashTable。 |
|
actual |
実際の文字列のGHashTable。 |
|
... |
追加メッセージ(省略可能)。詳細は |
Since: 1.0.4
void gcut_assert_error (GError *error,...);
error == NULLのときパスします。
Since: 1.0.3
void cut_assert_g_error (GError *error,...);
cut_assert_g_error has been deprecated since version 1.0.3 and should not be used in newly-written code.
Use gcut_assert_error() instead.
error == NULLのときパスします。
Since: 1.0
void gcut_assert_equal_error (GError *expected,GError *actual,...);
Passes if expected
== actual
.
Since: 1.0.5
void gcut_assert_remove_path (const gchar *path,...);
Passes if cut_utils_build_path(path
, ...) is removed successfully.
Since: 1.0.3
void cut_assert_remove_path (const gchar *path,...);
cut_assert_remove_path has been deprecated since version 1.0.3 and should not be used in newly-written code.
Use gcut_assert_remove_path() instead.
Passes if cut_utils_build_path(path
, ...) is removed successfully.
Since: 1.0.2
void gcut_assert_equal_time_val (GTimeVal expected,GTimeVal actual,...);
Passes if expected
== actual
.
Since: 1.0.4
void gcut_assert_equal_enum (GType enum_type,gint expected,gint actual,...);
Passes if expected
== actual
.
例:
1 2 3 4 |
gcut_assert_equal_enum(GTK_TYPE_DIRECTION_TYPE, GTK_DIR_LEFT, GTK_DIR_LEFT); -> Pass gcut_assert_equal_enum(GTK_TYPE_DIRECTION_TYPE, GTK_DIR_DOWN, GTK_DIR_LEFT); -> Fail |
Since: 1.0.5
void gcut_assert_equal_flags (GType flags_type,guint expected,guint actual,...);
Passes if expected
== actual
.
例:
1 2 3 4 5 6 7 8 9 |
gcut_assert_equal_flags(GTK_TYPE_DIALOG_FLAGS, GTK_DIALOG_DESTROY_MODAL | GTK_DIALOG_DESTROY_WITH_PARENT, GTK_DIALOG_DESTROY_MODAL | GTK_DIALOG_DESTROY_WITH_PARENT); -> Pass gcut_assert_equal_flags(GTK_TYPE_DIALOG_FLAGS, GTK_DIALOG_DESTROY_MODAL | GTK_DIALOG_DESTROY_WITH_PARENT, GTK_DIALOG_DESTROY_MODAL); -> Fail |
flags_type |
GFlagsの型。 |
|
expected |
期待値。 |
|
actual |
実測値。 |
|
... |
追加メッセージ(省略可能)。詳細は |
Since: 1.0.5
void gcut_assert_equal_object (GObject *expected,GObject *actual,...);
Passes if expected
== actual
. See
gcut_assert_equal_object_custom() when you need to customize
equality check.
例:
1 2 3 4 |
gcut_assert_equal_object(object, object); -> Pass gcut_assert_equal_object(object1, object2); -> Fail gcut_assert_equal_object(NULL, NULL); -> Pass gcut_assert_equal_object(object1, NULL); -> Fail |
Since: 1.0.5
void gcut_assert_equal_object_custom (GObject *expected,GObject *actual,GEqualFunc equal_function,...);
Passes if equal_function
(expected
, actual
) == CUT_TRUE.
例:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 |
static gboolean equal_name (gconstpointer data1, gconstpointer data2) { return g_str_equal(my_object_get_name(MY_OBJECT(data1)), my_object_get_name(MY_OBJECT(data2))); } gcut_assert_equal_object_custom(object, object, equal_name); -> Pass gcut_assert_equal_object_custom(same_name_object1, same_name_object2, equal_name); -> Pass gcut_assert_equal_object_custom(different_name_object1, different_name_object2, equal_name); -> Fail |
expected |
期待値。 |
|
actual |
実測値。 |
|
equal_function |
ふたつのオブジェクトを比較する関数。 |
|
... |
追加メッセージ(省略可能)。詳細は |
Since: 1.0.5
void gcut_assert_equal_int64 (gint64 expected,gint64 actual,...);
Passes if expected
== actual
.
Since: 1.0.5
void gcut_assert_not_equal_int64 (gint64 expected,gint64 actual,...);
Passes if expected
!= actual
.
Since: 1.1.4
void gcut_assert_equal_uint64 (guint64 expected,guint64 actual,...);
Passes if expected
== actual
.
Since: 1.0.5
void gcut_assert_not_equal_uint64 (guint64 expected,guint64 actual,...);
Passes if expected
!= actual
.
Since: 1.1.4
void gcut_assert_equal_pid (GPid expected,GPid actual,...);
Passes if expected
== actual
.
Since: 1.0.6
void gcut_assert_not_equal_pid (GPid expected,GPid actual,...);
Passes if expected
!= actual
.
Since: 1.0.7