|
From: Brad H. <br...@fr...> - 2007-06-18 02:09:08
Attachments:
vcover-annotate.py
|
Based on the update to covergrind that I posted recently (accidentally signed
it, so it got messed up in the archives), I've extended the output tool for
covergrind to merge runs and to mark up files. See attached.
An output sample is shown below. There is something a bit strange happening -
not sure what. Perhaps some optimisation problem?
It would be nice to be able to isolated the executable lines, but I haven't
got a solution for that yet.
Brad
#### //----------------------------------------------------------------------------
#### // Util
#### //----------------------------------------------------------------------------
6 static SecureArray bio2buf(BIO *b)
3 {
3 SecureArray buf;
3 while(1) {
3 SecureArray block(1024);
6 int ret = BIO_read(b, block.data(), block.size());
3 if(ret <= 0)
#### break;
3 block.resize(ret);
3 buf.append(block);
3 if(ret != 1024)
#### break;
#### }
3 BIO_free(b);
#### return buf;
#### }
####
|