Skip to content

Commit

Permalink
Improve coverage in the node module.
Browse files Browse the repository at this point in the history
  • Loading branch information
zoj613 committed Jan 12, 2025
1 parent 9cfb08c commit 22bd73a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions zarr-sync/test/test_sync.ml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ let test_storage
Group.create store gnode;
let exists = Group.exists store gnode in
assert_equal ~printer:string_of_bool true exists;
assert_equal ~printer:print_node_pair ([], [gnode]) (hierarchy store);

let meta = Group.metadata store gnode in
assert_equal ~printer:Metadata.Group.show Metadata.Group.default meta;
Expand Down Expand Up @@ -74,6 +75,7 @@ let test_storage

(* repeat tests for non-sharding codec chain *)
Array.create ~sep:`Dot ~codecs:[`Bytes BE] ~shape:[100; 100; 50] ~chunks:[10; 15; 20] Ndarray.Int Int.max_int anode store;
assert_equal ~printer:print_node_pair ([anode], [gnode]) (hierarchy store);
(* test path where there is no chunk key present in store *)
let exp = Ndarray.init Int [21; 1; 30] (Fun.const Int.max_int) in
Array.write store anode slice exp;
Expand Down

0 comments on commit 22bd73a

Please sign in to comment.