Line Execution Checker

Identify whether specific source lines were executed using gcov data.

3.5k|556|Updated Oct 17, 2025
One-click install
npx skills add https://github.com/gadievron/raptor --skill line-execution-checker
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: Line Execution Checker
Source: https://github.com/gadievron/raptor/tree/main/.claude/skills/crash-analysis/line-execution-checker
Command: npx skills add https://github.com/gadievron/raptor --skill line-execution-checker

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This tool enables developers to verify whether specific source lines were executed during tests by analyzing gcov data, removing guesswork from coverage assessments.

Core Features & Use Cases

  • Line-level coverage checks: Confirm if given source lines were executed during test runs.
  • GCov-friendly workflow: Integrates with standard gcov data produced by common C/C++ test suites.
  • Use Case: Validate critical code paths in a module by checking line-by-line execution across CI runs.

Quick Start

Run the checker against a target source file to see execution status, for example: ./line-checker file.c:42

Frequently Asked Questions about Line Execution Checker

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I check if specific lines were executed during C++ tests?

Line execution checking uses gcov data to verify whether individual source lines ran during test execution. Provide the source file and line numbers to the checker, which analyzes gcov output and reports per-line execution counts, confirming code path coverage without manual inspection.

What do I need to use gcov for line-level coverage analysis?

Line-level coverage with gcov requires a compiled instrumented build (compiled with coverage flags) and gcov data generated from prior test runs. The checker reads this data to identify executed lines across multiple files and builds, outputting detailed execution results per line.

Can I validate critical code paths using line coverage checks?

Yes, line-level coverage checks validate critical code paths by confirming execution of specific lines across your test suite. This removes guesswork from coverage assessments and integrates with standard gcov workflows used in C/C++ CI runs.

How do I integrate line execution checking into my C/C++ test workflow?

Run the checker against target source files to see execution status during test workflows. It processes gcov data from instrumented builds and outputs per-line execution results, fitting naturally into CI pipelines and test validation processes.

What are the limitations of checking line execution with gcov data?

Line execution checking depends on gcov data availability from prior test runs and requires a compiled instrumented build. Coverage accuracy is limited to what the test suite exercises; uncovered lines indicate untested code paths rather than unused code.