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

Add KeywordExtractConfigBuilder #104

Merged
merged 2 commits into from
Apr 13, 2024
Merged

Add KeywordExtractConfigBuilder #104

merged 2 commits into from
Apr 13, 2024

Conversation

awong-dev
Copy link
Collaborator

Use builder pattern to construct the KeywordExtractConfig. Expose the KeywordExtractConfig internal state as more rust-standard getters that are just a function with the same identifier as the field name.

This code uses the derive_builder module.

fixes #101

@awong-dev awong-dev requested a review from messense April 12, 2024 22:15
Copy link

codecov bot commented Apr 12, 2024

Codecov Report

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

Project coverage is 84.01%. Comparing base (e5129f0) to head (09d7254).
Report is 1 commits behind head on main.

Files Patch % Lines
src/keywords/mod.rs 92.45% 4 Missing ⚠️
Additional details and impacted files
@@             Coverage Diff             @@
##             main     #104       +/-   ##
===========================================
+ Coverage   70.44%   84.01%   +13.56%     
===========================================
  Files           8        8               
  Lines        1800     1989      +189     
===========================================
+ Hits         1268     1671      +403     
+ Misses        532      318      -214     

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

@awong-dev
Copy link
Collaborator Author

Erp...I broke something in the benchmark. But regardless, does this seem like the right direction? will fix that later today.

Copy link

codspeed-hq bot commented Apr 13, 2024

CodSpeed Performance Report

Merging #104 will not alter performance

Comparing awong-dev:builder (09d7254) with main (e5129f0)

Summary

✅ 10 untouched benchmarks

Use builder pattern to construct the KeywordExtractConfig.
Expose the KeywordExtractConfig internal state as more
rust-standard getters that are just a function with the
same identifier as the field name.

This code uses the derive_builder module.

fixes messense#101
@messense messense merged commit 1391b3d into messense:main Apr 13, 2024
10 checks passed
@awong-dev awong-dev deleted the builder branch April 13, 2024 04:16
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.

Prefer builder pattern to setters/getters in KeywordExtractConfig
2 participants