§
    Ètºf]  ã                   ó@   — d Z ddlmZmZ  G d„ dej        ¦  «        ZdS )z
Receivers for use in tests.
é    )ÚbaseÚipositioningc                   ó$   — e Zd ZdZd„ Zd„ Zd„ ZdS )ÚMockPositioningReceivera  
    A mock positioning receiver.

    Mocks all the L{IPositioningReceiver} methods with stubs that don't do
    anything but register that they were called.

    @ivar called: A mapping of names of callbacks that have been called to
        C{True}.
    @type called: C{dict}
    c                 óv   — |                       ¦   «          t          j        D ]}|                      |¦  «         Œd S )N)Úclearr   ÚIPositioningReceiverÚ_addCallback)ÚselfÚ
methodNames     ú`/var/www/surfInsights/venv3-11/lib/python3.11/site-packages/twisted/positioning/test/receiver.pyÚ__init__z MockPositioningReceiver.__init__   sB   € Ø�
Š
‰Œˆå&Ô;ð 	*ð 	*ˆJØ×Ò˜jÑ)Ô)Ð)Ð)ð	*ð 	*ó    c                 ó   — i | _         dS )zt
        Forget all the methods that have been called on this receiver, by
        emptying C{self.called}.
        N©Úcalled)r   s    r   r   zMockPositioningReceiver.clear   s   € ð
 ˆŒˆˆr   c                 ó8   ‡ ‡— ˆˆ fd„}t          ‰ ‰|¦  «         dS )zq
        Adds a callback of the given name, setting C{self.called[name]} to
        C{True} when called.
        c                  ó   •— d‰j         ‰<   d S )NTr   )ÚaÚkwÚnamer   s     €€r   Úcallbackz6MockPositioningReceiver._addCallback.<locals>.callback*   s   ø€ Ø $ˆDŒK˜ÑÐÐr   N)Úsetattr)r   r   r   s   `` r   r
   z$MockPositioningReceiver._addCallback$   s<   øø€ ð	%ð 	%ð 	%ð 	%ð 	%ð 	%õ 	��d˜HÑ%Ô%Ð%Ð%Ð%r   N)Ú__name__Ú
__module__Ú__qualname__Ú__doc__r   r   r
   © r   r   r   r      sK   € € € € € ð	ð 	ð*ð *ð *ðð ð ð	&ð 	&ð 	&ð 	&ð 	&r   r   N)r   Útwisted.positioningr   r   ÚBasePositioningReceiverr   r   r   r   ú<module>r!      s`   ððð ð
 3Ð 2Ð 2Ð 2Ð 2Ð 2Ð 2Ð 2ð"&ð "&ð "&ð "&ð "&˜dÔ:ñ "&ô "&ð "&ð "&ð "&r   