__  __    __   __  _____      _            _          _____ _          _ _ 
 |  \/  |   \ \ / / |  __ \    (_)          | |        / ____| |        | | |
 | \  / |_ __\ 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���
@s�dZdZddlZddlZddlZddlZyddlZWnek
rPddlZYnXddl	m
Z
ddlmZddlm
Z
ddlmZddlmZdd	lmZdd
l	mZddl	mZddl	mZddl	mZdd
lmZddlmZGdd�dej�ZGdd�dej�Ze
jee�Gdd�de��ZGdd�de�ZGdd�de�ZGdd�dej�ZGdd�dej�Ze
jee�Gdd�de��Z e!dk�r�ej"�dS) z%Test for google.protobuf.text_format.z kenton@google.com (Kenton Varda)�N)�_parameterized)�any_test_pb2)�map_unittest_pb2)�unittest_mset_pb2)�unittest_pb2)�unittest_proto3_arena_pb2)�api_implementation)�message_set_extensions_pb2)�	test_util)�descriptor_pool)�text_formatc@seZdZdd�ZdS)�SimpleTextFormatTestscCs$xtjD]}|jdt|��qWdS)N�)rZ_QUOTES�assertEqual�len)�selfZquote�r�&/usr/lib/python3.6/text_format_test.py�testQuoteMarksAreSingleCharsFsz2SimpleTextFormatTests.testQuoteMarksAreSingleCharsN)�__name__�
__module__�__qualname__rrrrrr
@sr
c@s,eZdZdd�Zdd�Zdd�Zdd�Zd	S)
�TextFormatBasec	Cs4tj|�� }ttkr|j�Sdd�|D�SQRXdS)NcSsg|]}|jd��qS)zutf-8)�decode)�.0Zgolden_linerrr�
<listcomp>Qsz-TextFormatBase.ReadGolden.<locals>.<listcomp>)r
Z
GoldenFile�str�bytes�	readlines)r�golden_filename�frrr�
ReadGoldenNszTextFormatBase.ReadGoldencCs |j|�}|j|dj|��dS)N�)r!ZassertMultiLineEqual�join)r�textrZgolden_linesrrr�CompareToGoldenFileSs
z"TextFormatBase.CompareToGoldenFilecCs|j||�dS)N)r)rr$�golden_textrrr�CompareToGoldenTextWsz"TextFormatBase.CompareToGoldenTextcCs>|jdd�jdd�jdd�jdd�}tjdtj�jd|�}|S)Nze+0ze+ze-0ze-z\.0$r")�replace�re�compile�	MULTILINE�sub)rr$rrr�RemoveRedundantZerosZsz#TextFormatBase.RemoveRedundantZerosN)rrrr!r%r'r-rrrrrLsrc@s�eZdZdd�Zdd�Zdd�Zdd�Zd	d
�Zdd�Zd
d�Z	dd�Z
dd�Zdd�Zdd�Z
dd�Zdd�Zdd�Zdd�Zdd �Zd!d"�Zd#d$�Zd%d&�Zd'd(�Zd)d*�Zd+d,�Zd-d.�Zd/d0�Zd1d2�Zd3d4�Zd5d6�Zd7d8�Zd9d:�Zd;d<�Z d=S)>�TextFormatTestcCsx|j�}|jjd	�|jjd�|jjd�|jjd�|jjd�|jjd�|jjd�|j|jtj	|��d�dS)
Nll����gw��/�^@g�t�QFքDg��‚�6<z

	\'"uüꜟz�repeated_int64: -9223372036854775808
repeated_uint64: 18446744073709551615
repeated_double: 123.456
repeated_double: 1.23e+22
repeated_double: 1.23e-18
repeated_string: "\000\001\007\010\014\n\r\t\013\\\'\""
repeated_string: "\303\274\352\234\237"
l����)
�TestAllTypes�repeated_int64�append�repeated_uint64�repeated_double�repeated_stringr'r-r�MessageToString)r�message_module�messagerrr�testPrintExotichszTextFormatTest.testPrintExoticcCs@Gdd�dtj�}|j�}|jj|d��|jtj|�d�dS)Nc@seZdZdS)zATextFormatTest.testPrintExoticUnicodeSubclass.<locals>.UnicodeSubN)rrrrrrr�
UnicodeSub~sr9uüꜟz(repeated_string: "\303\274\352\234\237"
)�sixZ	text_typer/r4r1r'rr5)rr6r9r7rrr�testPrintExoticUnicodeSubclass|sz-TextFormatTest.testPrintExoticUnicodeSubclasscCs2|j�}|jj�}d|_|jtj|dd�d�dS)N�*T)�as_one_linez"repeated_nested_message { bb: 42 })r/�repeated_nested_message�add�bbr'rr5)rr6r7�msgrrr�testPrintNestedMessageAsOneLine�s
z.TextFormatTest.testPrintNestedMessageAsOneLinecCs^|j�}|jjd�|jjd�|jjd�|jjd�|jjd�|jtj|dd�d�dS)Nr�ZGoogleZZurichT)r=zirepeated_int32: 1 repeated_int32: 1 repeated_int32: 3 repeated_string: "Google" repeated_string: "Zurich")r/Zrepeated_int32r1r4r'rr5)rr6r7rrr� testPrintRepeatedFieldsAsOneLine�sz/TextFormatTest.testPrintRepeatedFieldsAsOneLinecCs(|j�}d|_|jtj|dd�d�dS)Nz
a
new
lineT)r=zoptional_string: "a\nnew\nline")r/�optional_stringr'rr5)rr6r7rrr�'testPrintNestedNewLineInStringAsOneLine�s
z6TextFormatTest.testPrintNestedNewLineInStringAsOneLinecCs||j�}|jjd�|jjd�|jjd�|jjd�|jjd�|jjd�|jjd�|j|jtj	|dd	��d
�dS)Nll����gw��/�^@g�t�QFքDg��‚�6<z

	\'"uüꜟT)r=z�repeated_int64: -9223372036854775808 repeated_uint64: 18446744073709551615 repeated_double: 123.456 repeated_double: 1.23e+22 repeated_double: 1.23e-18 repeated_string: "\000\001\007\010\014\n\r\t\013\\\'\"" repeated_string: "\303\274\352\234\237"l����)
r/r0r1r2r3r4r'r-rr5)rr6r7rrr�testPrintExoticAsOneLine�s
z'TextFormatTest.testPrintExoticAsOneLinecCs�|j�}|jjd�|jjd�|jjd�|jjd�|jjd�|jjd�|jjd�tj|dd	d
�}|j�}tj||�}|j	||�|j
||�tj|ddd
�}|j�}tj||�}|j	||�|j
||d||f�dS)
Nll����gw��/�^@g�t�QFքDg��‚�6<z

	\'"uüꜟTF)r=�as_utf8z	
%s != %sl����)r/r0r1r2r3r4rr5�Parse�assertIsr)rr6r7Z	wire_text�parsed_message�rrrr�testRoundTripExoticAsOneLine�s.z+TextFormatTest.testRoundTripExoticAsOneLinecCs\|j�}|jjd�tj|dd�}|j|d�|j�}tj||�|j||d||f�dS)NuüꜟT)rHurepeated_string: "üꜟ"
z	
%s != %s)r/r4r1rr5r'rIr)rr6r7r$rKrrr�testPrintRawUtf8String�sz%TextFormatTest.testPrintRawUtf8StringcCs�|j�}d|j_d|j_|jjjd�|jjjd�ddddg}tj|d	d
�}|j	|j
|�dj|��tj|dd	d
�}|j	|j
|�dj|��dS)Ng�?g�/_�e��>i
g⹭�?zoptional_float: 1.25z%optional_double: -3.45678901234568e-6zrepeated_float: -5642zrepeated_double: 7.89e-5z.15g)�float_formatz&payload {{
  {0}
  {1}
  {2}
  {3}
}}
T)r=rOzpayload {{ {0} {1} {2} {3} }}g�/_�e�̾i��)ZNestedTestAllTypesZpayload�optional_floatZoptional_doubleZrepeated_floatr1r3rr5r'r-�format)rr6r7Zformatted_fieldsZtext_messagerrr�testPrintFloatFormat�s&z#TextFormatTest.testPrintFloatFormatcCs"|j�}d|_|jdt|��dS)N�{zc: 123
)ZForeignMessage�crr)rr6r7rrr�testMessageToString�sz"TextFormatTest.testMessageToStringcCs�|j�}|jjd}|j}tjd�}tj|||�|jd|j��|j	�tjd�}tj
|�}|j||�|jd|j��|j	�dS)NrPFzoptional_float: 0.0
)r/�
DESCRIPTOR�fields_by_namerPr�
TextWriterZ
PrintFieldr�getvalue�close�_Printer)rr6r7�field�value�out�printerrrr�testPrintFields


zTextFormatTest.testPrintFieldcCs�|j�}|jjd}|j}tjd�}tj|||�|jd|j��|j	�tjd�}tj
|�}|j||�|jd|j��|j	�dS)NrPFz0.0)r/rVrWrPrrXZPrintFieldValuerrYrZr[)rr6r7r\r]r^r_rrr�testPrintFieldValues


z"TextFormatTest.testPrintFieldValuecCsT|j�}tj|�tj|�}|j�}tj||�|j||�|tkrPtj||�dS)N)	r/r
�SetAllFieldsrr5rIrr�ExpectAllFieldsSet)rr6r7�
ascii_textrKrrr�testParseAllFields"s

z!TextFormatTest.testParseAllFieldscCs�|j�}tj|�tj|�}|jd�}|j�}tj||�|j||�|tkrZtj	||�|j
�tj||�|j||�|tkr�tj	||�tj
r�|j�}d}tj||�|j|jd�|j
�tj||�|j|jd�dS)Nzutf-8uoptional_string: "café"ucafé)r/r
rbrr5�encoderIrrrc�Clear�Merger:ZPY2rE)rr6r7rdrKZmsg2r$rrr�testParseAndMergeUtf8-s,


z$TextFormatTest.testParseAndMergeUtf8cCs�|j�}d}tj||�|jd|jd�|jd|jd�|jd|jd�|jd|jd�|jd|jd	�|jd
|jd�|jd|jd�|jd|jd	�|jd
|jd�dS)NuUrepeated_int64: -9223372036854775808
repeated_uint64: 18446744073709551615
repeated_double: 123.456
repeated_double: 1.23e+22
repeated_double: 1.23e-18
repeated_string: 
"\000\001\007\010\014\n\r\t\013\\\'\""
repeated_string: "foo" 'corge' "grault"
repeated_string: "\303\274\352\234\237"
repeated_string: "\xc3\xbc"
repeated_string: "ü"
lrl����gw��/�^@g�t�QFքDrg��‚�6<�z

	\'"Zfoocorgegraultuüꜟ�ürCl����)r/rrIrr0r2r3r4)rr6r7r$rrr�testParseExoticHszTextFormatTest.testParseExoticcCsv|j�}d}tj||�|jd|jd�|jd|jd�|jd|jd�|jd|jd�|jd	|jd�dS)
Nzorepeated_int64: 100;
repeated_int64: 200;
repeated_int64: 300,
repeated_string: "one",
repeated_string: "two";
�dr��ri,rj�one�two)r/rrIrr0r4)rr6r7r$rrr�testParseTrailingCommasasz&TextFormatTest.testParseTrailingCommascCsv|j�}d}tj||�|jd|jd�|jd|jd�|jd|jd�|jd|jd�|jd	|jd�dS)
NzRrepeated_int64: [100, 200];
repeated_int64: 300,
repeated_string: ["one", "two"];
rmrrnri,rjrorp)r/rrIrr0r4)rr6r7r$rrr�"testParseRepeatedScalarShortFormatpsz1TextFormatTest.testParseRepeatedScalarShortFormatcCsl|j�}d}tj||�|jd|jdj�|jd|jdj�|jd|jdj�|jd|jd	j�dS)
Nzyrepeated_nested_message: [{bb: 100}, {bb: 200}],
repeated_nested_message: {bb: 300}
repeated_nested_message [{bb: 400}];
rmrrnri,rji�rC)r/rrIrr>r@)rr6r7r$rrr�#testParseRepeatedMessageShortFormat}sz2TextFormatTest.testParseRepeatedMessageShortFormatcCs,|j�}d}tj||�|j|j�|�dS)Nr")r/rrIr)rr6r7r$rrr�testParseEmptyText�sz!TextFormatTest.testParseEmptyTextc
CsX|j�}d}|jtj��}tj||�WdQRX|j|jj�d�|j|jj�d�dS)Nzrepeated_string: "\xc3\xc3"r�)	r/�assertRaisesr�
ParseErrorrIr�	exceptionZGetLineZ	GetColumn)rr6r7r$�errr�testParseInvalidUtf8�sz#TextFormatTest.testParseInvalidUtf8cCs(|j�}d}tj|tjdtj||�dS)N�fooz?1:1 : Message type "\w+.TestAllTypes" has no field named "foo".)r/r:�assertRaisesRegexrrwrI)rr6r7r$rrr�testParseSingleWord�s

z"TextFormatTest.testParseSingleWordcCs(|j�}d}tj|tjdtj||�dS)Nzunknown_field: 8
zI1:1 : Message type "\w+.TestAllTypes" has no field named "unknown_field".)r/r:r|rrwrI)rr6r7r$rrr�testParseUnknownField�s

z$TextFormatTest.testParseUnknownFieldcCs(|j�}d}tj|tjdtj||�dS)Nzoptional_nested_enum: BARRzG1:23 : Enum type "\w+.TestAllTypes.NestedEnum" has no value named BARR.)r/r:r|rrwrI)rr6r7r$rrr�testParseBadEnumValue�s
z$TextFormatTest.testParseBadEnumValuecCs(|j�}d}tj|tjdtj||�dS)Nzoptional_int32: borkz#1:17 : Couldn't parse integer: bork)r/r:r|rrwrI)rr6r7r$rrr�testParseBadIntValue�s

z#TextFormatTest.testParseBadIntValuecCs�|j�}d}tj||�d}|jd|jd�|j|d|d|jd�|j|d|d	|jd
�|j||d||d|jd�|j||d||d	|jd�|j|d
|jd�dS)Narepeated_string: "\xf\x62"
               repeated_string: "\\xf\\x62"
               repeated_string: "\\\xf\\\x62"
               repeated_string: "\\\\xf\\\\x62"
               repeated_string: "\\\\\xf\\\\\x62"
               repeated_string: "\x5cx20"�\zbrZxfZx62r��brjrC�Zx20�)r/rrIrr4)rr6r7r$�SLASHrrr�testParseStringFieldUnescape�sz+TextFormatTest.testParseStringFieldUnescapecCs6|j�}d}tj||�}|j||�|jd|j�dS)Nz%optional_int32: 42 optional_int32: 67�C)r/rrhrJr�optional_int32)rr6r7r$rLrrr�testMergeDuplicateScalars�s
z(TextFormatTest.testMergeDuplicateScalarscCs:|j�}d}tj||�}|j||k�|jd|jj�dS)NzCoptional_nested_message { bb: 1 } optional_nested_message { bb: 2 }rj)r/rrh�
assertTruer�optional_nested_messager@)rr6r7r$rLrrr�&testMergeDuplicateNestedMessageScalars�s
z5TextFormatTest.testMergeDuplicateNestedMessageScalarscCs>|j�}d|_|j�}tjtj|�|�|jd|jd��dS)N��oneof_uint32�oneof_field)r/r�rrIr5r�
WhichOneof)rr6�m�m2rrr�testParseOneof�s
zTextFormatTest.testParseOneofcCs8djddg�}|j�}tj||�|jd|jd��dS)N�
zoneof_uint32: 11zoneof_string: "foo"Zoneof_stringr�)r#r/rrhrr�)rr6�m_stringr�rrr�testMergeMultipleOneof�sz%TextFormatTest.testMergeMultipleOneofc
Cs@djddg�}|j�}|jtjd��tj||�WdQRXdS)Nr�zoneof_uint32: 11zoneof_string: "foo"z is specified along with field )r#r/r|rrwrI)rr6r�r�rrr�testParseMultipleOneof�s
z%TextFormatTest.testParseMultipleOneofN)!rrrr8r;rBrDrFrGrMrNrRrUr`rarerirlrqrrrsrtrzr}r~rr�r�r�r�r�r�r�rrrrr.es<
!
r.c@sLeZdZdd�Zdd�Zdd�Zdd�Zd	d
�Zdd�Zd
d�Z	dd�Z
dS)� OnlyWorksWithProto2RightNowTestscCs2tj�}tj|�|j|jtj|dd��d�dS)NT)�pointy_bracketsz*text_format_unittest_data_pointy_oneof.txt)rr/r
rbr%r-rr5)rr7rrr�testPrintAllFieldsPointy�s

z9OnlyWorksWithProto2RightNowTests.testPrintAllFieldsPointycCsRdj|jd��}tj�}tj||�}|j||�tj�}tj|�|j	||�dS)Nr�z/text_format_unittest_data_oneof_implemented.txt)
r#r!rr/rrIrJr
rbr)rr&rKrLr7rrr�testParseGolden�s
z0OnlyWorksWithProto2RightNowTests.testParseGoldencCs.tj�}tj|�|j|jtj|��d�dS)Nz/text_format_unittest_data_oneof_implemented.txt)rr/r
rbr%r-rr5)rr7rrr�testPrintAllFieldss

z3OnlyWorksWithProto2RightNowTests.testPrintAllFieldscCsbtj�}d|_d|_d|_d|j_d|j_|j|j	t
j|dd��d�|j|j	t
j|��d	�dS)
NZ115�e�orrT)Zuse_index_orderzWmy_string: "115"
my_int: 101
my_float: 111
optional_nested_message {
  oo: 0
  bb: 1
}
zWmy_int: 101
my_string: "115"
my_float: 111
optional_nested_message {
  bb: 1
  oo: 0
}
)rZTestFieldOrderingsZ	my_stringZmy_intZmy_floatr�Zoor@r'r-rr5)rr7rrr�testPrintInIndexOrders
z6OnlyWorksWithProto2RightNowTests.testPrintInIndexOrdercCsL|jd�}tj�}tj||�}|j||�tj�}tj|�|j||�dS)Nz/text_format_unittest_data_oneof_implemented.txt)	r!rr/rZ
MergeLinesrJr
rbr)r�openedrKrLr7rrr�testMergeLinesGoldens

z5OnlyWorksWithProto2RightNowTests.testMergeLinesGoldencCsL|jd�}tj�}tj||�}|j||�tj�}tj|�|j||�dS)Nz/text_format_unittest_data_oneof_implemented.txt)	r!rr/rZ
ParseLinesrJr
rbr)rr�rKrLr7rrr�testParseLinesGolden's

z5OnlyWorksWithProto2RightNowTests.testParseLinesGoldencCs\tj�}d|jd<d|jd<d|jd<d|jd<d|jd<d|jd	_|j	t
j|�d
�dS)Ni�rSrj�"�!�123�abcr�r�aHmap_int32_int32 {
  key: -123
  value: -456
}
map_int64_int64 {
  key: -8589934592
  value: -17179869184
}
map_uint32_uint32 {
  key: 123
  value: 456
}
map_uint64_uint64 {
  key: 8589934592
  value: 17179869184
}
map_string_string {
  key: "abc"
  value: "123"
}
map_int32_foreign_message {
  key: 111
  value {
    c: 5
  }
}
i8���i����ll����ll����ll)r�TestMap�map_int32_int32�map_int64_int64�map_uint32_uint32�map_uint64_uint64�map_string_string�map_int32_foreign_messagerTr'rr5)rr7rrr�testPrintMap1s




z-OnlyWorksWithProto2RightNowTests.testPrintMapcCs|tj�}x tjdd�D]}d|j|<qWx$ttjdd��D]}d|j|<q>Wdjdd�tjD��}|jtj	|�|�dS)N�
�Zdummyrr"css|]}d|fVqdS)z3map_string_string {
  key: "%c"
  value: "dummy"
}
Nr)r�letterrrr�	<genexpr>_szKOnlyWorksWithProto2RightNowTests.testMapOrderEnforcement.<locals>.<genexpr>)
rr��stringZascii_uppercaser��reversedr#r'rr5)rr7r��goldenrrr�testMapOrderEnforcementYs
z8OnlyWorksWithProto2RightNowTests.testMapOrderEnforcementN)rrrr�r�r�r�r�r�r�r�rrrrr��s

(r�c@s�eZdZdd�Zdd�Zdd�Zdd�Zd	d
�Zdd�Zd
d�Z	dd�Z
dd�Zdd�Zdd�Z
dd�Zdd�Zdd�Zdd�Zdd �Zd!d"�Zd#d$�Zd%d&�Zd'd(�Zd)d*�Zd+S),�Proto2TestscCsvtj�}tjj}tjj}d|jj|_d|jj|_|j	t
j|�d�tj
�}tj}d|j|_|j	t
j|�d�dS)N�r{z�message_set {
  [protobuf_unittest.TestMessageSetExtension1] {
    i: 23
  }
  [protobuf_unittest.TestMessageSetExtension2] {
    str: "foo"
  }
}
ZbarzF[google.protobuf.internal.TestMessageSetExtension3] {
  text: "bar"
}
)r�TestMessageSetContainer�TestMessageSetExtension1�message_set_extension�TestMessageSetExtension2�message_set�
Extensions�irr'rr5r	ZTestMessageSetZmessage_set_extension3r$)rr7�ext1�ext2Zextrrr�testPrintMessageSetvs	zProto2Tests.testPrintMessageSetcCsjtjd�}tj�}tjj}tjj}d|jj|_	d|jj|_
tj||dd�|j|j
�d�|j�dS)NFr�r{T)Zuse_field_numberz?1 {
  1545008 {
    15: 23
  }
  1547769 {
    25: "foo"
  }
}
)rrXrr�r�r�r�r�r�r�rZPrintMessager'rYrZ)rr^r7r�r�rrr� testPrintMessageSetByFieldNumber�s
z,Proto2Tests.testPrintMessageSetByFieldNumbercCsNtj�}tjj}tjj}d|jj|_d|jj|_|j	t
j|dd�d�dS)Nr�r{T)r=z�message_set { [protobuf_unittest.TestMessageSetExtension1] { i: 23 } [protobuf_unittest.TestMessageSetExtension2] { str: "foo" } })rr�r�r�r�r�r�r�rr'rr5)rr7r�r�rrr�testPrintMessageSetAsOneLine�sz(Proto2Tests.testPrintMessageSetAsOneLinecCs�tj�}d}tj||�|jd|jd�|jd|jd�tj�}d}tj||�tjj	}tj
j	}|jd|jj|j
�|jd|jj|j�dS)Nz&repeated_uint64: 1
repeated_uint64: 2
rrrjz�message_set {
  [protobuf_unittest.TestMessageSetExtension1] {
    i: 23
  }
  [protobuf_unittest.TestMessageSetExtension2] {
    str: "foo"
  }
}
r�r{)rr/rrIrr2rr�r�r�r�r�r�r�r)rr7r$r�r�rrr�testParseMessageSet�szProto2Tests.testParseMessageSetcCs>tj�}d}tj||tj�d�|jtj|tj�d�|�dS)Nz�value {
  [type.googleapis.com/google.protobuf.internal.TestAny] {
    [google.protobuf.internal.TestAnyExtension1.extension1] {
      i: 10
    }
  }
}
)r)�test_extend_any�TestAnyrrhr�Defaultr'r5)rr7r$rrr�testExtensionInsideAnyMessage�sz)Proto2Tests.testExtensionInsideAnyMessagec	Cs�tj�}d}tj||dd�|jd|jd�|jd|jd�tj�}d}tj||dd�tjj	}tj
j	}|jd|jj|j
�|jd	|jj|j�tj�}d
}tj|tjdtj||�d}tj|tjd
tj||dd�dS)Nz34: 1
repeated_uint64: 2
T)Zallow_field_numberrrrjz?1 {
  1545008 {
    15: 23
  }
  1547769 {
    25: "foo"
  }
}
r�r{z34:1
z>1:1 : Message type "\w+.TestAllTypes" has no field named "34".z1234:1
z@1:1 : Message type "\w+.TestAllTypes" has no field named "1234".)rr/rrIrr2rr�r�r�r�r�r�r�rr:r|rw)rr7r$r�r�rrr�testParseMessageByFieldNumber�s4
z)Proto2Tests.testParseMessageByFieldNumbercCs.tj�}tj|�|j|jtj|��d�dS)Nz(text_format_unittest_extensions_data.txt)r�TestAllExtensionsr
�SetAllExtensionsr%r-rr5)rr7rrr�testPrintAllExtensionss

z"Proto2Tests.testPrintAllExtensionscCs2tj�}tj|�|j|jtj|dd��d�dS)NT)r�z/text_format_unittest_extensions_data_pointy.txt)rr�r
r�r%r-rr5)rr7rrr�testPrintAllExtensionsPointys

z(Proto2Tests.testPrintAllExtensionsPointycCsFdj|jd��}tj�}tj||�tj�}tj|�|j||�dS)Nr�z(text_format_unittest_extensions_data.txt)	r#r!rr�rrIr
r�r)rr&rKr7rrr�testParseGoldenExtensionss
z%Proto2Tests.testParseGoldenExtensionscCs@tj�}tj|�tj|�}tj�}tj||�|j||�dS)N)rr�r
r�rr5rIr)rr7rdrKrrr�testParseAllExtensionss

z"Proto2Tests.testParseAllExtensionsc	CsVtj�}d}tj||dd�d}|jtj|�|�tj�}d}tj|tjdtj||dd�tj�}d}tj|tjdtj||dd�tj�}d	}tj|tjdtj||dd�tj�}d
}tj|tjdtj||dd�tj�}d}tj|tjd
tj||dd�tj�}d}tj||dd�tj	j
}tjj
}|jd|j
j|j�|jd|j
j|j�dS)Nu�message_set {
  [unknown_extension] {
    i: 23
    bin: "à"    [nested_unknown_ext]: {
      i: 23
      x: x
      test: "test_string"
      floaty_float: -0.315
      num: -inf
      multiline_str: "abc"
          "def"
          "xyz."
      [nested_unknown_ext.ext]: <
        i: 23
        i: 24
        pointfloat: .3
        test: "test_string"
        floaty_float: -0.315
        num: -inf
        long_string: "test" "test2" 
      >
    }
  }
  [unknown_extension]: 5
}
T)Zallow_unknown_extensionzmessage_set {
}
z3message_set {
  [unknown_extension] {
    i:
  }
}
zInvalid field value: }zGmessage_set {
  [unknown_extension] {
    str: "malformed string
  }
}
zInvalid field value: "zSmessage_set {
  [unknown_extension] {
    str: "malformed
 multiline
 string
  }
}
z7message_set {
  [malformed_extension] <
    i: -5
  
}
z5:1 : Expected ">".z)message_set {
  unknown_field: true
  
}
zb2:3 : Message type "proto2_wireformat_unittest.TestMessageSet" has no field named "unknown_field".z�message_set {
  [protobuf_unittest.TestMessageSetExtension1] {
    i: 23
  }
  [protobuf_unittest.TestMessageSetExtension2] {
    str: "foo"
  }
}
r�r{)rr�rrIr'r5r:r|rwr�r�r�rr�r�r�r)rr7r$r�Z	malformedr�r�rrr� testParseAllowedUnknownExtension"srz,Proto2Tests.testParseAllowedUnknownExtensionc
CsFtj�}d}|jtj��}tj||�WdQRX|jt|j�d�dS)Nz#optional_nested_message { "bb": 1 }z/1:27 : Expected identifier or number, got "bb".)	rr/rvrrwrIrrrx)rr7r$ryrrr�testParseBadIdentifier�sz"Proto2Tests.testParseBadIdentifiercCsHtj�}d}tj|tjdtj||�tj�}tj|tjdtj||�dS)Nz[unknown_extension]: 8
z31:2 : Extension "unknown_extension" not registered.zM1:2 : Message type "protobuf_unittest.TestAllTypes" does not have extensions.)rr�r:r|rrwrIr/)rr7r$rrr�testParseBadExtension�s

z!Proto2Tests.testParseBadExtensioncCs(tj�}d}tj|tjdtj||�dS)Nzoptional_nested_enum: 100zL1:23 : Enum type "\w+.TestAllTypes.NestedEnum" has no value with number 100.)rr/r:r|rrwrI)rr7r$rrr�testParseNumericUnknownEnum�s
z'Proto2Tests.testParseNumericUnknownEnumcCs0tj�}d}tj||�|jd|jtj�dS)Nza[protobuf_unittest.optional_int32_extension]: 42 [protobuf_unittest.optional_int32_extension]: 67r�)rr�rrhrr�Zoptional_int32_extension)rr7r$rrr�"testMergeDuplicateExtensionScalars�s
z.Proto2Tests.testMergeDuplicateExtensionScalarscCs(tj�}d}tj|tjdtj||�dS)Nza[protobuf_unittest.optional_int32_extension]: 42 [protobuf_unittest.optional_int32_extension]: 67z�1:96 : Message type "protobuf_unittest.TestAllExtensions" should not have multiple "protobuf_unittest.optional_int32_extension" extensions.)rr�r:r|rrwrI)rr7r$rrr�"testParseDuplicateExtensionScalars�s

z.Proto2Tests.testParseDuplicateExtensionScalarscCs(tj�}d}tj|tjdtj||�dS)NzCoptional_nested_message { bb: 1 } optional_nested_message { bb: 2 }zh1:65 : Message type "protobuf_unittest.TestAllTypes.NestedMessage" should not have multiple "bb" fields.)rr/r:r|rrwrI)rr7r$rrr�&testParseDuplicateNestedMessageScalars�s
z2Proto2Tests.testParseDuplicateNestedMessageScalarscCs(tj�}d}tj|tjdtj||�dS)Nz%optional_int32: 42 optional_int32: 67zf1:36 : Message type "protobuf_unittest.TestAllTypes" should not have multiple "optional_int32" fields.)rr/r:r|rrwrI)rr7r$rrr�testParseDuplicateScalars�s
z%Proto2Tests.testParseDuplicateScalarscCsDtj�}d}tj|tjdtj||�d}tj|tjdtj||�dS)NzRepeatedGroup: <z1:16 : Expected ">".zRepeatedGroup: {z1:16 : Expected "}".)rr/r:r|rrwrI)rr7r$rrr�testParseGroupNotClosed�sz#Proto2Tests.testParseGroupNotClosedcCs\tj�}d}tj||�|j|jd��|j�tj�}d}tj||�|j|jd��dS)NzOptionalGroup: {}Z
optionalgroupzOptionalGroup: <>)rr/rrIr�ZHasFieldrg)rr7r$rrr�testParseEmptyGroup�szProto2Tests.testParseEmptyGroupcCs�d}tj�}tj||�|jd|jd�|jd|jd�|jd|jd�|jd|jd�|jd|j	d�|jd	|j
d
j�dS)NaHmap_int32_int32 {
  key: -123
  value: -456
}
map_int64_int64 {
  key: -8589934592
  value: -17179869184
}
map_uint32_uint32 {
  key: 123
  value: 456
}
map_uint64_uint64 {
  key: 8589934592
  value: 17179869184
}
map_string_string {
  key: "abc"
  value: "123"
}
map_int32_foreign_message {
  key: 111
  value {
    c: 5
  }
}
i�rSrjr�r�r�r�r�r�i8���i����ll����ll����ll)rr�rrIrr�r�r�r�r�r�rT)rr$r7rrr�testParseMap�szProto2Tests.testParseMapN)rrrr�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�rrrrr�ts*)
	z
		r�c@s|eZdZdd�Zdd�Zdd�Zdd�Zd	d
�Zdd�Zd
d�Z	dd�Z
dd�Zdd�Zdd�Z
dd�Zdd�Zdd�ZdS)�Proto3TestscCs@tj�}d|_tj�}|jj|�|jtj	|t
j�d�d�dS)Nr�)rz[any_value {
  [type.googleapis.com/protobuf_unittest.OneString] {
    data: "string"
  }
}
)r�	OneString�datarr��	any_value�Packrrr5rr�)r�packed_messager7rrr�testPrintMessageExpandAnys
z%Proto3Tests.testPrintMessageExpandAnycCsRtj�}tj�}d|_|jj�j|�d|_|jj�j|�|jt	j
|�d�dS)N�string0�string1z�repeated_any_value {
  [type.googleapis.com/protobuf_unittest.OneString] {
    data: "string0"
  }
}
repeated_any_value {
  [type.googleapis.com/protobuf_unittest.OneString] {
    data: "string1"
  }
}
)rr�rr�r��repeated_any_valuer?r�rrr5)rr�r7rrr�!testPrintMessageExpandAnyRepeated(sz-Proto3Tests.testPrintMessageExpandAnyRepeatedcCsDtj�}d|_tj�}|jj|�tj�}|j	t
j||d�d�dS)Nr�)rzdany_value {
  type_url: "type.googleapis.com/protobuf_unittest.OneString"
  value: "\n\006string"
}
)rr�r�rr�r�r�r�DescriptorPoolrrr5)rr�r7�
empty_poolrrr�2testPrintMessageExpandAnyDescriptorPoolMissingType<sz>Proto3Tests.testPrintMessageExpandAnyDescriptorPoolMissingTypecCs<tj�}d|_tj�}|jj|�|jtj	|dd�d�dS)Nr�T)r�z[any_value <
  [type.googleapis.com/protobuf_unittest.OneString] <
    data: "string"
  >
>
)
rr�r�rr�r�r�rrr5)rr�r7rrr�'testPrintMessageExpandAnyPointyBracketsIsz3Proto3Tests.testPrintMessageExpandAnyPointyBracketscCs<tj�}d|_tj�}|jj|�|jtj	|dd�d�dS)Nr�T)r=zRany_value { [type.googleapis.com/protobuf_unittest.OneString] { data: "string" } })
rr�r�rr�r�r�rrr5)rr�r7rrr�"testPrintMessageExpandAnyAsOneLineWsz.Proto3Tests.testPrintMessageExpandAnyAsOneLinecCsDtj�}d|_tj�}|jj|�|jtj	|ddt
j�d�d�dS)Nr�T)r=r�rzRany_value < [type.googleapis.com/protobuf_unittest.OneString] < data: "string" > >)rr�r�rr�r�r�rrr5rr�)rr�r7rrr�0testPrintMessageExpandAnyAsOneLinePointyBracketsds
z<Proto3Tests.testPrintMessageExpandAnyAsOneLinePointyBracketscCs>tj�}tj�}d|_tj|�}tj||�|jd|j�dS)Ni�)rr/Zoptional_nested_enumrr5rIr)rr7Zmessage2Ztext_stringrrr�testUnknownEnumsss
zProto3Tests.testUnknownEnumscCsttj�}d}tj||�tj�}|jj|�|jd|j	�|j
�tj||�tj�}|jj|�|jd|j	�dS)Nz[any_value {
  [type.googleapis.com/protobuf_unittest.OneString] {
    data: "string"
  }
}
r�)rr�rrhrr�r��Unpackrr�rgrI)rr7r$r�rrr�testMergeExpandedAny{sz Proto3Tests.testMergeExpandedAnycCs`tj�}d}tj||�tj�}|jdj|�|jd|j	�|jdj|�|jd|j	�dS)Nz�repeated_any_value {
  [type.googleapis.com/protobuf_unittest.OneString] {
    data: "string0"
  }
}
repeated_any_value {
  [type.googleapis.com/protobuf_unittest.OneString] {
    data: "string1"
  }
}
rr�rr�)
rr�rrhrr�r�r�rr�)rr7r$r�rrr�testMergeExpandedAnyRepeated�s
z(Proto3Tests.testMergeExpandedAnyRepeatedcCs>tj�}d}tj||�tj�}|jj|�|jd|j	�dS)Nz[any_value {
  [type.googleapis.com/protobuf_unittest.OneString] <
    data: "string"
  >
}
r�)
rr�rrhrr�r�r�rr�)rr7r$r�rrr�"testMergeExpandedAnyPointyBrackets�sz.Proto3Tests.testMergeExpandedAnyPointyBracketscCs4tj�}d}tj||�tj�}|jd|jj�dS)NzYany_value {
  [type.otherapi.com/protobuf_unittest.OneString] {
    data: "string"
  }
}
z-type.otherapi.com/protobuf_unittest.OneString)	rr�rrhrr�rr�Ztype_url)rr7r$r�rrr�testMergeAlternativeUrl�sz#Proto3Tests.testMergeAlternativeUrlcCsRtj�}d}|jtj��}tj�}tj|||d�WdQRX|jt	|j
�d�dS)Nz[any_value {
  [type.googleapis.com/protobuf_unittest.OneString] {
    data: "string"
  }
}
)rz=Type protobuf_unittest.OneString not found in descriptor pool)rr�rvrrwrr�rhrrrx)rr7r$ryr�rrr�-testMergeExpandedAnyDescriptorPoolMissingType�sz9Proto3Tests.testMergeExpandedAnyDescriptorPoolMissingTypecCs>d}tj�}tj||�tj�}|jj|�|jd|j	�dS)Nzdany_value {
  type_url: "type.googleapis.com/protobuf_unittest.OneString"
  value: "\n\006string"
}
r�)
rr�rrhrr�r�r�rr�)rr$r7r�rrr�testMergeUnexpandedAny�sz"Proto3Tests.testMergeUnexpandedAnyc
CsFtj�}d}|jtj��}tj||�WdQRX|jt|j�d�dS)NzUany_value {
  [type.googleapis.com/protobuf_unittest.OneString] {
    data: "string"
z3:11 : Expected "}".)	rr�rvrrwrhrrrx)rr7r$ryrrr�testMergeMissingAnyEndToken�s
z'Proto3Tests.testMergeMissingAnyEndTokenN)rrrr�r�r�r�r�r�r�r�r�r�r�r�r�r�rrrrr�s

r�c@steZdZdd�Zdd�Zdd�Zdd�Zd	d
�Zdd�Zd
d�Z	dd�Z
dd�Zdd�Zdd�Z
dd�Zdd�ZdS)�
TokenizerTestcTCs�d}tj|j��}|jdfd|jdf|jdfd|jdf|jdfd|jdf|jd	fd|jd
f|jdfd|jd3f|jd
fd|jdf|jdfd|jdf|jdfdd|jdfd|jtd�f|jdfd|jtd�f|jdfd|jdf|jdfd|jdfd|jdfd|jdf|jdfd|jd4f|jdfd|jd5f|jd fd|jd!f|jd"fd|jd#f|jd$fd|jd%f|jd&fd|jdf|jd'fd|jdf|jd(fd|jdf|jd)fd|jdf|jd*fd|jdf|jd+fd|jdf|jd,fd|jtd�f|jd-fd|jtd.�f|jd/fd|jtd0�fgR}d1}x�|j	��s�||}t
|t��rN|j}|j
||�|j�nNt
|d2t��r�tj|d2��r�|jtj|d1���n|j
|d2|d1��|d27}�qWdS)6Na�identifier1:"string1"
     

identifier2 : 
 
123  
  identifier3 :'string'
identifiER_4 : 1.1e+2 ID5:-0.23 ID6:'aaaa\'bbbb'
ID7 : "aa\"bb"



 ID8: {A:inf B:-inf C:true D:false}
ID9: 22 ID10: -111111111111111111 ID11: -22
ID12: 2222222222222222222 ID13: 1.23456f ID14: 1.2e+2f false_bool:  0 true_BOOL:t 
 true_bool1:  1 false_BOOL1:f False_bool: False True_bool: True X:iNf Y:-inF Z:nANZidentifier1�:r�Zidentifier2rSZidentifier3r�ZidentifiER_4g�[@ZID5gq=
ףp�?ZID6z	aaaa'bbbbZID7zaa"bbZID8�{�A�inf�B�CT�DF�}ZID9�ZID10l�q��{UZID11ZID12l�c/Y-�vZID13g82�����?ZID14g^@Z
false_boolZ	true_BOOLZ
true_bool1Zfalse_BOOL1Z
False_boolZ	True_bool�X�Yz-inf�Z�nanrrgq=
ףpͿl�����q��{Ui��)r�	Tokenizer�
splitlines�ConsumeIdentifierZ
ConsumeString�ConsumeInteger�ConsumeFloat�float�ConsumeBool�AtEnd�
isinstancer�tokenr�	NextToken�mathZisnanr�)rr$�	tokenizer�methodsr�r�rrrr�testSimpleTokenCases�s�



























 z"TokenizerTest.testSimpleTokenCasesc
Csd}d
}d|d|df}tj|j��}|jd|j��|j|d|j��|j|d|j��|j|j��d}tj|j��}|jd|j��|jd|j��|jd|j��|jd|j��|jtj	��|j�WdQRX|jd	|j
��|j|j��dS)Nr�?� z-1 %d %dz
-0 0 0 1.2rTFg333333�?ll����ll�����)rrrrrr�rZTryConsumeIntegerrvrwr	)r�	int64_max�
uint32_maxr$rrrr�testConsumeAbstractIntegers)s$z)TokenizerTest.testConsumeAbstractIntegerscCs<d}d
}d|d|df}tj|j��}|jtjtj|�|jtjtj|�|jdtj|��|jtjtj|�|jtjtj|�|j|dtj	|��|jtjtj	|�|j|dtj|��|j
|j��d}tj|j��}|jdtj|��|jdtj|��|jdtj|��|jdtj|��|j
|j��dS)Nrrrz-1 %d %dz	-0 -0 0 0rll����ll��r)rrrrvrwZ_ConsumeUint32Z_ConsumeUint64rZ
_ConsumeInt32Z
_ConsumeInt64r�r)rrrr$rrrr�testConsumeIntegersBs2




z!TokenizerTest.testConsumeIntegerscCs�d}tj|j��}|jtj|j�d}tj|j��}|jtj|j�d}tj|j��}|jtj|j�d}tj|j��}|jtj|j�d}tj|j��}|jtj|j�dS)Nz	"string1'zstring1"z
"\xt"z
"\"z
"\x")rrrrvrwZConsumeByteString)rr$rrrr�testConsumeByteStringbsz#TokenizerTest.testConsumeByteStringcCs&d}tj|j��}|jtj|j�dS)Nz
not-a-bool)rrrrvrwr)rr$rrrr�testConsumeBoolwszTokenizerTest.testConsumeBoolcCs0tjdj��}|j|j��|jtj|j�dS)Nz# some comment)rrrr�rrvrw�ConsumeComment)rrrrr�testSkipComment|szTokenizerTest.testSkipCommentcCsBtjdj�dd�}|j|j��|jd|j��|j|j��dS)Nz# some commentF)�
skip_comments)rrr�assertFalserrrr�)rrrrr�testConsumeComment�s

z TokenizerTest.testConsumeCommentcCsVd}tj|j�dd�}|jd|j��|j|j��|jd|j��|j|j��dS)Nz # some comment
# another commentF)rz# some commentz# another comment)rrrrrr rr�)rr$rrrr�testConsumeTwoComments�sz$TokenizerTest.testConsumeTwoCommentscCs�d}tj|j�dd�}|jtj|j�|jd|j��|j|jd�|j	�|jtj|j�|jd|j
��|j|j��|jd|j��|j
|j��dS)Nzsome_number: 4
# some commentF)r�some_numberr�r�z# some comment)rrrrvrwrrrrrrr rr�)rr$rrrr�testConsumeTrailingComment�sz(TokenizerTest.testConsumeTrailingCommentcCsBtjdj�dd�}|j|j��|jd|j��|j|j��dS)N�# some commentF)r)Fr%)rrrr rr�ConsumeCommentOrTrailingCommentr�)rrrrr�testConsumeLineComment�s

z$TokenizerTest.testConsumeLineCommentcCsVd}tj|j�dd�}|jd|j��|j|j��|jd|j��|j|j��dS)Nz # some comment
# another commentF)r�# some comment�# another comment)Fr()Fr))rrrrr&r rr�)rr$rrrr�testConsumeTwoLineComments�s

z(TokenizerTest.testConsumeTwoLineCommentscCs�d}tj|j�dd�}|jtj|j�|jd|j��|j|jd�|j	�|jtj|j�|jd|j
��|j|j��|jd	|j��|j
|j��dS)
Nzsome_number: 4  # some commentF)rr#r�r�T�# some comment)Tr+)rrrrvrwr&rrrrrr rr�)rr$rrrr�"testConsumeAndCheckTrailingComment�s
z0TokenizerTest.testConsumeAndCheckTrailingCommentcCsnd}tj|j�dd�}|jd|j��|j|jd�|j�|jd|j��|jd	|j��|j	|j
��dS)
Nz2some_number: 4  # some comment # not a new commentF)rr#r�r�T�"# some comment # not a new comment)Tr-)rrrrrrrrr&r�r)rr$rrrr�testHashinComment�s
zTokenizerTest.testHashinCommentN)rrrrrrrrrr!r"r$r'r*r,r.rrrrr��sM 
r�c@s4eZdZdd�Zdd�Zdd�Zdd�Zd	d
�ZdS)�PrettyPrinterTestcCs<dd�}|j�}|jj�}d|_|jtj|d|d�d�dS)NcSs
~~~dS)Nr)r7�indentr=rrrr_�sz9PrettyPrinterTest.testPrettyPrintNoMatch.<locals>.printerr<T)r=�message_formatterz"repeated_nested_message { bb: 42 })r/r>r?r@r'rr5)rr6r_r7rArrr�testPrettyPrintNoMatch�s

z(PrettyPrinterTest.testPrettyPrintNoMatchcs@�fdd�}�j�}|jj�}d|_|jtj|d|d�d�dS)Ncs"~~|j�jjjkrd|jSdS)NzMy lucky number is %s)rVr/�
NestedMessager@)r�r0r=)r6rrr_�sz9PrettyPrinterTest.testPrettyPrintOneLine.<locals>.printerr<T)r=r1z1repeated_nested_message { My lucky number is 42 })r/r>r?r@r'rr5)rr6r_r7rAr)r6r�testPrettyPrintOneLine�s

z(PrettyPrinterTest.testPrettyPrintOneLinecsX�fdd�}�j�}|jj�}d|_|jtj|d|d�d�|jtj|d|d�d�dS)	Ncs6|j�jjjkr2|rdndd|}d||jfSdS)N� r�zMy lucky number is:%s%s)rVr/r3r@)r�r0r=Zline_deliminator)r6rrr_�sz;PrettyPrinterTest.testPrettyPrintMultiLine.<locals>.printerr<T)r=r1z2repeated_nested_message { My lucky number is: 42 }Fz7repeated_nested_message {
  My lucky number is:
  42
}
)r/r>r?r@r'rr5)rr6r_r7rAr)r6r�testPrettyPrintMultiLine�s


z*PrettyPrinterTest.testPrettyPrintMultiLinecsH�fdd�}�j�}|jtj|d|d�d�|jtj|d|d�d�dS)Ncs~~|j�jjkrdSdS)NzThe is the message!)rVr/)r�r0r=)r6rrr_sz?PrettyPrinterTest.testPrettyPrintEntireMessage.<locals>.printerF)r=r1zThe is the message!
TzThe is the message!)r/r'rr5)rr6r_r7r)r6r�testPrettyPrintEntireMessages

z.PrettyPrinterTest.testPrettyPrintEntireMessagecsb�fdd�}�j�}d|_|jj�}d|_|jj�}d|_|j}d|_|jtj|d|d�d	�dS)
Ncs"~~|j�jjjkrd|jSdS)NzMy lucky number is %s)rVr/r3r@)r�r0r=)r6rrr_s
z?PrettyPrinterTest.testPrettyPrintMultipleParts.<locals>.printer�=r<�crT)r=r1z�optional_int32: 61 optional_nested_message { My lucky number is 1 } repeated_nested_message { My lucky number is 42 } repeated_nested_message { My lucky number is 99 })	r/r�r>r?r@r�r'rr5)rr6r_r7rAr)r6r�testPrettyPrintMultiplePartss


z.PrettyPrinterTest.testPrettyPrintMultiplePartsN)rrrr2r4r6r7r:rrrrr/�s
r/�__main__)#�__doc__�
__author__rr)r:r�Z	unittest2Zunittest�ImportErrorZgoogle.protobuf.internalrZgoogle.protobufrrrrrrr�r	r
rrZTestCaser
rZ
Parametersr.r�r�r�r�r/r�mainrrrr�<module>!sT
'Cw]


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