petertrr / kotlin-multiplatform-diff

Multiplaform kotlin library for calculating text differences. Based on java-diff-utils, supports JVM, JS and native targets.
Apache License 2.0
84 stars 5 forks source link

feat: Refactor `DiffRowGenerator`, code cleanup #16

Closed petertrr closed 2 years ago

petertrr commented 2 years ago

BREAKING: API of DiffRowGenerator has changed, constructor should be used instead of builder

codecov[bot] commented 2 years ago

Codecov Report

Merging #16 (e460393) into main (dce5b9e) will decrease coverage by 0.24%. The diff coverage is 88.00%.

Impacted file tree graph

@@             Coverage Diff              @@
##               main      #16      +/-   ##
============================================
- Coverage     83.01%   82.76%   -0.25%     
- Complexity       99      101       +2     
============================================
  Files            12       12              
  Lines           518      470      -48     
  Branches         91       85       -6     
============================================
- Hits            430      389      -41     
+ Misses           63       57       -6     
+ Partials         25       24       -1     
Flag Coverage Δ
unittests 82.76% <88.00%> (-0.25%) :arrow_down:

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
...n/kotlin/io/github/petertrr/diffutils/DiffUtils.kt 78.12% <0.00%> (ø)
...kotlin/io/github/petertrr/diffutils/patch/Chunk.kt 66.66% <ø> (ø)
...ub/petertrr/diffutils/algorithm/myers/MyersDiff.kt 89.83% <77.77%> (ø)
...kotlin/io/github/petertrr/diffutils/patch/Patch.kt 81.25% <100.00%> (ø)
...github/petertrr/diffutils/text/DiffRowGenerator.kt 92.68% <100.00%> (+2.16%) :arrow_up:
...n/io/github/petertrr/diffutils/text/StringUtils.kt 69.23% <0.00%> (-7.70%) :arrow_down:

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 dce5b9e...e460393. Read the comment docs.