apr-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From r..@rkbloom.net
Subject Re: cvs commit: apr-site/docs/coverage index.html
Date Wed, 10 Mar 2004 20:20:45 GMT

(I hate my mail client, it is far too easy to hit send accidentally)

Quoting rbb@rkbloom.net:

> 
> This commit makes the page look a lot nicer.  I may try to do a few some
> tweaks,
> like either sorting the list by filename or by percent tested.  That work
> will
> happen in the next few days, and I still want to colorize the gcov files
> themselves.  I have updated the live site as well.
> 
> The colors are simple.
> 
> 0% - 32%    -- Red
> 33% - 65%   -- Yellowish
> 66% - 100%  -- Green
> 
> Also, this data looks slightly better than it is.  While some of the files
> are
> in the green block, that doesn't mean that they are fully tested.  Often we
> test
> a single error condition which gets us coverage, but that block of code
> actually
> handles 4 different error cases.  If only 1 of 4 is tested, then we are
> reporting full coverage when in reality we are about 25% covered.
> 
> Also, I am not 100% sure of the percentages reported.  This data comes
> straight
> out of gcov.  But, I did the math myself as:  
      (num_of_lines run/total_lines_of_code) * 100

And I always got slightly lower numbers than gcov reports.

Ryan


Mime
View raw message