__  __    __   __  _____      _            _          _____ _          _ _ 
 |  \/  |   \ \ / / |  __ \    (_)          | |        / ____| |        | | |
 | \  / |_ __\ V /  | |__) | __ ___   ____ _| |_ ___  | (___ | |__   ___| | |
 | |\/| | '__|> <   |  ___/ '__| \ \ / / _` | __/ _ \  \___ \| '_ \ / _ \ | |
 | |  | | |_ / . \  | |   | |  | |\ V / (_| | ||  __/  ____) | | | |  __/ | |
 |_|  |_|_(_)_/ \_\ |_|   |_|  |_| \_/ \__,_|\__\___| |_____/|_| |_|\___V 2.1
 if you need WebShell for Seo everyday contact me on Telegram
 Telegram Address : @jackleet
        
        
For_More_Tools: Telegram: @jackleet | Bulk Smtp support mail sender | Business Mail Collector | Mail Bouncer All Mail | Bulk Office Mail Validator | Html Letter private



Upload:

Command:

aptanhua@216.73.216.200: ~ $
3

���h�*�@spdZdZyddlZWnek
r0ddlZYnXddlmZddlmZGdd�dej	�Z
edkrlej�dS)	z.Test for google.protobuf.internal.wire_format.z#robinson@google.com (Will Robinson)�N)�message)�wire_formatc@s<eZdZdd�Zdd�Zdd�Zdd�Zd	d
�Zdd�Zd
S)�WireFormatTestcCsRd}d}|j|d>|Btj||��tj}|jtj||d�|jtj||d�dS)Ni�
�������)�assertEqualr�PackTag�assertRaisesr�EncodeError)�self�field_numberZtag_typer�r�&/usr/lib/python3.6/wire_format_test.py�testPackTag/szWireFormatTest.testPackTagcCs�xLd	D]D}x>td�D]2}tjtj||��\}}|j||�|j||�qWqW|jttjd�|jttjd�|jttjd�|jttjt��dS)
Nr����r�abcg)rrrrr)�rangerZ	UnpackTagrr
r�	TypeError�object)rZexpected_field_numberZexpected_wire_typerZ	wire_typerrr�
testUnpackTag:s
zWireFormatTest.testUnpackTagcCs�tj}|jd|d��|jd|d��|jd|d��|jd|d��|jd|d��|jd|d��|jd|d��|jd
|d��|jd|d��|jt|d�|jt|d�|jt|d�|jt|t��dS)Nrrrr�l��i���l��ll����l����l����l�abcdgr	���i�l����)rZZigZagEncoder
rrr)r�Zrrr�testZigZagEncodeHszWireFormatTest.testZigZagEncodecCs�tj}|jd|d��|jd|d��|jd|d��|jd|d��|jd|d��|jd|d��|jd|d	��|jd
|d��|jd|d
��|jt|d�|jt|d�|jt|d�|jt|t��dS)Nrrrrri���l��ll��l����l����ll����rgr	ri�l����)rZZigZagDecoder
rrr)rrrrr�testZigZagDecodeYszWireFormatTest.testZigZagDecodec
CsDx>d
D]6\}}||}|||�}|j||d|||||f�qWdS)Nrrrr��rzFbyte_size_fn: %s, field_number: %d, value: %r
Expected: %d, Actual: %d�rr�rr�r"r�r#r)r$r%r&r')r
)r�byte_size_fn�valueZexpected_value_sizerZ	tag_bytesZ
expected_sizeZactual_sizerrr�NumericByteSizeTestHelperjs
z(WireFormatTest.NumericByteSizeTestHelperc6Cs�tjddgtjddgtjddgtjddgtjddgtjddgtjddgtjddgtjddgtjddgtjddgtjtjdgtjddgtjddgtjddgtjtjdgtjddgtjddgtjddgtjddgtjddgtjd dgtjd	dgtjddgtjd!dgtjddgtjd"dgtjddgtjd#dgtjd	dgtj	dd
gtj	tjd
gtj
ddgtj
tjdgtjdd
gtjtjd
gtjtj
d
gtjddgtjtjdgtjtjdgtjdd
gtjd
d
gtjd$d
gtjddgtjd
dgtjd%dgtjddgtjddgtjddgtjddgtjddgtjtjdgg4}x|D]}|j|��q$WxPtjtjfD]@}|jd|dd��|jd|dd��|jd|ddd���qFW|jdtjddjd���Gdd�dt�}d}||d�}|jd|tjd|��|jd
|tjd|��|jd|jtjd|��|jd|jtjd|��d|_|jd
|jtjd|��d|_|j|jdtjd|��d|_|j|jdtjd|��|j|jdtjd|��|jt j!tjddd>�dS)&Nrr��r�
��?�@r�gge��AFTrrr��asТестzutf-8c@seZdZdd�Zdd�ZdS)z9WireFormatTest.testByteSizeFunctions.<locals>.MockMessagecSs
||_dS)N)�	byte_size)rr4rrr�__init__�szBWireFormatTest.testByteSizeFunctions.<locals>.MockMessage.__init__cSs|jS)N)r4)rrrr�ByteSize�szBWireFormatTest.testByteSizeFunctions.<locals>.MockMessage.ByteSizeN)�__name__�
__module__�__qualname__r5r6rrrr�MockMessage�sr:)r4r�r	r	r	i����i����r	i����i����ge��ge��)"rZ
Int32ByteSizeZ
Int64ByteSizeZUInt32ByteSizeZ
UINT32_MAXZUInt64ByteSizeZ
UINT64_MAXZSInt32ByteSizeZSInt64ByteSizeZFixed32ByteSizeZFixed64ByteSizeZSFixed32ByteSizeZ	INT32_MINZ	INT32_MAXZSFixed64ByteSizeZ	INT64_MINZ	INT64_MAXZ
FloatByteSizeZDoubleByteSizeZBoolByteSizeZEnumByteSizer*ZStringByteSizeZ
BytesByteSizer
�decoderZ
GroupByteSizer4ZMessageByteSizeZMessageSetItemByteSizerrr
)rZNUMERIC_ARGS�argsr(r:Zmessage_byte_sizeZmock_messagerrr�testByteSizeFunctionsts�















































z$WireFormatTest.testByteSizeFunctionsN)	r7r8r9rrr r!r*r>rrrrr-s
r�__main__)
�__doc__�
__author__Z	unittest2Zunittest�ImportErrorZgoogle.protobufrZgoogle.protobuf.internalrZTestCaserr7�mainrrrr�<module> sS

Filemanager

Name Type Size Permission Actions
__init__.cpython-36.opt-1.pyc File 113 B 0644
__init__.cpython-36.pyc File 113 B 0644
_parameterized.cpython-36.opt-1.pyc File 13.17 KB 0644
_parameterized.cpython-36.pyc File 13.54 KB 0644
any_test_pb2.cpython-36.opt-1.pyc File 3.56 KB 0644
any_test_pb2.cpython-36.pyc File 3.56 KB 0644
api_implementation.cpython-36.opt-1.pyc File 2.48 KB 0644
api_implementation.cpython-36.pyc File 2.48 KB 0644
containers.cpython-36.opt-1.pyc File 19.77 KB 0644
containers.cpython-36.pyc File 19.77 KB 0644
decoder.cpython-36.opt-1.pyc File 20.5 KB 0644
decoder.cpython-36.pyc File 20.58 KB 0644
descriptor_database_test.cpython-36.opt-1.pyc File 2.09 KB 0644
descriptor_database_test.cpython-36.pyc File 2.09 KB 0644
descriptor_pool_test.cpython-36.opt-1.pyc File 28.47 KB 0644
descriptor_pool_test.cpython-36.pyc File 28.47 KB 0644
descriptor_pool_test1_pb2.cpython-36.opt-1.pyc File 8.48 KB 0644
descriptor_pool_test1_pb2.cpython-36.pyc File 8.48 KB 0644
descriptor_pool_test2_pb2.cpython-36.opt-1.pyc File 5.95 KB 0644
descriptor_pool_test2_pb2.cpython-36.pyc File 5.95 KB 0644
descriptor_test.cpython-36.opt-1.pyc File 29.15 KB 0644
descriptor_test.cpython-36.pyc File 29.15 KB 0644
encoder.cpython-36.opt-1.pyc File 23.43 KB 0644
encoder.cpython-36.pyc File 23.57 KB 0644
enum_type_wrapper.cpython-36.opt-1.pyc File 2.65 KB 0644
enum_type_wrapper.cpython-36.pyc File 2.65 KB 0644
factory_test1_pb2.cpython-36.opt-1.pyc File 4.26 KB 0644
factory_test1_pb2.cpython-36.pyc File 4.26 KB 0644
factory_test2_pb2.cpython-36.opt-1.pyc File 10.6 KB 0644
factory_test2_pb2.cpython-36.pyc File 10.6 KB 0644
file_options_test_pb2.cpython-36.opt-1.pyc File 2.29 KB 0644
file_options_test_pb2.cpython-36.pyc File 2.29 KB 0644
generator_test.cpython-36.opt-1.pyc File 10.52 KB 0644
generator_test.cpython-36.pyc File 10.52 KB 0644
json_format_test.cpython-36.opt-1.pyc File 28.12 KB 0644
json_format_test.cpython-36.pyc File 28.12 KB 0644
message_factory_test.cpython-36.opt-1.pyc File 5.34 KB 0644
message_factory_test.cpython-36.pyc File 5.34 KB 0644
message_listener.cpython-36.opt-1.pyc File 2.23 KB 0644
message_listener.cpython-36.pyc File 2.23 KB 0644
message_set_extensions_pb2.cpython-36.opt-1.pyc File 4.06 KB 0644
message_set_extensions_pb2.cpython-36.pyc File 4.06 KB 0644
message_test.cpython-36.opt-1.pyc File 58.58 KB 0644
message_test.cpython-36.pyc File 58.69 KB 0644
missing_enum_values_pb2.cpython-36.opt-1.pyc File 4.61 KB 0644
missing_enum_values_pb2.cpython-36.pyc File 4.61 KB 0644
more_extensions_dynamic_pb2.cpython-36.opt-1.pyc File 3.09 KB 0644
more_extensions_dynamic_pb2.cpython-36.pyc File 3.09 KB 0644
more_extensions_pb2.cpython-36.opt-1.pyc File 3.81 KB 0644
more_extensions_pb2.cpython-36.pyc File 3.81 KB 0644
more_messages_pb2.cpython-36.opt-1.pyc File 2.7 KB 0644
more_messages_pb2.cpython-36.pyc File 2.7 KB 0644
packed_field_test_pb2.cpython-36.opt-1.pyc File 7.8 KB 0644
packed_field_test_pb2.cpython-36.pyc File 7.8 KB 0644
proto_builder_test.cpython-36.opt-1.pyc File 2.26 KB 0644
proto_builder_test.cpython-36.pyc File 2.26 KB 0644
python_message.cpython-36.opt-1.pyc File 41.32 KB 0644
python_message.cpython-36.pyc File 41.41 KB 0644
reflection_test.cpython-36.opt-1.pyc File 78.49 KB 0644
reflection_test.cpython-36.pyc File 78.49 KB 0644
service_reflection_test.cpython-36.opt-1.pyc File 4.06 KB 0644
service_reflection_test.cpython-36.pyc File 4.06 KB 0644
symbol_database_test.cpython-36.opt-1.pyc File 3.65 KB 0644
symbol_database_test.cpython-36.pyc File 3.65 KB 0644
test_bad_identifiers_pb2.cpython-36.opt-1.pyc File 3.47 KB 0644
test_bad_identifiers_pb2.cpython-36.pyc File 3.47 KB 0644
test_util.cpython-36.opt-1.pyc File 24.73 KB 0644
test_util.cpython-36.pyc File 24.77 KB 0644
testing_refleaks.cpython-36.opt-1.pyc File 2.95 KB 0644
testing_refleaks.cpython-36.pyc File 2.95 KB 0644
text_encoding_test.cpython-36.opt-1.pyc File 1.33 KB 0644
text_encoding_test.cpython-36.pyc File 1.33 KB 0644
text_format_test.cpython-36.opt-1.pyc File 46.88 KB 0644
text_format_test.cpython-36.pyc File 46.88 KB 0644
type_checkers.cpython-36.opt-1.pyc File 8.94 KB 0644
type_checkers.cpython-36.pyc File 8.94 KB 0644
unknown_fields_test.cpython-36.opt-1.pyc File 8.94 KB 0644
unknown_fields_test.cpython-36.pyc File 8.94 KB 0644
well_known_types.cpython-36.opt-1.pyc File 25.43 KB 0644
well_known_types.cpython-36.pyc File 25.43 KB 0644
well_known_types_test.cpython-36.opt-1.pyc File 20.19 KB 0644
well_known_types_test.cpython-36.pyc File 20.19 KB 0644
wire_format.cpython-36.opt-1.pyc File 6.27 KB 0644
wire_format.cpython-36.pyc File 6.27 KB 0644
wire_format_test.cpython-36.opt-1.pyc File 5.43 KB 0644
wire_format_test.cpython-36.pyc File 5.43 KB 0644