chemicalchecker.util.decorator.profilehooks.FuncSource

class FuncSource(fn)[source]

Bases: object

Source code annotator for a function.

Methods

count_never_executed

Count statements that were never executed.

find_source_lines

Mark all executable source lines in fn as executed 0 times.

mark

Mark a given source line as executed count times.

Attributes

blank_rx

__str__()[source]

Return annotated source code for the function.

count_never_executed()[source]

Count statements that were never executed.

find_source_lines()[source]

Mark all executable source lines in fn as executed 0 times.

mark(lineno, count=1)[source]

Mark a given source line as executed count times.

Multiple calls to mark for the same lineno add up.