Issue3844
This issue tracker has been migrated to GitHub,
and is currently read-only.
For more information,
see the GitHub FAQs in the Python's Developer Guide.
Created on 2008-09-12 01:32 by ajaksu2, last changed 2022-04-11 14:56 by admin. This issue is now closed.
| Files | ||||
|---|---|---|---|---|
| File name | Uploaded | Description | Edit | |
| ccoverage.py | ajaksu2, 2008-09-12 01:32 | Script that lists C functions not covered by the test suite | ||
| uncovered.txt | ajaksu2, 2008-09-12 01:40 | Output from ccoverage on 3.0 | ||
| Messages (3) | |||
|---|---|---|---|
| msg73073 - (view) | Author: Daniel Diniz (ajaksu2) * ![]() |
Date: 2008-09-12 01:32 | |
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 ;) |
|||
| msg73075 - (view) | Author: Daniel Diniz (ajaksu2) * ![]() |
Date: 2008-09-12 01:40 | |
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 |
|||
| msg81622 - (view) | Author: Daniel Diniz (ajaksu2) * ![]() |
Date: 2009-02-11 04:13 | |
Closing: resource available externally ( http://bazaar.launchpad.net/~ajaksu/ccoverage/trunk/files ) |
|||
| History | |||
|---|---|---|---|
| Date | User | Action | Args |
| 2022-04-11 14:56:39 | admin | set | github: 48094 |
| 2009-02-11 04:13:26 | ajaksu2 | set | status: open -> closed resolution: not a bug messages: + msg81622 |
| 2008-09-12 01:41:00 | ajaksu2 | set | files:
+ uncovered.txt messages: + msg73075 |
| 2008-09-12 01:32:06 | ajaksu2 | create | |
