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 21:13:36 GMT
Quoting Joe Orton <joe@manyfish.co.uk>:

> On Wed, Mar 10, 2004 at 12:19:25PM -0800, rbb@rkbloom.net wrote:
> > 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.
> Yeah, gcov -b gives you the branch coverage, it's usually a better
> reflection of test coverage.

I considered using gcov -b, but I couldn't figure out a way to bring the data
down to a single value.  I'll look at this again sometime today to see if I can
generate a similar page using -b.


View raw message