{{for lineName in ['displayName', 'tool', 'limit', 'host', 'os', 'system', 'date', 'runset', 'branch', 'options', 'property', 'title']}} {{if lineName in head and head[lineName]}} {{py:line = head[lineName]}} {{for cell, width in line.content}} {{endfor}} {{endif}} {{endfor}} {{for line in body}} {{if line.has_sourcefile}} {{for id, show in zip(line.id[1:], relevant_id_columns[1:])}} {{if show}} {{endif}} {{endfor}} {{for runResult in line.results}} {{for column, value in zip(runResult.columns, runResult.values)}} {{py:ccsclass = runResult.category + ' ' + str(column.type.type)}} {{if (column.title == 'status') or column.href}} {{py:value = (value or column.pattern or '-').lower()}} {{if runResult.log_file or column.href}} {{else}} {{endif}} {{else}} {{endif}} {{endfor}} {{endfor}} {{endfor}} {{py: def format_stat_title(stat, column): '''Helper function to create the tooltip of a status cell containing average etc.''' if not stat or not stat.avg: return None values = dict() for k, v in stat.__dict__.items(): if k in ['avg', 'stdev']: formatted_value = column.format_value(v, False, 'tooltip_stochastic') else: formatted_value = column.format_value(v, False, 'tooltip') values[k] = formatted_value return 'Min: {min}, Max: {max}, Average: {avg}, Median: {median}, StDev: {stdev}'.format(**values) }} {{py: def get_stat_col_classes(column, cell, lineid): classes = [] if lineid: classes.append(str(lineid)) if column.type: classes.append(str(column.type.type)) if cell is None: classes.append("novalue") return " ".join(classes) }} {{py:line = head['title']}} {{for cell, width in line.content}} {{endfor}} {{for line in foot}} {{for cell, column in zip(line.content, foot_columns)}} {{endfor}} {{endfor}} {{py:line = head['runset']}} {{for cell, width in line.content}} {{endfor}}
{{line.name}}{{html(format_options(html_quote(cell))) if line.id == 'options' else cell}}
{{line.short_filename}}{{else}}{{line.short_filename}}{{endif}}{{id}}{{value}}{{column.format_value(value, True, 'html_cell')|html}}
{{line.name}}{{cell}}
{{line.title | html}}{{column.format_value(cell, True, 'html_cell')|html}}
{{line.name}}{{cell}}