File: //var/opt/nydus/ops/jsonschema/benchmarks/__pycache__/useless_keywords.cpython-39.pyc
a
�,�hc � @ s� d Z ddlmZ ddlmZ dZedddifgdd � ee�D ��d
�dd � eee�D ��d��Zee�Z d
Z
dZedkr�e� Z
e
�ddd� � e
�ddd� � e
�ddd� � e
�ddd� � dS )z|
A benchmark for validation of schemas containing lots of useless keywords.
Checks we filter them out once, ahead of time.
� )�Runner)�Draft202012Validatori�� �not�const�* c c s | ]}t |�|fV qd S �N��str��.0�i� r
�W/opt/nydus/tmp/pip-target-wkfpz8uv/lib/python/jsonschema/benchmarks/useless_keywords.py� <genexpr> � r )�type�integerc c s | ]}t |�|fV qd S r r r
r
r
r r r )Zminimum�% � � �__main__zbeginning of schemac C s
t �d�S )Nr �� validatorZis_validr
r
r
r �<lambda> r r zmiddle of schemac C s
t �d�S )NZfoor r
r
r
r r r z
end of schemac C s
t �d�S )Nr r r
r
r
r r r �validc C s
t �d�S )Nr r r
r
r
r r r N)�__doc__Zpyperfr Z
jsonschemar ZNUM_USELESS�dict�rangeZschemar r �invalid�__name__�runnerZ
bench_funcr
r
r
r �<module> s0
������