:18 d Z ddlmZ ddlZddlmZmZmZmZm Z m
Z
mZ ddlm
Z
mZ ddlmZ ddlmZ ddlmZ dd lmZmZ dd
lmZ erddlmZ G d d
ZdS )zSummary reporting )annotationsN)AnyIOIterableListOptionalTuple
TYPE_CHECKING)ConfigErrorNoDataError)human_sorted_items)FileReporter)get_analysis_to_report)AnalysisNumbers)TMorf)Coveragec T e Zd ZdZd#dZd$d Zd%dZd&dZd&dZd'd(dZ d)dZ
d*d"ZdS )+SummaryReporterz*A reporter for writing the summary report.coverager returnNonec h || _ | j j | _ | | _ d | _ | j j pd| _ | j dvrt d| j g | _ d| _
d| _ t | j j
| _ d S )Ntext> r totalmarkdownzUnknown report format choice: r ) precision)r configget_datahas_arcsbranchesoutfileformat
output_formatr fr_analysis
skipped_countempty_countr r r )selfr s c/builddir/build/BUILD/cloudlinux-venv-1.0.10/venv/lib64/python3.11/site-packages/coverage/report.py__init__zSummaryReporter.__init__ s
m* ))++4466
*.![/96%BBBUt?QUUVVV@Bt{'<===
linestrc | j J | j | | j d dS )z-Write a line to the output, adding a newline.N
)r" writerstrip)r( r, s r) r0 zSummaryReporter.write' sJ |'''4;;==)))4 r+ items
Iterable[str]c V | d | dS )z)Write a list of strings, joined together. N)r0 join)r( r2 s r) write_itemszSummaryReporter.write_items- s$
2775>>"""""r+ header List[str]lines_valuesList[List[Any]]
total_line List[Any] end_linesc
t d |D dgz dz
t t | d dz t d dz t gfd|D z t dd d d d d
d
fd
D }d | }dt | z }| | | | t d d |D ]5}
fdt | D } | | 6|r| |
fdt | D } | | |D ]}
| |
dS )a: Internal method that prints report data in text format.
`header` is a list with captions.
`lines_values` is list of lists of sortable values.
`total_line` is a list with values of the total line.
`end_lines` is a list of ending lines with information about skipped files.
c 8 g | ]}t |d S )r )len.0r, s r)