schrodinger.test.memtest module¶
Parse and analyze valgrind output and suppressions.
- class schrodinger.test.memtest.Suppression(error_type, suppressions, title='')[source]¶
Bases:
object
Represent a suppression for a leak found by valgrind.
- class schrodinger.test.memtest.Leak(filename, command, description, backtrace=None, suppression=None)[source]¶
Bases:
object
Represent a Valgrind Leak.
- schrodinger.test.memtest.discover_leaks(directory, verbose=False)[source]¶
Search a directory for valgrind log files.
- Return type
dict
- Returns
Key: directory path, Value: list of unique leaks seen in that directory
- schrodinger.test.memtest.simplify(suppression)[source]¶
Remove test code from suppression. Wildcard any absolute paths.
- schrodinger.test.memtest.uniquify_leaks(leaks)[source]¶
Given a list of Leak objects, remove any duplicates. Duplicates include leaks that are wholey included in another leak.