Trees | Index | Help |
|
---|
Package utils :: Module code_coverage :: Class code_coverage |
|
Note: Contains hit list in self.hits.
Method Summary | |
---|---|
| |
code_coverage |
Add the current context to the tracked code coverage. |
code_coverage |
Removes all code coverage hits from target/tag id combination. |
code_coverage |
Establish a connection to a MySQL server. |
code_coverage |
Dump the entire object structure to disk. |
code_coverage |
Export code coverage data to MySQL. |
code_coverage |
Load the entire object structure from disk. |
code_coverage |
Import code coverage from MySQL. |
code_coverage |
Reset the internal counter and hit list dictionary. |
Class Variable Summary | |
---|---|
NoneType |
heavy = None |
dict |
hits = {}
|
str |
main_module = '[MAIN]'
|
NoneType |
mysql = None |
int |
num = 1 |
Method Details |
---|
__init__(self,
mysql=None,
heavy=False)
|
add(self, pydbg, is_function)Add the current context to the tracked code coverage.
|
clear_mysql(self, target_id, tag_id)Removes all code coverage hits from target/tag id combination. Expects connection to database to already exist via self.mysql.
|
connect_mysql(self, host, user, passwd)Establish a connection to a MySQL server. This must be called prior to export_mysql() or import_mysql(). Alternatively, you can connect manually and set the self.mysql member variable.
|
export_file(file_name)Dump the entire object structure to disk.
|
export_mysql(self, target_id, tag_id)Export code coverage data to MySQL. Expects connection to database to already exist via self.mysql.
|
import_file(file_name)Load the entire object structure from disk.
|
import_mysql(self, target_id, tag_id)Import code coverage from MySQL. Expects connection to database to already exist via self.mysql.
|
reset(self)Reset the internal counter and hit list dictionary.
|
Class Variable Details |
---|
heavy
|
hits
|
main_module
|
mysql
|
num
|
Trees | Index | Help |
|
---|
Generated by Epydoc 2.1 on Thu Sep 14 10:39:51 2006 | http://epydoc.sf.net |