
    gF                     V    d Z ddlZddlmZ ddlmZ ddlmZ ddlm	Z	  G d de      Z
y)	z:Module with examples from the tutorial section of the docs    N)TestBase)IStream)LooseObjectDB)BytesIOc                       e Zd Zd Zy)TestExamplesc                    t        t        j                  j                  | j                  d            }|j                         D ]v  }|j                  |      }|j                  |      }|d d |d d k(  sJ t        |j                               |j                  k(  sJ |j                  |j                        rvJ  	 ~~d}t        dt        |      t        |            }|j                  J |j!                  |       t        |j                        dk(  sJ |j                  |j                        sJ y # t        $ r Y w xY w)Nobjects   s   my datablob   )r   ospathjoingitrepopathsha_iterinfostreamlenreadsize
has_objectbinshaUnboundLocalErrorr   r   store)selfldbsha1oinfoostreamdataistreams          L/var/www/openai/venv/lib/python3.12/site-packages/gitdb/test/test_example.py	test_basezTestExamples.test_base   s    BGGLL)9)99EFLLNDHHTNEjj&G!9+++w||~&',,666>>%,,/// #	
 &#d)WT]; ~~%%%		'7>>"b(((~~gnn--- ! 		s   >D8 8	EEN)__name__
__module____qualname__r$        r#   r   r      s    .r)   r   )__doc__r   gitdb.test.libr   gitdbr   gitdb.dbr   ior   r   r(   r)   r#   <module>r/      s&   
 A 	 #  " .8 .r)   