chemicalchecker.util.decorator.profilehooks.coverage

coverage(fn)[source]

Mark fn for line coverage analysis.

Results will be printed to sys.stdout on program termination.

Usage:

def fn(...):
    ...
fn = coverage(fn)

If you are using Python 2.4, you should be able to use the decorator syntax:

@coverage
def fn(...):
    ...