• Home
  • Raw
  • Download

Lines Matching refs:relation

66   GRelation *relation;  in main()  local
71 relation = g_relation_new (2); in main()
73 g_relation_index (relation, 0, g_int_hash, g_int_equal); in main()
74 g_relation_index (relation, 1, g_int_hash, g_int_equal); in main()
81 g_relation_insert (relation, data + i, data + i + 1); in main()
82 g_relation_insert (relation, data + i, data + i - 1); in main()
87 g_assert (! g_relation_exists (relation, data + i, data + i)); in main()
88 g_assert (! g_relation_exists (relation, data + i, data + i + 2)); in main()
89 g_assert (! g_relation_exists (relation, data + i, data + i - 2)); in main()
94 g_assert (g_relation_exists (relation, data + i, data + i + 1)); in main()
95 g_assert (g_relation_exists (relation, data + i, data + i - 1)); in main()
100 g_assert (g_relation_count (relation, data + i, 0) == 2); in main()
101 g_assert (g_relation_count (relation, data + i, 1) == 2); in main()
104 g_assert (g_relation_count (relation, data, 0) == 0); in main()
106 g_assert (g_relation_count (relation, data + 42, 0) == 2); in main()
107 g_assert (g_relation_count (relation, data + 43, 1) == 2); in main()
108 g_assert (g_relation_count (relation, data + 41, 1) == 2); in main()
109 g_relation_delete (relation, data + 42, 0); in main()
110 g_assert (g_relation_count (relation, data + 42, 0) == 0); in main()
111 g_assert (g_relation_count (relation, data + 43, 1) == 1); in main()
112 g_assert (g_relation_count (relation, data + 41, 1) == 1); in main()
114 tuples = g_relation_select (relation, data + 200, 0); in main()
127 g_assert (g_relation_exists (relation, data + 300, data + 301)); in main()
128 g_relation_delete (relation, data + 300, 0); in main()
129 g_assert (!g_relation_exists (relation, data + 300, data + 301)); in main()
133 g_relation_destroy (relation); in main()
135 relation = NULL; in main()