What problem does it solve?
C source files in the RediSearch codebase often have untested code paths that reduce confidence in changes. This Skill automates the end-to-end workflow of finding flow test coverage gaps, triaging them, and writing Python tests to close them.
Core Features & Use Cases
- Coverage Gap Analysis: Runs the check-flow-coverage pipeline to build with gcov instrumentation, execute the test suite, and report testable gaps grouped by feature.
- Guided Test Authoring: Presents gaps grouped by feature with suggested test approaches, then writes or extends Python flow tests following established guidelines.
- Defensive Code Cleanup: Replaces unreachable defensive code with RS_ASSERT or RS_ABORT assertions, keeping lcov exclusions only for allocation-failure cleanup paths.
- Use Case: A developer modifying src/query.c wants to ensure their changes are covered. They run the skill on that file, review the grouped gap report, select which gaps to address, and get verified tests plus a coverage confirmation in one workflow.
Quick Start
Ask the assistant to improve flow coverage for a C source file, for example by saying: improve flow coverage for src/query.c and src/module.c.