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

Complete KeywordExtractConfigBuilder coverage. Clean code. #106

Merged
merged 1 commit into from
Apr 13, 2024
Merged

Conversation

awong-dev
Copy link
Collaborator

Previous code was missing some coverage. These additional tests fix it.

Also, updated the remove_stop_words() api to use AsRef so
both literals and string objects can be passed in. There is no effect on
copies/moves in this setup.

Lastly, cleaned up the DEFAULT_STOP_WORDS creation code to read
a little more idiomatically.

Copy link

codecov bot commented Apr 13, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 84.74%. Comparing base (1391b3d) to head (16b92e4).

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #106      +/-   ##
==========================================
+ Coverage   84.01%   84.74%   +0.73%     
==========================================
  Files           8        8              
  Lines        1989     2052      +63     
==========================================
+ Hits         1671     1739      +68     
+ Misses        318      313       -5     

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

Copy link

codspeed-hq bot commented Apr 13, 2024

CodSpeed Performance Report

Merging #106 will not alter performance

Comparing builder (16b92e4) with main (1391b3d)

Summary

✅ 10 untouched benchmarks

@awong-dev awong-dev requested a review from messense April 13, 2024 04:57
src/keywords/mod.rs Outdated Show resolved Hide resolved
Previous code was missing some coverage. These additional tests fix it.

Also, updated the remove_stop_words() api to use AsRef so
both literals and string objects can be passed in. There is no effect on
copies/moves in this setup.

Lastly, cleaned up the DEFAULT_STOP_WORDS creation code to read
a little more idiomatically.
@messense messense merged commit f7e5793 into main Apr 13, 2024
10 checks passed
@messense messense deleted the builder branch April 13, 2024 06:11
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