Tag

gcov

0 views collected around this technical thread.

DevOps Engineer
DevOps Engineer
Aug 23, 2021 · Fundamentals

Measuring Code Coverage for C/C++ Projects with Gcov and LCOV

This article explains how to measure code coverage for C/C++ projects using GCC's built‑in Gcov tool and the LCOV utility, covering prerequisite setup, compilation with profiling flags, running tests, generating .gcno/.gcda files, producing .gcov reports, creating HTML visualizations, and cautions against over‑relying on coverage percentages.

C++Testingcode coverage
0 likes · 11 min read
Measuring Code Coverage for C/C++ Projects with Gcov and LCOV
DevOps Engineer
DevOps Engineer
Aug 9, 2021 · Fundamentals

An Introduction to Code Coverage: Concepts, Metrics, and Popular Tools

This article explains what code coverage is, why it matters, the different coverage metrics, how coverage measurement works, and reviews several mainstream tools across various programming languages.

InstrumentationIstanbulJaCoCo
0 likes · 6 min read
An Introduction to Code Coverage: Concepts, Metrics, and Popular Tools
Amap Tech
Amap Tech
Aug 28, 2020 · Fundamentals

Code Coverage Instrumentation Using LLVM and GCOV

The article explains how to instrument code for coverage using LLVM’s modular compiler infrastructure—adding compile‑time probes that generate .gcno files, runtime counters that produce .gcda files, and then parsing these with GCOV, while detailing LLVM IR, basic blocks, flow graphs, and extensions for custom plugins.

IRInstrumentationLLVM
0 likes · 17 min read
Code Coverage Instrumentation Using LLVM and GCOV
360 Quality & Efficiency
360 Quality & Efficiency
Sep 10, 2019 · Fundamentals

Practical Guide to C++ Code Coverage Testing with gcov and lcov

This article provides a step‑by‑step tutorial on performing C++ code‑coverage testing using gcov, covering compilation flags, running the instrumented program, generating gcov reports, and creating detailed HTML reports with lcov, including command examples and configuration details.

C++code coveragegcov
0 likes · 7 min read
Practical Guide to C++ Code Coverage Testing with gcov and lcov
iQIYI Technical Product Team
iQIYI Technical Product Team
Sep 6, 2019 · Mobile Development

Code Coverage Instrumentation and Analysis for iOS Projects

To meet strict quality goals for iOS projects, the article describes adopting intermediate‑file code‑coverage instrumentation, generating gcno/gcda files, using lcov for full and incremental analysis, and integrating the process into builds and CI to enforce coverage thresholds and guide test‑case design.

InstrumentationTestingcode coverage
0 likes · 12 min read
Code Coverage Instrumentation and Analysis for iOS Projects
360 Quality & Efficiency
360 Quality & Efficiency
Aug 28, 2019 · Fundamentals

Introduction to gcov: C/C++ Code Coverage Tool and Instrumentation Process

This article explains gcov, the GCC‑bundled C/C++ code coverage tool, covering its basic concepts, the workflow for generating coverage data, and the instrumentation technique using basic blocks and arcs to record execution counts.

C++Instrumentationbasic blocks
0 likes · 4 min read
Introduction to gcov: C/C++ Code Coverage Tool and Instrumentation Process
360 Quality & Efficiency
360 Quality & Efficiency
Mar 2, 2018 · Fundamentals

How to Perform C Code Coverage Testing with gcov and lcov on Ubuntu

This article explains how to set up gcov and lcov on Ubuntu, write a simple C++ program, compile it with coverage flags, generate .gcno and .gcda files, use lcov to create an HTML coverage report, and interpret the resulting line and function coverage percentages.

C++Ubuntucode coverage
0 likes · 4 min read
How to Perform C Code Coverage Testing with gcov and lcov on Ubuntu
Baidu Intelligent Testing
Baidu Intelligent Testing
Sep 12, 2017 · Fundamentals

Introduction to C/C++ Code Coverage Tools and Practices (BullseyeCoverage, gcov/lcov)

This article explains the concepts of code coverage, describes different coverage metrics such as statement, branch, and function coverage, introduces BullseyeCoverage and gcov/lcov tools, and provides detailed step‑by‑step procedures for measuring coverage in both executable binaries and dynamic libraries for C/C++ projects.

BullseyeCoverageC++Testing
0 likes · 8 min read
Introduction to C/C++ Code Coverage Tools and Practices (BullseyeCoverage, gcov/lcov)