Repository URL to install this package:
Version:
1.0.11 ▾
|
wlanpi-profiler
/
opt
/
wlanpi-profiler
/
lib
/
python3.7
/
site-packages
/
coverage
/
__pycache__
/
summary.cpython-37.pyc
|
---|
B Þ`Úò+õ°ã @ sR d Z ddlZddlmZmZ ddlmZ ddlmZ ddl m Z G dd dZdS ) zSummary reportingé N)ÚConfigErrorÚNoDataError)Úhuman_sorted_items)Úget_analysis_to_report)ÚNumbersc @ s2 e Zd ZdZdd Zdd ZdddZd d ZdS )ÚSummaryReporterz*A reporter for writing the summary report.c C sP || _ | j j| _| ¡ ¡ | _d | _g | _d| _d| _t | jj d| _d| _d S )Nr )Ú precisionz%s %s: %s) ÚcoverageÚconfigÚget_dataZhas_arcsÚbranchesÚoutfileÚfr_analysisÚ skipped_countÚempty_countr r ÚtotalZfmt_err)Úselfr © r ú/build/wlanpi-profiler-7IIg1Q/wlanpi-profiler-1.0.11/debian/wlanpi-profiler/opt/wlanpi-profiler/lib/python3.7/site-packages/coverage/summary.pyÚ__init__ s zSummaryReporter.__init__c C s | j | ¡ ¡ | j d¡ dS )z-Write a line to the output, adding a newline.Ú N)r ÚwriteÚrstrip)r Úliner r r Úwriteout s zSummaryReporter.writeoutNc s |pt j| _| j ¡ | jj¡ x$t| j|D ]\}}| ||¡ q.W t dd | jD dg }d| }d}d}|d d } |d } | jr| d 7 } | d7 } t | jjd ¡ }| d |d df 7 } | d|d f 7 } | jjrê| d7 } | d7 } dt| }tddddd} | jr | tddd¡ | | ¡ | |¡ g }x| jD ]\}}|j}| ¡ |j|jf}| jrx||j|jf7 }||jf7 }| jjr ||jddf7 }| | }||jf7 }| ||f¡ q@W | jjpÔd ¡ }d}|d dkrþd}|dd }n|d d kr|dd }|dkr0t!||d!}n<| "|¡ dkrVt#d"| jj|j fd#d$|d% x|D ]}| |d ¡ qrW | j$j%dkrþ| |¡ d&| j$j| j$jf}| jrÐ|| j$j| j$jf7 }|| j$jf7 }| jjrð|d'7 }| | | ¡ | j$j%s| j&st'd(| jj(rN| j&rN| || j&| j&dkrDd)nd*f ¡ | jj)r| j*r| || j*| j*dkrzd)nd*f ¡ | j$jo| j$jS )+zÙWrites a report summarizing coverage statistics per module. `outfile` is a file object to write the summary to. It must be opened for native strings (bytes on Python 2, Unicode on Python 3). c S s g | ]\}}t | ¡ qS r )ÚlenÚrelative_filename)Ú.0ÚfrÚanalysisr r r ú <listcomp>/ s z*SummaryReporter.report.<locals>.<listcomp>é z %%- %ds z, %s file%s skipped due to complete coverage.z %s empty file%s skipped.ÚNamez Stmts Missz%6d %6dz Branch BrPartz %6d %6d)r z%*sé ZCoverz %%%ds%%%%é z Missingz %sú-r é é éÿÿÿÿ)ÚnameZstmtsZmissZcover)ÚbranchZbrpartT)r r) FNú+)ÚreversezInvalid sorting option: c s | d | d fS )Nr&