Improve test coverage
This commit is contained in:
parent
bfaed921e6
commit
f89e2cf1f1
1 changed files with 13 additions and 1 deletions
|
@ -82,7 +82,7 @@ many_put_compare(_Config) ->
|
||||||
% state between stores is consistent
|
% state between stores is consistent
|
||||||
|
|
||||||
TicTacQ = {tictactree_obj,
|
TicTacQ = {tictactree_obj,
|
||||||
{o_rkv, "Bucket", null, null, false},
|
{o_rkv, "Bucket", null, null, true},
|
||||||
TreeSize,
|
TreeSize,
|
||||||
fun(_B, _K) -> accumulate end},
|
fun(_B, _K) -> accumulate end},
|
||||||
{async, TreeAFolder} = leveled_bookie:book_returnfolder(Bookie2, TicTacQ),
|
{async, TreeAFolder} = leveled_bookie:book_returnfolder(Bookie2, TicTacQ),
|
||||||
|
@ -111,6 +111,18 @@ many_put_compare(_Config) ->
|
||||||
true = length(AltList) > 10000,
|
true = length(AltList) > 10000,
|
||||||
% check there are a significant number of differences from empty
|
% check there are a significant number of differences from empty
|
||||||
|
|
||||||
|
WrongPartitionTicTacQ = {tictactree_obj,
|
||||||
|
{o_rkv, "Bucket", null, null, false},
|
||||||
|
TreeSize,
|
||||||
|
fun(_B, _K) -> pass end},
|
||||||
|
{async, TreeAFolder_WP} =
|
||||||
|
leveled_bookie:book_returnfolder(Bookie2, WrongPartitionTicTacQ),
|
||||||
|
TreeAWP = TreeAFolder_WP(),
|
||||||
|
DoubleEmpty =
|
||||||
|
leveled_tictac:find_dirtyleaves(TreeAWP,
|
||||||
|
leveled_tictac:new_tree(0, TreeSize)),
|
||||||
|
true = length(DoubleEmpty) == 0,
|
||||||
|
|
||||||
% Now run the same query by putting the tree-building responsibility onto
|
% Now run the same query by putting the tree-building responsibility onto
|
||||||
% the fold_objects_fun
|
% the fold_objects_fun
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue