§
    Ètºfu	  ã                   ó    —  G d „ d¦  «        Z dS )c                   óV   — e Zd ZdZdZdd„Zd„ Zdedefd„Z	dedefd	„Z
d
„ Zd„ Zd„ ZdS )ÚCounterzøa simple counter object for testing trial's doctest support

    >>> c = Counter()
    >>> c.value()
    0
    >>> c += 3
    >>> c.value()
    3
    >>> c.incr()
    >>> c.value() == 4
    True
    >>> c == 4
    True
    >>> c != 9
    True

    é    Nc                 ó"   — || _         || _        d S )N)Ú_countÚmaxval)ÚselfÚinitialValuer   s      ú]/var/www/surfInsights/venv3-11/lib/python3.11/site-packages/twisted/trial/test/mockdoctest.pyÚ__init__zCounter.__init__   s   € Ø"ˆŒØˆŒˆˆó    c                 óx   — | j         �"| j        |z   | j         k    rt          d¦  «        ‚| xj        |z  c_        | S )zƒadd other to my value and return self

        >>> c = Counter(100)
        >>> c += 333
        >>> c == 433
        True
        Nzsorry, counter got too big)r   r   Ú
ValueError©r   Úothers     r
   Ú__iadd__zCounter.__iadd__!   sC   € ð Œ;Ð"¨¬°uÑ)<ÀÄÒ(KÐ(KÝÐ9Ñ:Ô:Ð:àˆKŒK˜5Ñ ˆKŒKØˆr   r   Úreturnc                 ó   — | j         |k    S )zÛequality operator, compare other to my value()

        >>> c = Counter()
        >>> c == 0
        True
        >>> c += 10
        >>> c.incr()
        >>> c == 10   # fail this test on purpose
        True

        ©r   r   s     r
   Ú__eq__zCounter.__eq__/   s   € ð Œ{˜eÒ#Ð#r   c                 ó.   — |                       |¦  «         S )zXinequality operator

        >>> c = Counter()
        >>> c != 10
        True
        )r   r   s     r
   Ú__ne__zCounter.__ne__=   s   € ð —;’;˜uÑ%Ô%Ð%Ð%r   c                 ó0   — |                       d¦  «         dS )a:  increment my value by 1

        >>> from twisted.trial.test.mockdoctest import Counter
        >>> c = Counter(10, 11)
        >>> c.incr()
        >>> c.value() == 11
        True
        >>> c.incr()
        Traceback (most recent call last):
          File "<stdin>", line 1, in ?
          File "twisted/trial/test/mockdoctest.py", line 51, in incr
            self.__iadd__(1)
          File "twisted/trial/test/mockdoctest.py", line 39, in __iadd__
            raise ValueError, "sorry, counter got too big"
        ValueError: sorry, counter got too big
        é   N)r   ©r   s    r
   ÚincrzCounter.incrF   s   € ð" 	�Š�aÑÔÐÐÐr   c                 ó   — | j         S )zlreturn this counter's value

        >>> c = Counter(555)
        >>> c.value() == 555
        True
        r   r   s    r
   ÚvaluezCounter.valueY   s   € ð Œ{Ðr   c                 ó   — dS )zui will raise an unexpected exception...
        ... *CAUSE THAT'S THE KINDA GUY I AM*

              >>> 1/0
        N© r   s    r
   ÚunexpectedExceptionzCounter.unexpectedExceptionb   s   € € € r   )r   N)Ú__name__Ú
__module__Ú__qualname__Ú__doc__r   r   r   ÚobjectÚboolr   r   r   r   r    r   r   r
   r   r      s¹   € € € € € ðð ð$ €Fðð ð ð ðð ð ð$˜Fð $ tð $ð $ð $ð $ð&˜Fð & tð &ð &ð &ð &ðð ð ð&ð ð ðð ð ð ð r   r   N)r   r   r   r
   ú<module>r'      sA   ðð_ð _ð _ð _ð _ñ _ô _ð _ð _ð _r   