HEX
Server: Apache
System: Linux scp1.abinfocom.com 5.4.0-216-generic #236-Ubuntu SMP Fri Apr 11 19:53:21 UTC 2025 x86_64
User: confeduphaar (1010)
PHP: 8.1.33
Disabled: exec,passthru,shell_exec,system
Upload Files
File: //lib/python3/dist-packages/hamcrest/core/core/__pycache__/allof.cpython-38.pyc
U

�b�V��@s@ddlmZddlmZdZdZdZGdd�de�Zdd	�Zd
S)�)�BaseMatcher��wrap_matcherzJon ReidzCopyright 2011 hamcrest.orgzBSD, see License.txtc@s.eZdZdd�Zd
dd�Zdd�Zdd	�ZdS)�AllOfcGs
||_dS�N)�matchers)�selfr�r	�:/usr/lib/python3/dist-packages/hamcrest/core/core/allof.py�__init__szAllOf.__init__NcCs@|jD]4}|�|�s|r4|�|��d�|�||�dSqdS)N� FT)r�matchesZappend_description_ofZappend_text�describe_mismatch)r�item�mismatch_descriptionZmatcherr	r	r
r
s


�z
AllOf.matchescCs|�||�dSr)r
)rrrr	r	r
rszAllOf.describe_mismatchcCs|�ddd|j�dS)N�(z and �))Zappend_listr)rZdescriptionr	r	r
�describe_toszAllOf.describe_to)N)�__name__�
__module__�__qualname__rr
rrr	r	r	r
r	s

rcGstdd�|D��S)a�Matches if all of the given matchers evaluate to ``True``.

    :param matcher1,...:  A comma-separated list of matchers.

    The matchers are evaluated from left to right using short-circuit
    evaluation, so evaluation stops as soon as a matcher returns ``False``.

    Any argument that is not a matcher is implicitly wrapped in an
    :py:func:`~hamcrest.core.core.isequal.equal_to` matcher to check for
    equality.

    cSsg|]}t|��qSr	r)�.0rr	r	r
�
<listcomp>,szall_of.<locals>.<listcomp>)r)�itemsr	r	r
�all_ofs
rN)	Zhamcrest.core.base_matcherrZ"hamcrest.core.helpers.wrap_matcherr�
__author__Z
__copyright__Z__license__rrr	r	r	r
�<module>s