jni / zarpaint

Paint segmentations directly to on-disk/remote zarr arrays
BSD 3-Clause "New" or "Revised" License
14 stars 8 forks source link

Add tests for all functions in _add_3d_points #26

Closed jamesyan-git closed 2 years ago

jamesyan-git commented 2 years ago

As the title suggests, tests have been added for _add_3d_points. I have tried to use simple test data to make the results intuitive, but @jni , let me know if there is anything to add/remove/change.

codecov-commenter commented 2 years ago

Codecov Report

Merging #26 (9214efc) into main (dfe2482) will increase coverage by 16.89%. The diff coverage is 100.00%.

@@             Coverage Diff             @@
##             main      #26       +/-   ##
===========================================
+ Coverage   51.01%   67.90%   +16.89%     
===========================================
  Files           9       11        +2     
  Lines         396      511      +115     
===========================================
+ Hits          202      347      +145     
+ Misses        194      164       -30     
Impacted Files Coverage Δ
src/zarpaint/_tests/test_zarpaint.py 100.00% <100.00%> (ø)
src/zarpaint/_tests/test_reader.py 100.00% <0.00%> (ø)
src/zarpaint/_add_3d_points.py 97.43% <0.00%> (+76.92%) :arrow_up:

Continue to review full report at Codecov.

Legend - Click here to learn more Δ = absolute <relative> (impact), ø = not affected, ? = missing data Powered by Codecov. Last update dfe2482...9214efc. Read the comment docs.