summaryrefslogtreecommitdiff
path: root/src/tests/eina/eina_test_value.c
diff options
context:
space:
mode:
authorBruno Dilly <bdilly@profusion.mobi>2016-11-30 18:37:34 -0200
committerBruno Dilly <bdilly@profusion.mobi>2016-11-30 18:37:34 -0200
commitadb95630ef47abd0ea9e55a8e26f9b731e8fcdb1 (patch)
tree0562dce26cf42b6f8de3679d3cd0309f80d7d25e /src/tests/eina/eina_test_value.c
parent887be4d4e53712c85d6a4860659faedaa497ed29 (diff)
eina: remove tests, examples and docs for eina_model
Summary: Since eina_model was dropped some years ago. Also a few other points where related stuff is just commented out. Reviewers: iscaro, barbieri Reviewed By: barbieri Subscribers: cedric, jpeg Differential Revision: https://phab.enlightenment.org/D4442
Diffstat (limited to 'src/tests/eina/eina_test_value.c')
-rw-r--r--src/tests/eina/eina_test_value.c48
1 files changed, 0 insertions, 48 deletions
diff --git a/src/tests/eina/eina_test_value.c b/src/tests/eina/eina_test_value.c
index 48077e6693..df0771008c 100644
--- a/src/tests/eina/eina_test_value.c
+++ b/src/tests/eina/eina_test_value.c
@@ -2873,51 +2873,6 @@ START_TEST(eina_value_test_optional_struct_members)
2873} 2873}
2874END_TEST 2874END_TEST
2875 2875
2876#if 0
2877START_TEST(eina_value_test_model)
2878{
2879 Eina_Value *value, inv;
2880 Eina_Model *model, *m;
2881 char *str;
2882
2883 eina_init();
2884
2885 value = eina_value_new(EINA_VALUE_TYPE_MODEL);
2886 fail_unless(value != NULL);
2887
2888 model = eina_model_new(EINA_MODEL_TYPE_GENERIC);
2889 fail_unless(model != NULL);
2890
2891 fail_unless(eina_value_setup(&inv, EINA_VALUE_TYPE_INT));
2892 fail_unless(eina_value_set(&inv, 1234));
2893 fail_unless(eina_model_property_set(model, "i", &inv));
2894 eina_value_flush(&inv);
2895
2896 fail_unless(eina_value_set(value, model));
2897 fail_unless(eina_model_refcount(model) == 2);
2898
2899 fail_unless(eina_value_get(value, &m));
2900 fail_unless(m == model);
2901 fail_unless(eina_model_refcount(m) == 2);
2902
2903 fail_unless(eina_value_pset(value, &model));
2904 fail_unless(eina_model_refcount(model) == 2);
2905
2906 str = eina_value_to_string(value);
2907 fail_unless(str != NULL);
2908 ck_assert_str_eq(str, "Eina_Model_Type_Generic({i: 1234}, [])");
2909 free(str);
2910
2911 eina_value_free(value);
2912
2913 fail_unless(eina_model_refcount(model) == 1);
2914 eina_model_unref(model);
2915
2916 eina_shutdown();
2917}
2918END_TEST
2919#endif
2920
2921void 2876void
2922eina_test_value(TCase *tc) 2877eina_test_value(TCase *tc)
2923{ 2878{
@@ -2946,7 +2901,4 @@ eina_test_value(TCase *tc)
2946 tcase_add_test(tc, eina_value_test_optional_int); 2901 tcase_add_test(tc, eina_value_test_optional_int);
2947 tcase_add_test(tc, eina_value_test_optional_string); 2902 tcase_add_test(tc, eina_value_test_optional_string);
2948 tcase_add_test(tc, eina_value_test_optional_struct_members); 2903 tcase_add_test(tc, eina_value_test_optional_struct_members);
2949#if 0
2950 tcase_add_test(tc, eina_value_test_model);
2951#endif
2952} 2904}