18 from .stringcache
import StringIndex
23 def __init__(self, suite, statistics, errors, strings, basemillis=None,
24 split_results=None, min_level=None, expand_keywords=None):
28 self.
datadata = self.
_get_data_get_data(statistics, errors, basemillis
or 0, expand_keywords)
31 def _get_data(self, statistics, errors, basemillis, expand_keywords):
32 return {
'stats': statistics,
34 'baseMillis': basemillis,
35 'generated': int(time.time() * 1000) - basemillis,
36 'expand_keywords': expand_keywords}
39 self.
datadata.pop(
'errors')
41 self.
suitesuite = remover.remove_keywords(self.
suitesuite)
62 return test[:-1] + ((),)
73 if isinstance(item, StringIndex):
75 elif isinstance(item, tuple):
81 for index, string
in enumerate(strings):
82 if index
in used_indices:
83 remap[index] = index - offset
90 if isinstance(item, StringIndex):
92 elif isinstance(item, tuple):
def __init__(self, suite, statistics, errors, strings, basemillis=None, split_results=None, min_level=None, expand_keywords=None)
def _get_data(self, statistics, errors, basemillis, expand_keywords)
def remove_data_not_needed_in_report(self)
def _remap_string_indices(self, model, remap)
def _remove_keywords_from_tests(self, tests)
def _remove_keywords_from_suite(self, suite)
def _remove_keywords_from_test(self, test)
def remove_unused_strings(self, model, strings)
def _remove_keywords_from_suites(self, suites)
def _get_used_strings(self, strings, used_indices, remap)
def remove_keywords(self, suite)
def _get_used_indices(self, model)