Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Do another general cleanup #114

Merged
merged 6 commits into from
Jun 22, 2024
Merged

Conversation

lppedd
Copy link
Contributor

@lppedd lppedd commented Jun 11, 2024

This PR mostly improves small things.

  • Updates the documentation
  • Refactor utility functions to be more Kotlin-idiomatic
  • Refactor DiffRowGenerator to allow passing a custom algorithm, instead of a custom equalizer only

Being I changed DiffRowGenerator's constructor, and I removed a diff(...) overload, it would be better the next release be 0.7.0.

lppedd added 4 commits June 11, 2024 23:45
A call like

diff(s, d, myEqualizer)

can be replaced with

diff(s, d, MyersDiff(myEqualizer))

which is definitely more clear on the intent.
Copy link

codecov bot commented Jun 11, 2024

Codecov Report

Attention: Patch coverage is 90.90909% with 4 lines in your changes missing coverage. Please review.

Project coverage is 85.96%. Comparing base (b90ea21) to head (0f312d7).

Files Patch % Lines
...kotlin/io/github/petertrr/diffutils/StringUtils.kt 81.81% 1 Missing and 1 partial ⚠️
...futils/algorithm/myers/MyersDiffWithLinearSpace.kt 77.77% 0 Missing and 2 partials ⚠️
Additional details and impacted files
@@             Coverage Diff              @@
##               main     #114      +/-   ##
============================================
- Coverage     86.07%   85.96%   -0.12%     
+ Complexity      221      215       -6     
============================================
  Files            30       29       -1     
  Lines           632      627       -5     
  Branches        117      117              
============================================
- Hits            544      539       -5     
  Misses           59       59              
  Partials         29       29              
Flag Coverage Δ
unittests 85.96% <90.90%> (-0.12%) ⬇️

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

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@lppedd lppedd marked this pull request as draft June 11, 2024 22:05
@lppedd lppedd force-pushed the refactor/another-cleanup branch from 2df15c0 to 3a97e16 Compare June 11, 2024 22:11
@lppedd lppedd marked this pull request as ready for review June 11, 2024 22:22
Copy link
Owner

@petertrr petertrr left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@petertrr petertrr merged commit 63eb2b7 into petertrr:main Jun 22, 2024
2 of 3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants