$ gcov echo.c  84.62% of 13 source lines executed in file echo.cCreating echo.c.gcov.

The results indicate that our test coverage is not complete: Two code lines were never executed. The generated file echo.c.gcov is an annotated listing of the source code. On the left of each source code line is the number of times the line was executed. Lines that were never executed are marked with hash (#) signs; these are the lines our test case did not cover:

     1   if (*++argv && !strcmp(*argv, "-n")) {######           ++argv;######           nflag = 1;         }         else     1           nflag = 0;     3   while (*argv) {     2           (void)printf("%s", *argv);     2           if (*++argv)     1                   putchar(' ');         }     1   if (!nflag) ...

Get Code Quality now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.