§
    ÈtºfP
  ã                   óÔ   — d Z ddlmZ ddlmZmZmZ ddlmZ ddl	m
Z
 ddlmZ ddlmZmZ eeeeeef         f         Z ee¦  «         G d	„ d
 e
e¦  «        ¦  «        ¦   «         ZdS )z«
The reporter is not made to support concurrent test running, so we will
hold test results in here and only send them to the reporter once the
test is over.

@since: 12.3
é    )ÚTracebackType)ÚOptionalÚTupleÚUnion)Úimplementer)ÚproxyForInterface)ÚFailureé   )Ú	IReporterÚ	ITestCasec            	       ó’   ‡ — e Zd ZdZˆ fd„Zd„ Zdededdfd„Zded	eddfd
„Z	d„ Z
dd„Z	 dded	edee         ddfd„Zd„ Zd„ Zˆ xZS )ÚDistReporterz
    See module docstring.
    c                 óX   •— t          ¦   «                              |¦  «         i | _        d S ©N)ÚsuperÚ__init__Úrunning)ÚselfÚoriginalÚ	__class__s     €ú_/var/www/surfInsights/venv3-11/lib/python3.11/site-packages/twisted/trial/_dist/distreporter.pyr   zDistReporter.__init__    s&   ø€ Ý‰Œ×Ò˜Ñ"Ô"Ð"ØˆŒˆˆó    c                 óº   — g | j         |                     ¦   «         <   | j         |                     ¦   «                                       | j        j        |f¦  «         dS )z&
        Queue test starting.
        N)r   ÚidÚappendr   Ú	startTest©r   Útests     r   r   zDistReporter.startTest$   sK   € ð #%ˆŒ�T—W’W‘Y”YÑØŒ�T—W’W‘Y”YÔ×&Ò&¨¬Ô(?ÀÐ'FÑGÔGÐGÐGÐGr   r   ÚfailÚreturnNc                 ó„   — | j         |                     ¦   «                                       | j        j        ||f¦  «         dS )z)
        Queue adding a failure.
        N)r   r   r   r   Ú
addFailure)r   r   r   s      r   r"   zDistReporter.addFailure+   s9   € ð 	Œ�T—W’W‘Y”YÔ×&Ò&¨¬Ô(@À$ÈÐ'MÑNÔNÐNÐNÐNr   Úerrorc                 ó„   — | j         |                     ¦   «                                       | j        j        ||f¦  «         dS )z%
        Queue error adding.
        N)r   r   r   r   ÚaddError)r   r   r#   s      r   r%   zDistReporter.addError1   s9   € ð 	Œ�T—W’W‘Y”YÔ×&Ò&¨¬Ô(>ÀÀeÐ'LÑMÔMÐMÐMÐMr   c                 ó„   — | j         |                     ¦   «                                       | j        j        ||f¦  «         dS )z&
        Queue adding a skip.
        N)r   r   r   r   ÚaddSkip)r   r   Úreasons      r   r'   zDistReporter.addSkip7   s9   € ð 	Œ�T—W’W‘Y”YÔ×&Ò&¨¬Ô(=¸tÀVÐ'LÑMÔMÐMÐMÐMr   c                 ó„   — | j         |                     ¦   «                                       | j        j        ||f¦  «         dS )z5
        Queue adding an unexpected success.
        N)r   r   r   r   ÚaddUnexpectedSuccess)r   r   Útodos      r   r*   z!DistReporter.addUnexpectedSuccess=   s:   € ð 	Œ�T—W’W‘Y”YÔ×&Ò&¨¬Ô(JÈDÐRVÐ'WÑXÔXÐXÐXÐXr   r+   c                 ó†   — | j         |                     ¦   «                                       | j        j        |||f¦  «         dS )z3
        Queue adding an expected failure.
        N)r   r   r   r   ÚaddExpectedFailure)r   r   r#   r+   s       r   r-   zDistReporter.addExpectedFailureC   sF   € ð 	Œ�T—W’W‘Y”YÔ×&Ò&ØŒ]Ô-¨t°U¸DÐAñ	
ô 	
ð 	
ð 	
ð 	
r   c                 ó‚   — | j         |                     ¦   «                                       | j        j        |f¦  «         dS )z)
        Queue adding a success.
        N)r   r   r   r   Ú
addSuccessr   s     r   r/   zDistReporter.addSuccessM   s7   € ð 	Œ�T—W’W‘Y”YÔ×&Ò&¨¬Ô(@À$Ð'GÑHÔHÐHÐHÐHr   c                 ó   — | j         |                     ¦   «                                       | j        j        |f¦  «         | j         |                     ¦   «                  D ]} |d         |dd…         Ž  Œ| j         |                     ¦   «         = dS )zA
        Queue stopping the test, then unroll the queue.
        r   é   N)r   r   r   r   ÚstopTest)r   r   Ústeps      r   r2   zDistReporter.stopTestS   sƒ   € ð 	Œ�T—W’W‘Y”YÔ×&Ò&¨¬Ô(>ÀÐ'EÑFÔFÐFØ”L §¢¡¤Ô+ð 	ð 	ˆDØˆD�ŒG�T˜!˜"˜"”XÐÐÐØŒL˜Ÿš™œÐ#Ð#Ð#r   r   )Ú__name__Ú
__module__Ú__qualname__Ú__doc__r   r   r   ÚReporterFailurer"   r%   r'   r*   r   Ústrr-   r/   r2   Ú__classcell__)r   s   @r   r   r      sC  ø€ € € € € ðð ðð ð ð ð ðHð Hð HðO˜yð O°ð OÀDð Oð Oð Oð OðN˜Yð N¨ð NÀ4ð Nð Nð Nð NðNð Nð NðYð Yð Yð Yð NRð
ð 
Øð
Ø&5ð
Ø=EÀc¼]ð
à	ð
ð 
ð 
ð 
ðIð Ið Ið$ð $ð $ð $ð $ð $ð $r   r   N)r7   Útypesr   Útypingr   r   r   Úzope.interfacer   Útwisted.python.componentsr   Útwisted.python.failurer	   Úitrialr   r   ÚtypeÚ	Exceptionr8   r   © r   r   ú<module>rD      s  ððð ð  Ð Ð Ð Ð Ð Ø )Ð )Ð )Ð )Ð )Ð )Ð )Ð )Ð )Ð )à &Ð &Ð &Ð &Ð &Ð &à 7Ð 7Ð 7Ð 7Ð 7Ð 7Ø *Ð *Ð *Ð *Ð *Ð *Ø )Ð )Ð )Ð )Ð )Ð )Ð )Ð )à˜  t¨Y¸Ð'EÔ!FÐFÔG€ð €ˆYÑÔð?$ð ?$ð ?$ð ?$ð ?$Ð$Ð$ YÑ/Ô/ñ ?$ô ?$ñ Ôð?$ð ?$ð ?$r   