[New-bugs-announce] [issue3844] Script: find untested C functions

Daniel Diniz report at bugs.python.org
Fri Sep 12 03:32:10 CEST 2008


New submission from Daniel Diniz <ajaksu at gmail.com>:

The attached script reports C functions not flexed by unittests. It
needs a 'coverage' build and a run of the tests. Coverage data is then
passed to gcov and those functions with zero calls written to a text
file, grouped by source file.

It's also pretty ugly.

Reviews/suggestions are most welcome :)

I'm finishing a related script that patches the source with 'printf's,
so any false positives are easy to spot and it's clear when some action
or test exercises a previously untested C function. It already works,
but is much uglier then this one ;)

----------
components: Tests
files: ccoverage.py
messages: 73073
nosy: ajaksu2
severity: normal
status: open
title: Script: find untested C functions
type: feature request
versions: Python 2.6, Python 3.0
Added file: http://bugs.python.org/file11469/ccoverage.py

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue3844>
_______________________________________


More information about the New-bugs-announce mailing list