
    `iV                         d dl Z d dlmZ d dlmZ d dlmZ d dlmZ d dl	m
Z
mZ  G d de          Zed	k    r e j                     dS dS )
    N)patch)TestCase)njit)ir)NotifyLocBase_the_registryc                   F    e Zd Z ej        ddi          d             ZdS )TestMiscCoverageSupportNUMBA_JIT_COVERAGE1)envvarsc                   	  G d dt                     }t          |gz   }d}t          ||          5  t          d             } |            }d d d            n# 1 swxY w Y   |                     |d           d}|j        j        |z   }t          j        t          d          }| 
                    d|                    |          f|j                   | 
                    d	|j                   t          ||          5  d
	t          	fd            } |            }d d d            n# 1 swxY w Y   |                     |d           |j        j        |z   }| 
                    d|                    |          f|j                   |                     d|                    |dz             f|j                   | 
                    d|                    |dz             f|j                   | 
                    d	|j                   d S )Nc                       e Zd Zg Zd Zd ZdS )BTestMiscCoverageSupport.test_custom_loc_notifier.<locals>.MyNotifyc                 >    | j                             d|f           d S )NNOTIFYrecordsappend)selflocs     z/home/jaya/work/projects/VOICE-AGENT/VIET/agent-env/lib/python3.11/site-packages/numba/tests/test_misc_coverage_support.pynotifyzITestMiscCoverageSupport.test_custom_loc_notifier.<locals>.MyNotify.notify   s"    ##XsO44444    c                 :    | j                             d           d S )NCLOSENr   )r   s    r   closezHTestMiscCoverageSupport.test_custom_loc_notifier.<locals>.MyNotify.close   s    ##O44444r   N)__name__
__module____qualname__r   r   r    r   r   MyNotifyr      s7        G5 5 55 5 5 5 5r   r#   z)numba.misc.coverage_support._the_registryc                      dS )N{   r"   r"   r   r   fooz=TestMiscCoverageSupport.test_custom_loc_notifier.<locals>.foo   s    sr   r%         r   r   Fc                       rdS dS )NiA  r%   r"   )conds   r   r&   z=TestMiscCoverageSupport.test_custom_loc_notifier.<locals>.foo1   s     3sr   )r   r   r   r   assertEqual__code__co_firstlinenor   Loc__file__assertInwith_linenor   assertNotIn)
r   r#   new_the_registrygvr&   resfirst_offsetoffsetr   r*   s
            @r   test_custom_loc_notifierz0TestMiscCoverageSupport.test_custom_loc_notifier   s   	5 	5 	5 	5 	5} 	5 	5 	5 )H:582'(( 	 	  T #%%C	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	c"""
 ,|;fXq!!x!8!898;KLLLox'7888 2'(( 		 		D    T
 #%%C		 		 		 		 		 		 		 		 		 		 		 		 		 		 		 	c""" ,|;x!8!898;KLLL 	svz223X5E	
 	
 	

 	x!!<!<=x?OPPPox'788888s#   AA A D++D/2D/N)r   r    r!   r   run_test_in_subprocessr8   r"   r   r   r
   r
      sE        $X$.BC-HIII:9 :9 JI:9 :9 :9r   r
   __main__)unittestunittest.mockr   numba.tests.supportr   numbar   
numba.corer   numba.misc.coverage_supportr   r   r
   r   mainr"   r   r   <module>rB      s           ( ( ( ( ( (             D D D D D D D D<9 <9 <9 <9 <9h <9 <9 <9~ zHMOOOOO r   