• Home
  • Raw
  • Download

Lines Matching refs:relation

1067   GRelation *relation = g_relation_new (2);  in relation_test()  local
1072 g_relation_index (relation, 0, g_int_hash, g_int_equal); in relation_test()
1073 g_relation_index (relation, 1, g_int_hash, g_int_equal); in relation_test()
1080 g_relation_insert (relation, data + i, data + i + 1); in relation_test()
1081 g_relation_insert (relation, data + i, data + i - 1); in relation_test()
1086 g_assert (! g_relation_exists (relation, data + i, data + i)); in relation_test()
1087 g_assert (! g_relation_exists (relation, data + i, data + i + 2)); in relation_test()
1088 g_assert (! g_relation_exists (relation, data + i, data + i - 2)); in relation_test()
1093 g_assert (g_relation_exists (relation, data + i, data + i + 1)); in relation_test()
1094 g_assert (g_relation_exists (relation, data + i, data + i - 1)); in relation_test()
1099 g_assert (g_relation_count (relation, data + i, 0) == 2); in relation_test()
1100 g_assert (g_relation_count (relation, data + i, 1) == 2); in relation_test()
1103 g_assert (g_relation_count (relation, data, 0) == 0); in relation_test()
1105 g_assert (g_relation_count (relation, data + 42, 0) == 2); in relation_test()
1106 g_assert (g_relation_count (relation, data + 43, 1) == 2); in relation_test()
1107 g_assert (g_relation_count (relation, data + 41, 1) == 2); in relation_test()
1108 g_relation_delete (relation, data + 42, 0); in relation_test()
1109 g_assert (g_relation_count (relation, data + 42, 0) == 0); in relation_test()
1110 g_assert (g_relation_count (relation, data + 43, 1) == 1); in relation_test()
1111 g_assert (g_relation_count (relation, data + 41, 1) == 1); in relation_test()
1113 tuples = g_relation_select (relation, data + 200, 0); in relation_test()
1126 g_assert (g_relation_exists (relation, data + 300, data + 301)); in relation_test()
1127 g_relation_delete (relation, data + 300, 0); in relation_test()
1128 g_assert (!g_relation_exists (relation, data + 300, data + 301)); in relation_test()
1132 g_relation_destroy (relation); in relation_test()
1134 relation = NULL; in relation_test()