관리-도구
편집 파일: test_tutorial.cpython-311.pyc
� �܋ff � �. � d dl mZ G d� de� � ZdS )� )�TestBasec � � e Zd Zd� ZdS )�TestTutorialc � � dd l }|� � � }|� � � dk sJ �|� � � dk sJ �dd l}|j j � dd� � 5 }|� |j � � }|� � � sJ �|� � � rJ �|� � � � � � sJ �|� � � sJ �|� � � d |� � � dd� |� � � |� � � dz |� � � |� � � k sJ �|� d� � sJ �|� |j d� � � � � rJ �|� d� � � � � sJ �|� � � |� � � rJ �|� |� |j � � � � }|� � � � � � sJ �|d |d |dd � |� � � |� � � � � � rJ �|� d� � � sJ � d d d � � d S # 1 swxY w Y d S ) N� i � � test_filer � �d ���i����)�offset)�smmap�SlidingWindowMapManager�num_file_handles�mapped_memory_size�smmap.test.lib�test�lib�FileCreator�make_cursor�path� is_associated�is_valid� use_region�size�buffer� ofs_begin�ofs_end�includes_ofs�unuse_region�SlidingWindowMapBuffer�cursor� end_access�begin_access)�selfr �mman�fc�c�bufs �i/builddir/build/BUILD/cloudlinux-venv-1.0.6/venv/lib/python3.11/site-packages/smmap/test/test_tutorial.py�test_examplezTestTutorial.test_example s � � ���� �,�,�.�.�� �$�$�&�&�!�+�+�+�+��&�&�(�(�A�-�-�-�-� ���� �Z�^� '� '��� E� E� 4 /��� � ���)�)�A� �?�?�$�$�$�$�$��z�z�|�|�#�#�#� �<�<�>�>�*�*�,�,�,�,�,� �6�6�8�8�O�O�8� �H�H�J�J�q�M�M� �H�H�J�J�q��t��� �H�H�J�J�q�v�v�x�x�!�|�$�$� �;�;�=�=�1�9�9�;�;�.�.�.�.��>�>�#�&�&�&�&�&� �|�|�B�G�S�1�1�:�:�<�<�<�<�<��<�<��$�$�-�-�/�/�/�/�/� �N�N�����z�z�|�|�#�#�#� �.�.�t�/?�/?���/H�/H�I�I�C� �:�:�<�<�(�(�*�*�*�*�*���F�F���G�G�����I�I� �N�N�����z�z�|�|�,�,�.�.�.�.�.��#�#�2�#�.�.�.�.�.�.�i4 /� 4 /� 4 /� 4 /� 4 /� 4 /� 4 /� 4 /� 4 /� 4 /� 4 /� 4 /���� 4 /� 4 /� 4 /� 4 /� 4 /� 4 /s �1I2K1�1K5�8K5N)�__name__� __module__�__qualname__r* � � r) r r s( � � � � � �E/� E/� E/� E/� E/r/ r N)r r r r. r/ r) �<module>r0 sU �� � � � � � �G/� G/� G/� G/� G/�8� G/� G/� G/� G/� G/r/