Skip to content

Replace all optional arguments with an *Options struct. #8

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

Merged
merged 2 commits into from
Apr 8, 2025
Merged

Conversation

LTLA
Copy link
Owner

@LTLA LTLA commented Apr 8, 2025

No description provided.

LTLA added 2 commits April 7, 2025 20:51
This makes it easier to modify one or more options without having to list out
all of the positional arguments in the correct order.

We also make the Options argument mandatory in each constructor, to simplify
construction by avoiding unnecessary overloads (just add {}, bro).
Copy link

codecov bot commented Apr 8, 2025

Codecov Report

Attention: Patch coverage is 98.46939% with 3 lines in your changes missing coverage. Please review.

Project coverage is 95.54%. Comparing base (ec5a299) to head (6eca7f5).
Report is 1 commits behind head on master.

Files with missing lines Patch % Lines
tests/src/GzipFileWriter.cpp 87.50% 1 Missing ⚠️
tests/src/RawFileWriter.cpp 83.33% 1 Missing ⚠️
tests/src/ZlibBufferWriter.cpp 94.11% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master       #8      +/-   ##
==========================================
+ Coverage   95.22%   95.54%   +0.32%     
==========================================
  Files          34       34              
  Lines         858      988     +130     
  Branches       14       14              
==========================================
+ Hits          817      944     +127     
- Misses         30       33       +3     
  Partials       11       11              

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

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@LTLA LTLA merged commit 6c8da73 into master Apr 8, 2025
5 checks passed
@LTLA LTLA deleted the no-options branch April 8, 2025 05:55
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.

1 participant