o
    \hZ                     @   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rUddlZe  dS 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_nanallow_infinityc                 C   s   t t  | S )N)r   dictionariestext)inner r	   a/home/air/segue/gemini/backup/venv/lib/python3.10/site-packages/jsonschema/tests/fuzz_validate.py<lambda>   s    r   )baseextendobj1obj2c                 C   sD   z
t j| |d W d S  t jjy   Y d S  t jjy!   Y d S w )N)instanceschema)
jsonschemavalidate
exceptionsValidationError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)enable_python_coverage)	atherisinstrument_allSetupsysargvr   
hypothesisfuzz_one_inputFuzzr	   r	   r	   r
   main&   s   r"   __main__)__doc__r   r   r   r   r   one_ofbooleansintegersfloatsr   PRIM	recursiver   DICTr   r"   __name__r   r	   r	   r	   r
   <module>   s0    
	
	

