B
    `                 @   sl   d Z ddlmZmZmZ eZddlmZ	 ddl
mZmZ ddlmZmZmZmZ G dd	 d	eZd
d ZdS )z3Expand target names in an aggregated coverage file.    )absolute_importdivisionprint_function   )types)SortedSetEncoderwrite_json_file   )CoverageAnalyzeTargetsConfigexpand_indexes
format_arcread_reportc                   s    e Zd ZdZ fddZ  ZS )"CoverageAnalyzeTargetsExpandConfigz@Configuration for the `coverage analyze targets expand` command.c                s$   t t| | |j| _|j| _d S )N)superr   __init__
input_fileoutput_file)selfargs)	__class__ e/home/dcms/DCMS/lib/python3.7/site-packages/ansible_test/_internal/coverage/analyze/targets/expand.pyr      s    z+CoverageAnalyzeTargetsExpandConfig.__init__)__name__
__module____qualname____doc__r   __classcell__r   r   )r   r   r      s   r   c             C   sF   t | j\}}}tt||tt||td}| jsBt| j|t	d dS )z3Expand target names in an aggregated coverage file.)Zarcslines)encoderN)
r   r   dictr   r   strexplainr   r   r   )r   Zcovered_targetsZcovered_path_arcsZcovered_path_linesreportr   r   r   'command_coverage_analyze_targets_expand   s    
r#   N)r   
__future__r   r   r   type__metaclass__ r   tior   r   r
   r   r   r   r   r#   r   r   r   r   <module>   s   	