[issue3844] Script: find untested C functions

2009-02-10 Thread Daniel Diniz

Daniel Diniz aja...@gmail.com added the comment:

Closing: resource available externally (
http://bazaar.launchpad.net/~ajaksu/ccoverage/trunk/files )

--
resolution:  - invalid
status: open - closed

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue3844
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue3844] Script: find untested C functions

2008-09-11 Thread Daniel Diniz

New submission from Daniel Diniz [EMAIL PROTECTED]:

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 [EMAIL PROTECTED]
http://bugs.python.org/issue3844
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue3844] Script: find untested C functions

2008-09-11 Thread Daniel Diniz

Daniel Diniz [EMAIL PROTECTED] added the comment:

Here's example output of a run against 3.0. The number after a function
name is its length in lines (as gcov counts them :).

False positives include:
./Objects/weakrefobject.c gc_clear
./Modules/readline.c on_completion_display_matches_hook

Added file: http://bugs.python.org/file11471/uncovered.txt

___
Python tracker [EMAIL PROTECTED]
http://bugs.python.org/issue3844
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com