Skip to content

feat(program): add sentence-aware splitting and test coverage reporting - #25

Merged
rfprod merged 1 commit into
mainfrom
unit-tests
Nov 5, 2026
Merged

rfprod merged 1 commit into
mainfrom
unit-tests

Conversation

@rfprod

@rfprod rfprod commented Nov 5, 2026

Copy link
Copy Markdown
Owner
  • rewrite split_text to prefer sentence boundaries and avoid abbreviation breaks;
  • make wrap_text break long words at max_width and reject non-positive widths;
  • validate chunk_size and overlap, throwing std::invalid_argument on bad input;
  • declare private helpers for sentence and abbreviation detection in TextUtils;
  • document wrap_text and split_text parameters and return values in the header;
  • add text_utils_test.cpp covering wrap_text, split_text with and without overlap;
  • glob test sources recursively and move args_utils_test.cpp into tests/utils;
  • add ENABLE_COVERAGE CMake option;
  • add --coverage and --no-run flags to the build script with matching env vars;
  • validate Debug build, gcovr, and GCOV_EXECUTABLE before running coverage;
  • clear stale .gcda files and generate HTML and XML coverage reports with gcovr;
  • document gcovr installation in the root README;
  • publish coverage page in docs and build reports in the gh-pages workflow;
  • bump project version to 0.4.4;

@rfprod rfprod self-assigned this Nov 5, 2026
@rfprod rfprod added Enhancement Existing functionality improvement related changes. CI/CD Continuous integration and continuous delivery related changes. Refactor Refactoring related changes. Feature New feature implementation related changes. Program Main program logic related changes. Specs: Unit Unit specs related changes. Tools: Shell Shell utility scripts related changes. labels Nov 5, 2026
@rfprod
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`;
@rfprod
rfprod merged commit dea34ce into main Nov 5, 2026
1 of 2 checks passed
@rfprod
rfprod deleted the unit-tests branch November 5, 2026 19:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CI/CD Continuous integration and continuous delivery related changes. Enhancement Existing functionality improvement related changes. Feature New feature implementation related changes. Program Main program logic related changes. Refactor Refactoring related changes. Specs: Unit Unit specs related changes. Tools: Shell Shell utility scripts related changes.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant