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

ŽIÌà;ã@sTdZddlZddlmZddlmZddlmZddlm	Z	m
Z
Gdd„deƒZdS)	zSummary reportingéN)Úenv)Úget_analysis_to_report)ÚNumbers)ÚCoverageExceptionÚoutput_encodingc@s2eZdZdZdd„Zdd„Zddd„Zd	d
„ZdS)ÚSummaryReporterz*A reporter for writing the summary report.cCsH||_|jj|_| ¡ ¡|_d|_g|_d|_d|_t	ƒ|_
d|_dS)Nrz%s   %s: %s)ÚcoverageÚconfigÚget_dataZhas_arcsÚbranchesÚoutfileÚfr_analysisÚ
skipped_countÚempty_countrÚtotalZfmt_err)Úselfr©rúŽ/build/wlanpi-profiler-MIf3Xw/wlanpi-profiler-1.0.8/debian/wlanpi-profiler/opt/wlanpi-profiler/lib/python3.7/site-packages/coverage/summary.pyÚ__init__s
zSummaryReporter.__init__cCs2tjr| tƒ¡}|j | ¡¡|j d¡dS)z-Write a line to the output, adding a newline.Ú
N)rÚPY2ÚencoderrÚwriteÚrstrip)rÚlinerrrÚwriteoutszSummaryReporter.writeoutNcs~|ptj|_|j ¡ |jj¡x$t|j|ƒD]\}}| 	||¡q.Wt
dd„|jDƒdgƒ}d|}d}d}|dd}	|d	}
|jrš|	d
7}	|
d7}
t
 ¡}|	d|d
df7}	|
d|df7}
|jjrà|	d7}	|
d7}
dt|	ƒ}tddddd}
|jr|
 tdd
d¡| |	¡| |¡g}xŽ|jD]„\}}|j}| ¡|j|jf}|jrn||j|jf7}||jf7}|jjr–||jddf7}|
|}||jf7}| ||f¡q6Wt|jddƒrT|jj  ¡}d}|ddkrþd}|dd…}n|ddkr|dd…}|
 !|¡‰ˆdkr>t"d  #|jj¡ƒ‚|j‡fd!d"„|d#x|D]}| |d¡qZW|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'r6|j&r6| ||j&|j&dkr,d'nd(f¡|jj(rl|j)rl| ||j)|j)dkrbd'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>1sz*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 %6dz%*séZCoverz	%%%ds%%%%éz
   Missingz   %sú-réééÿÿÿÿ)ÚnameZstmtsZmissZcover)ÚbranchZbrpartT)rÚsortNFú+zInvalid sorting option: {!r}cs|dˆ|dfS)Nr'rr)Úl)ÚpositionrrÚ<lambda>kóz(SummaryReporter.report.<locals>.<lambda>)ÚkeyÚreverseZTOTAL)ÚzNo data to report.Úsr4)*ÚsysÚstdoutrrr
Zset_query_contextsr	Zreport_contextsrÚreport_one_fileÚmaxr
rrZpc_str_widthZshow_missingrÚdictÚupdaterÚnumbersrÚn_statementsÚ	n_missingZ
n_branchesÚn_partial_branchesZpc_covered_strZmissing_formattedZ
pc_coveredÚappendÚgetattrr,ÚlowerÚgetrÚformatrZn_filesrÚskip_coveredÚ
skip_emptyr)rZmorfsrrr Zmax_nameZfmt_nameZfmt_skip_coveredZfmt_skip_emptyÚheaderZfmt_coverageZwidth100ZruleZcolumn_orderÚlinesÚnumsÚargsÚtextZsort_optionr3rr)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	rErrFr=rr
r@)rrr rIZno_missing_linesZno_missing_branchesrrrr8Šs

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

gr)
rPr6rrZcoverage.reportrZcoverage.resultsrZ
coverage.miscrrÚobjectrrrrrÚ<module>s