Why Gemfury? Push, build, and install  RubyGems npm packages Python packages Maven artifacts PHP packages Go Modules Debian packages RPM packages NuGet packages

Repository URL to install this package:

Details    
Size: Mime:
B

Þ`Úò+õ°ã@sRdZddlZddlmZmZddlmZddlmZddl	m
Z
Gdd„dƒZdS)	zSummary reportingéN)ÚConfigErrorÚNoDataError)Úhuman_sorted_items)Úget_analysis_to_report)ÚNumbersc@s2eZdZdZdd„Zdd„Zddd„Zd	d
„ZdS)ÚSummaryReporterz*A reporter for writing the summary report.cCsP||_|jj|_| ¡ ¡|_d|_g|_d|_d|_t	|jj
d|_d|_dS)Nr)Ú	precisionz%s   %s: %s)
ÚcoverageÚconfigÚget_dataZhas_arcsÚbranchesÚoutfileÚfr_analysisÚ
skipped_countÚempty_countrrÚ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__cCs |j | ¡¡|j d¡dS)z-Write a line to the output, adding a newline.Ú
N)r
ÚwriteÚrstrip)rÚlinerrrÚwriteoutszSummaryReporter.writeoutNcs–|ptj|_|j ¡ |jj¡x$t|j|ƒD]\}}| 	||¡q.Wt
dd„|jDƒdgƒ}d|}d}d}|dd}	|d	}
|jrš|	d
7}	|
d7}
t
|jjd ¡}|	d
|ddf7}	|
d|df7}
|jjrê|	d7}	|
d7}
dt|	ƒ}tddddd}
|jr |
 tddd¡| |	¡| |¡g}xŽ|jD]„\}}|j}| ¡|j|jf}|jrx||j|jf7}||jf7}|jjr ||jddf7}|
|}||jf7}| ||f¡q@W|jjpÔd  ¡}d}|ddkrþd}|dd…}n|dd kr|dd…}|dkr0t!||d!}n<|
 "|¡‰ˆdkrVt#d"|jj›ƒ‚|j‡fd#d$„|d%x|D]}| |d¡qrW|j$j%dkrþ| |¡d&|j$j|j$jf}|jrÐ||j$j|j$jf7}||j$jf7}|jjrð|d'7}| |
|¡|j$j%s|j&st'd(ƒ‚|jj(rN|j&rN| ||j&|j&dkrDd)nd*f¡|jj)r„|j*r„| ||j*|j*dkrzd)nd*f¡|j$jo”|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).

        cSsg|]\}}t| ¡ƒ‘qSr)ÚlenÚrelative_filename)Ú.0ÚfrÚanalysisrrrú
<listcomp>/sz*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)rz%*séZCoverz	%%%ds%%%%éz
   Missingz   %sú-réééÿÿÿÿ)ÚnameZstmtsZmissZcover)ÚbranchZbrpartT)rr)FNú+)ÚreversezInvalid sorting option: cs|dˆ|dfS)Nr&rr)Úl)ÚpositionrrÚ<lambda>kóz(SummaryReporter.report.<locals>.<lambda>)Úkeyr,ZTOTAL)ÚzNo data to report.Úsr2)+ÚsysÚstdoutr
r	rZset_query_contextsr
Zreport_contextsrÚreport_one_fileÚmaxrrrrZpc_str_widthZshow_missingrÚdictÚupdaterÚnumbersrÚn_statementsÚ	n_missingZ
n_branchesÚn_partial_branchesZpc_covered_strZmissing_formattedZ
pc_coveredÚappendÚsortÚlowerrÚgetrrZn_filesrrÚskip_coveredÚ
skip_emptyr)rZmorfsr
rrZmax_nameZfmt_nameZfmt_skip_coveredZfmt_skip_emptyÚheaderZfmt_coverageZwidth100ZruleZcolumn_orderÚlinesÚnumsÚargsÚtextZsort_optionr,rr)r.rÚreport!sŒ








  zSummaryReporter.reportcCs~|j}|j|7_|jdk}|jdk}|jjrH|rH|rH|jd7_n2|jjrj|jdkrj|j	d7_	n|j
 ||f¡dS)z4Report on just one file, the callback from report().rr&N)r:rr<r=r
rBrrCr;rrr>)rrrrFZno_missing_linesZno_missing_branchesrrrr6Šs

zSummaryReporter.report_one_file)N)Ú__name__Ú
__module__Ú__qualname__Ú__doc__rrrIr6rrrrrs

ir)rMr4Zcoverage.exceptionsrrZ
coverage.miscrZcoverage.reportrZcoverage.resultsrrrrrrÚ<module>s