o
    mic                     @   s   d Z ddlmZ ddlmZ dZedddifgdd	 eeD d
dd	 eeeD dZeeZ	dZ
dZedkrae Zeddd  eddd  eddd  eddd  dS dS )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       | ]	}t ||fV  qd S Nstr.0i r   `/home/kim/smarthome/.venv/lib/python3.10/site-packages/jsonschema/benchmarks/useless_keywords.py	<genexpr>       r   )typeintegerc                 c   r   r   r	   r   r   r   r   r      r   )minimum%        __main__zbeginning of schemac                   C   
   t dS )Nr   	validatorZis_validr   r   r   r   <lambda>      
 r   zmiddle of schemac                   C   r   )NZfoor   r   r   r   r   r      r   zend of schemac                   C   r   )Nr   r   r   r   r   r   r      r   validc                   C   r   )Nr   r   r   r   r   r   r       r   N)__doc__Zpyperfr   Z
jsonschemar   ZNUM_USELESSdictrangeZschemar   r   invalid__name__runnerZ
bench_funcr   r   r   r   <module>   s4    
	