An object instantiated as a singleton for each statsfile that provides
access to the database cache from a pool of StatsCache objects.
a new object with type S, a subtype of T
|
|
|
|
|
_getfileid(self,
filename,
check_mod_info=True,
store=None)
return fileid representing the given file in the statscache. |
source code
|
|
|
_getstoredcheckerconfig(self,
checker)
See if this checker configuration has been used before. |
source code
|
|
|
_cacheunitstats(self,
units,
fileid,
unitindex=None,
file_totals_record=FileTotals.new_record())
Cache the statistics for the supplied unit(s). |
source code
|
|
|
_cachestore(self,
store,
realpath,
mod_info)
Calculates and caches the statistics of the given store
unconditionally. |
source code
|
|
|
filetotals(self,
filename,
store=None)
Retrieves the statistics for the given file if possible, otherwise
delegates to cachestore(). |
source code
|
|
|
_cacheunitschecks(self,
units,
fileid,
configid,
checker,
unitindex=None)
Helper method for cachestorechecks() and recacheunit() |
source code
|
|
|
_cachestorechecks(self,
fileid,
store,
checker,
configid)
Calculates and caches the error statistics of the given store
unconditionally. |
source code
|
|
|
|
|
|
|
_checkerrors(self,
filename,
fileid,
configid,
checker,
store) |
source code
|
|
|
_geterrors(self,
filename,
fileid,
configid,
checker,
store) |
source code
|
|
|
|
|
filechecks(self,
filename,
checker,
store=None)
Retrieves the error statistics for the given file if possible,
otherwise delegates to cachestorechecks(). |
source code
|
|
|
file_fails_test(self,
filename,
checker,
name) |
source code
|
|
|
filestatestats(self,
filename,
store=None)
Return a dictionary of unit stats mapping sets of unit indices with
those states |
source code
|
|
|
filestats(self,
filename,
checker,
store=None)
Return a dictionary of property names mapping sets of unit indices
with those properties. |
source code
|
|
|
unitstats(self,
filename,
_lang=None,
store=None)
Return a dictionary of property names mapping to arrays which map
unit indices to property values. |
source code
|
|
Inherited from object :
__delattr__ ,
__getattribute__ ,
__hash__ ,
__init__ ,
__reduce__ ,
__reduce_ex__ ,
__repr__ ,
__setattr__ ,
__str__
|