a
    �Ï?eZ  ã                   @   sª   d Z ddlZddlmZmZ ddlZe e ¡ e ¡ ej	ddd�e 
¡ ¡Zeje e ¡ e e 
¡ e¡¡dd„ d�Zeeed	�d
d„ ƒZdd„ Zedkr¦ddlZeƒ  dS )z‹
Fuzzing setup for OSS-Fuzz.

See https://github.com/google/oss-fuzz/tree/master/projects/jsonschema for the
other half of the setup here.
é    N)ÚgivenÚ
strategiesF)Ú	allow_nanZallow_infinityc                 C   s   t  t  ¡ | ¡S )N)r   ÚdictionariesÚtext)Úinner© r   úa/home/yuhw/wc/wire-cell-python/wcpy/lib/python3.9/site-packages/jsonschema/tests/fuzz_validate.pyÚ<lambda>   ó    r
   )ÚbaseÚextend©Zobj1Úobj2c                 C   sB   zt j| |d� W n* t jjy(   Y n t jjy<   Y n0 d S )N)ÚinstanceZschema)Ú
jsonschemaÚvalidateÚ
exceptionsZValidationErrorZSchemaErrorr   r   r   r	   Útest_schemas   s    r   c                   C   s*   t  ¡  t jtjtjjdd� t  ¡  d S )NT)Zenable_python_coverage)	ÚatherisZinstrument_allÚSetupÚsysÚargvr   Ú
hypothesisZfuzz_one_inputZFuzzr   r   r   r	   Úmain&   s    ýr   Ú__main__)Ú__doc__r   r   r   r   r   Zone_ofZbooleansZintegersZfloatsr   ZPRIMÚ	recursiver   ÚDICTr   r   Ú__name__r   r   r   r   r	   Ú<module>   s,   üþû	

	
