Repository navigation
feat(program): add sentence-aware splitting and test coverage reporting - #25
Merged
Merged
Conversation
rfprod
enabled auto-merge (squash)
November 5, 2026 19:01
- [x] rewrite `split_text` to prefer sentence boundaries and avoid abbreviation breaks; - [x] make `wrap_text` break long words at `max_width` and reject non-positive widths; - [x] validate `chunk_size` and `overlap`, throwing `std::invalid_argument` on bad input; - [x] declare private helpers for sentence and abbreviation detection in `TextUtils`; - [x] document `wrap_text` and `split_text` parameters and return values in the header; - [x] add `text_utils_test.cpp` covering `wrap_text`, `split_text` with and without overlap; - [x] glob test sources recursively and move `args_utils_test`.cpp into `tests/utils`; - [x] add `ENABLE_COVERAGE` `CMake` option; - [x] add `--coverage` and `--no-run` flags to the build script with matching env vars; - [x] validate `Debug` build, `gcovr`, and `GCOV_EXECUTABLE` before running coverage; - [x] clear stale `.gcda` files and generate `HTML` and `XML` coverage reports with `gcovr`; - [x] document `gcovr` installation in the root `README`; - [x] publish coverage page in docs and build reports in the `gh-pages` workflow; - [x] bump project version to `0.4.4`;
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
split_textto prefer sentence boundaries and avoid abbreviation breaks;wrap_textbreak long words atmax_widthand reject non-positive widths;chunk_sizeandoverlap, throwingstd::invalid_argumenton bad input;TextUtils;wrap_textandsplit_textparameters and return values in the header;text_utils_test.cppcoveringwrap_text,split_textwith and without overlap;args_utils_test.cpp intotests/utils;ENABLE_COVERAGECMakeoption;--coverageand--no-runflags to the build script with matching env vars;Debugbuild,gcovr, andGCOV_EXECUTABLEbefore running coverage;.gcdafiles and generateHTMLandXMLcoverage reports withgcovr;gcovrinstallation in the rootREADME;gh-pagesworkflow;0.4.4;