
    DUf                         d dl Z  e j        d          Zd Zd Zd Zd Zd Zd Ze	d	k    rK e
 e                                                      D ]'\  ZZe                    d
          r ee           &dS dS )    Nza.bedc                 (   | j         }t                       t          |           t          dt          |          z             t          j                                        }t           | t                              |z
  }|dk    s
J |            d S )N.r   )__doc__printlen
pybedtoolshelpers
n_open_fdsmaxfn)funcdocorig_fdsobss       Z/var/www/html/software/conda/lib/python3.11/site-packages/pybedtools/test/test_len_leak.pyshow_open_fdsr      sx    
,C	GGG	#JJJ	#C.!,,..H
dd2hh--(
"C!888S88888    c              #      K   t          d          D ]6}t          j        |           }t          j                                        V  7dS )zcreate bedtool in loop
   N)ranger   BedToolr	   r
   srcixs      r   func1r      sS      2YY . .s## ++------. .r   c              #      K   t          d          D ]E}t          j        |           }t          |           t          j                                        V  FdS )z'create bedtool in loop and check lengthr   N)r   r   r   r   r	   r
   r   s      r   func2r      s^      2YY . .s##A ++------. .r   c              #      K   t          j        |           }t          d          D ]1}t          |           t           j                                        V  2dS )z3create bedtool outside of loop; check length insider   N)r   r   r   r   r	   r
   )r   r   r   s      r   func3r       s^      3A2YY . .A ++------. .r   c              #      K   t          d          D ]C}t          t          j        |                      t          j                                        V  DdS )z+create and len in loop; don't assign to varr   N)r   r   r   r   r	   r
   )r   r   s     r   func4r"   '   s\      2YY . .Js##$$$ ++------. .r   c              #      K   t          j        |           }t          d          D ]@}|                    d          }|dk    sJ t           j                                        V  AdS )zcheck field countr      )n   N)r   r   r   field_countr	   r
   )r   r   r   fcs       r   func0r)   .   su      3A2YY . . ]]Q]Qwwww ++------. .r   __main__r   )r   example_filenamer   r   r   r   r    r"   r)   __name__sortedlocalsitemskv
startswith r   r   <module>r4      s        Z ))  . . .. . .. . .. . .. . . zvvxx~~''((  1<< 	M!  r   