o
    h2                     @   s   d dl mZ dd ZdS )   )ReceiveBufferc                  C   sf  t  } | rJ t| dksJ t| dksJ | d7 } | sJ t| dks'J t| dks/J |   t| dks;J | ddksDJ | sHJ t| dksPJ t| dksXJ |   t| dksdJ | d	dksmJ t| dksuJ | d	d u s~J | rJ | d
7 } | ddksJ t| dksJ | dd u sJ t| dksJ | d7 } | ddksJ t| dksJ | d7 } | dd u sJ | d7 } | ddksJ t| dksJ | d7 } |  }|g dksJ t| dksJ |  d u sJ | d7 } |  d u sJ | ddksJ | rJ | d7 } |  g ks(J t| dks1J d S )N           123   r   s   12      3
   s   12345a6789aa   as   12345as   6789aas   aaas   a12s   6789aaas   345s
   6789aaa123s   123456789aaas   
a: b
foo:bar

trailing)r   s   a: bs   foo:bars   trailings   
d   s   trailing
s
   
trailing)r   lenbytescompressZmaybe_extract_at_mostZmaybe_extract_until_nextZmaybe_extract_lines)blines r   d/var/www/html/magazine_api/magazine_env/lib/python3.10/site-packages/h11/tests/test_receivebuffer.pytest_receivebuffer   sZ   
r   N)Z_receivebufferr   r   r   r   r   r   <module>   s    