opt
/
cloudlinux
/
venv
/
lib
/
python3.11
/
site-packages
/
gitdb
/
test
/
__pycache__
➕ New
📤 Upload
✎ Editing:
test_example.cpython-311.pyc
← Back
� � hL � �^ � d Z ddlZddlmZ ddlmZ ddlmZ ddlm Z G d� de� � Z dS ) z:Module with examples from the tutorial section of the docs� N)�TestBase)�IStream)� LooseObjectDB)�BytesIOc � � e Zd Zd� ZdS )�TestExamplesc �� � t t j � | j d� � � � }|� � � D ]�}|� |� � }|� |� � }|d d� |d d� k sJ �t |� � � � � |j k sJ �|� |j � � sJ ��� ~~n# t $ r Y nw xY wd}t dt |� � t |� � � � }|j �J �|� |� � t |j � � dk sJ �|� |j � � sJ �d S )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 �h/builddir/build/BUILD/cloudlinux-venv-1.0.8/venv/lib/python3.11/site-packages/gitdb/test/test_example.py� test_basezTestExamples.test_base sh � ��B�G�L�L��)9�9�E�E�F�F���L�L�N�N� 0� 0�D��H�H�T�N�N�E��j�j��&�&�G���!��9������+�+�+�+��w�|�|�~�~�&�&�'�,�6�6�6�6��>�>�%�,�/�/�/�/�/�/� ����� � � � ��D� ���� ���&�#�d�)�)�W�T�]�]�;�;�� �~�%�%�%�� � �'�����7�>�"�"�b�(�(�(�(��~�~�g�n�-�-�-�-�-�-�-s �C � C%�$C%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)
💾 Save Changes
Cancel
📤 Upload File
×
Select File
Upload
Cancel
➕ Create New
×
Type
📄 File
📁 Folder
Name
Create
Cancel
✎ Rename Item
×
Current Name
New Name
Rename
Cancel
🔐 Change Permissions
×
Target File
Permission (e.g., 0755, 0644)
0755
0644
0777
Apply
Cancel