lib/test_objagg.c
1005
world_obj_put(&world, objagg, hints_case->key_ids[i]);
lib/test_objagg.c
102
struct world *world = priv;
lib/test_objagg.c
114
world->delta_count++;
lib/test_objagg.c
121
struct world *world = priv;
lib/test_objagg.c
123
world->delta_count--;
lib/test_objagg.c
129
struct world *world = priv;
lib/test_objagg.c
137
memcpy(root->buf, world->next_root_buf, sizeof(root->buf));
lib/test_objagg.c
138
world->root_count++;
lib/test_objagg.c
145
struct world *world = priv;
lib/test_objagg.c
147
world->root_count--;
lib/test_objagg.c
151
static int test_nodelta_obj_get(struct world *world, struct objagg *objagg,
lib/test_objagg.c
154
unsigned int orig_root_count = world->root_count;
lib/test_objagg.c
160
get_random_bytes(world->next_root_buf,
lib/test_objagg.c
161
sizeof(world->next_root_buf));
lib/test_objagg.c
163
objagg_obj = world_obj_get(world, objagg, key_id);
lib/test_objagg.c
169
if (world->root_count != orig_root_count + 1) {
lib/test_objagg.c
175
if (world->root_count != orig_root_count) {
lib/test_objagg.c
189
memcmp(world->next_root_buf, root->buf, sizeof(root->buf))) {
lib/test_objagg.c
204
static int test_nodelta_obj_put(struct world *world, struct objagg *objagg,
lib/test_objagg.c
207
unsigned int orig_root_count = world->root_count;
lib/test_objagg.c
209
world_obj_put(world, objagg, key_id);
lib/test_objagg.c
212
if (world->root_count != orig_root_count - 1) {
lib/test_objagg.c
217
if (world->root_count != orig_root_count) {
lib/test_objagg.c
306
struct world world = {};
lib/test_objagg.c
311
objagg = objagg_create(&nodelta_ops, NULL, &world);
lib/test_objagg.c
321
err = test_nodelta_obj_get(&world, objagg, i, true);
lib/test_objagg.c
330
err = test_nodelta_obj_get(&world, objagg, i, false);
lib/test_objagg.c
340
err = test_nodelta_obj_put(&world, objagg, i, false);
lib/test_objagg.c
345
err = test_nodelta_obj_put(&world, objagg, i, true);
lib/test_objagg.c
361
world_obj_put(&world, objagg, i);
lib/test_objagg.c
367
world_obj_put(&world, objagg, i);
lib/test_objagg.c
46
static struct objagg_obj *world_obj_get(struct world *world,
lib/test_objagg.c
561
static int check_expect(struct world *world,
lib/test_objagg.c
570
if (orig_delta_count != world->delta_count) {
lib/test_objagg.c
579
if (orig_delta_count + 1 != world->delta_count) {
lib/test_objagg.c
588
if (orig_delta_count - 1 != world->delta_count) {
lib/test_objagg.c
598
if (orig_root_count != world->root_count) {
lib/test_objagg.c
60
if (!world->key_refs[key_id_index(key_id)]) {
lib/test_objagg.c
607
if (orig_root_count + 1 != world->root_count) {
lib/test_objagg.c
61
world->objagg_objs[key_id_index(key_id)] = objagg_obj;
lib/test_objagg.c
616
if (orig_root_count - 1 != world->root_count) {
lib/test_objagg.c
62
} else if (world->objagg_objs[key_id_index(key_id)] != objagg_obj) {
lib/test_objagg.c
68
world->key_refs[key_id_index(key_id)]++;
lib/test_objagg.c
757
static int test_delta_action_item(struct world *world,
lib/test_objagg.c
76
static void world_obj_put(struct world *world, struct objagg *objagg,
lib/test_objagg.c
762
unsigned int orig_delta_count = world->delta_count;
lib/test_objagg.c
763
unsigned int orig_root_count = world->root_count;
lib/test_objagg.c
775
objagg_obj = world_obj_get(world, objagg, key_id);
lib/test_objagg.c
780
world_obj_put(world, objagg, key_id);
lib/test_objagg.c
786
err = check_expect(world, action_item,
lib/test_objagg.c
803
test_delta_action_item(world, objagg, action_item, true);
lib/test_objagg.c
809
struct world world = {};
lib/test_objagg.c
81
if (!world->key_refs[key_id_index(key_id)])
lib/test_objagg.c
814
objagg = objagg_create(&delta_ops, NULL, &world);
lib/test_objagg.c
819
err = test_delta_action_item(&world, objagg,
lib/test_objagg.c
83
objagg_obj = world->objagg_objs[key_id_index(key_id)];
lib/test_objagg.c
830
test_delta_action_item(&world, objagg, &action_items[i], true);
lib/test_objagg.c
85
world->key_refs[key_id_index(key_id)]--;
lib/test_objagg.c
915
struct world world2 = {};
lib/test_objagg.c
966
struct world world = {};
lib/test_objagg.c
972
objagg = objagg_create(&delta_ops, NULL, &world);
lib/test_objagg.c
977
objagg_obj = world_obj_get(&world, objagg,