Skip to content

Instantly share code, notes, and snippets.

View xmfcx's full-sized avatar

Mete Fatih Cırıt xmfcx

  • Autoware Foundation
  • Turkey
  • 06:44 (UTC +03:00)
View GitHub Profile

Autoware Coverage Pipeline: lcov 2.x Fix & Codecov Upload Optimization

Background: What gcov, lcov, and Codecov Do

gcov

GCC's built-in coverage tool. When you compile with --coverage, GCC instruments the binary and produces:

  • .gcno files ("notes") at compile time — which lines/branches exist
  • .gcda files ("data") at runtime — which lines actually executed

gcov reads both and outputs per-file .gcov text files showing hit counts per line.