Module Expr Str ImportFrom alias ImportFrom alias ImportFrom alias Import alias Import alias Import alias Import alias Import alias Import alias identifier ClassDef bases AttributeLoad NameLoad attr AttributeLoad NameLoad attr body FunctionDef arguments args NameParam defaults vararg kwarg body Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr keyword Str keyword Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults body FunctionDef arguments args NameParam defaults body Return Call NameLoad NameLoad Str decorator_list Return Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body FunctionDef arguments args NameParam defaults body Return Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Call NameLoad Call AttributeLoad NameLoad attr decorator_list Expr Call AttributeLoad NameLoad attr Num Assign NameStore Call NameLoad NameLoad Call NameLoad Num Num For NameStore NameLoad body Assign NameStore Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr TupleLoad NameLoad NameLoad Num Expr Call AttributeLoad NameLoad attr Call NameLoad AttributeLoad NameLoad attr Call NameLoad AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Call NameLoad Lambda arguments args NameParam defaults CompareEq SubscriptLoad NameLoad Index Num SubscriptLoad NameLoad Index Num AttributeLoad NameLoad attr ListLoad Assign NameStore BinOpSub Call NameLoad AttributeLoad NameLoad attr Num Expr Call AttributeLoad NameLoad attr SubscriptLoad SubscriptLoad AttributeLoad NameLoad attr Index NameLoad Index Num SubscriptLoad NameLoad Index Num Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Num Expr Call AttributeLoad NameLoad attr SubscriptLoad SubscriptLoad AttributeLoad NameLoad attr Index NameLoad Index Num SubscriptLoad NameLoad Index Num Expr Call AttributeLoad NameLoad attr SubscriptLoad SubscriptLoad AttributeLoad NameLoad attr Index Num Index Num SubscriptLoad NameLoad Index Num decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr Num Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr Num decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list decorator_list
N/A N/A 
Tests the file handle cache
 __future__ division __future__ print_function __future__ unicode_literals N/A os N/A shutil N/A tempfile N/A unittest N/A uuid N/A ga4gh.datamodel datamodel TestFileHandleCache N/A N/A datamodel PysamFileHandleCache N/A unittest TestCase N/A __init__ N/A N/A self N/A args kwargs N/A N/A N/A N/A N/A super TestFileHandleCache self __init__ N/A N/A N/A N/A unittest TestCase __init__ self args kwargs N/A setUp N/A N/A self N/A N/A N/A N/A self _tempdir N/A N/A tempfile mkdtemp prefix ga4gh_file_cache dir N/A N/A tempfile gettempdir N/A _getFileHandle N/A N/A self dataFile N/A N/A openMethod N/A N/A dataFile N/A N/A N/A N/A open dataFile w N/A N/A N/A N/A self getFileHandle dataFile openMethod N/A testGetFileHandle N/A N/A self N/A N/A genFileName N/A N/A x N/A N/A N/A N/A N/A N/A os path join N/A self _tempdir N/A str N/A N/A uuid uuid4 N/A N/A N/A N/A self setMaxCacheSize 9 N/A fileList N/A map genFileName N/A range 0 10 N/A f fileList N/A N/A handle N/A N/A self _getFileHandle f N/A N/A N/A self assertEquals N/A N/A N/A self _cache count N/A f handle 1 N/A N/A N/A self assertEquals N/A len N/A self _memoTable N/A len N/A self _cache N/A N/A N/A self assertEquals N/A filter N/A N/A N/A x N/A N/A N/A x N/A 0 N/A fileList N/A 0 N/A self _cache N/A N/A topIndex N/A N/A len N/A self _cache 1 N/A N/A N/A self assertEquals N/A N/A N/A self _cache N/A topIndex N/A 0 N/A fileList N/A 1 N/A N/A N/A self _getFileHandle N/A fileList N/A 1 N/A N/A N/A self assertNotEqual N/A N/A N/A self _cache N/A topIndex N/A 0 N/A fileList N/A 1 N/A N/A N/A self assertEquals N/A N/A N/A self _cache N/A 0 N/A 0 N/A fileList N/A 1 N/A testSetCacheMaxSize N/A N/A self N/A N/A N/A N/A N/A self assertRaises ValueError N/A self setMaxCacheSize 0 N/A N/A N/A self assertRaises ValueError N/A self setMaxCacheSize -1 N/A tearDown N/A N/A self N/A N/A N/A N/A N/A shutil rmtree N/A self _tempdir N/A N/A