Module for the collection and analysis of code coverage data.
__version__ |
the_coverage |
CoverageException | |
StatementFindingAstVisitor | A visitor for a parsed Abstract Syntax Tree which finds executable statements. |
coverage |
analysis | |
analysis2 | |
annotate | |
annotate_file | |
begin_recursive | |
end_recursive | |
erase | |
exclude | |
report | |
start | |
stop | |
use_cache |
None |
None |
A visitor for a parsed Abstract Syntax Tree which finds executable statements.
default |
visitAssert |
visitFunction |
visitStmt |
visitWhile |
analysis_cache |
blank_re |
c |
cache_default |
cache_env |
canonical_filename_cache |
cexecuted |
else_re |
coverage | |
abs_file | Helper function to turn a filename into an absolute normalized filename. |
analysis | |
analysis2 | |
analyze_morf | |
annotate | |
annotate_file | |
begin_recursive | |
canonical_filename | |
canonicalize_filenames | |
collect | |
command_line | |
end_recursive | |
erase | |
exclude | |
filter_by_prefix | Return list of morfs where the morf name does not begin with any one of the omit_prefixes. |
find_docstring_pass_pair | |
find_executable_statements | |
first_line_of_tree | |
fix_frame_filename | Public method used to fixup the filename for a given frame. |
format_lines | |
getExclude | |
get_ready | |
get_suite_spots | Analyze a parse tree to find suite introducers which span a number of lines. |
get_zip_data | Get data from `filename` if it is a zip file path, or return None if it is not. |
help | |
is_pass_stmt | |
is_string_constant | |
last_line_of_tree | |
merge_data | |
merge_file_data | |
morf_filename | |
morf_name | Return the name of morf as used in report. |
morf_name_compare | |
record_multiline | |
relative_filename | Convert filename to relative filename from self.relative_dir. |
report | |
restore | |
restore_file | |
save | |
start | |
stop | |
stringify | |
t | |
use_cache |
Helper function to turn a filename into an absolute normalized filename.
Return list of morfs where the morf name does not begin with any one of the omit_prefixes.
Public method used to fixup the filename for a given frame.
The logic employed here is that if a module was loaded from a .pyc file, then the correct .py to operate with should be in the same path as the .pyc. The reason this logic is needed is that when a .pyc file is generated, the filename embedded and thus what is readable in the code object of the frame object is the fully qualified filepath when the pyc is generated. If files are moved from machine to machine this can break debugging as the .pyc will refer to the .py on the original machine. Another case might be sharing code over a network... This logic deals with that.
Analyze a parse tree to find suite introducers which span a number of lines.
Get data from `filename` if it is a zip file path, or return None if it is not.
Return the name of morf as used in report.
Convert filename to relative filename from self.relative_dir.