Home | History | Annotate | Download | only in internal

Lines Matching defs:Test

241     # Test a scalar.
256 # Helper used to test foreign messages and groups.
330 # Test simple, single-level nesting when we set a scalar.
386 # This test exercises the code path that does not use ReleaseMessage().
399 # This test exercises releasing a nested message that is lazy. This test
412 # Test nesting when we add an element to a repeated field in a submessage.
419 # Do the same test, but with a repeated composite field within the
427 # Test nesting many levels deep.
678 # TODO(robinson): Test all other scalar field types.
689 # TODO(robinson): Test all other scalar field types.
784 # Test single retrieval.
787 # Test out-of-bounds indices.
790 # Test incorrect types passed to __getitem__.
794 # Test single assignment.
798 # Test insertion.
802 # Test slice retrieval.
807 # Test slice assignment with an iterator
811 # Test slice assignment.
815 # Test that we can use the field as an iterator.
821 # Test single deletion.
825 # Test slice deletion.
829 # Test extending.
833 # Test clearing.
840 # Test assignment to a negative index.
844 # Test deletion at negative indices.
901 # Test out-of-bounds indices.
907 # Test incorrect types passed to __getitem__.
913 # Test slice retrieval.
930 # Test that we can use the field as an iterator.
936 # Test single deletion.
940 # Test slice deletion.
944 # Test extending.
952 # Test clearing.
957 # Test constructing an element while adding it.
1160 # We just test the non-repeated case.
1282 # Test merge with just a singular field.
1295 # Test merge with just a repeated field.
1309 # Test merge with an optional group.
1317 # Test merge with a repeated nested message.
1416 # Test copy with just a singular field.
1429 # Test copy with a repeated field.
1503 # Test if extensions which were set are cleared.
1692 # 'Test' in another language, using UTF-8 charset.
1867 # Ensure that we test "has" bits as well as value for
1874 # Ensure that we test "has" bits as well as value for
1952 def Test(i, expected_varint_size):
1958 Test(0, 1)
1959 Test(1, 1)
1961 Test((1 << i) - 1, num_bytes)
1962 Test(-1, 10)
1963 Test(-2, 10)
1964 Test(-(1 << 63), 10)
2092 # Test non-extension.
2100 # Test within extension.
2110 # Test non-extension.
2120 # Test within extension.
2133 # Test non-extension.
2150 # Test within extension.
2162 # Test non-extension.
2172 # Test within extension.
2284 # This test is only applicable for the Python implementation of the API.
2339 # Copy of the same test we use for C++.
2469 # Now test with a int64 field set.
2828 """Get a serialized representation of a test FileDescriptorProto.
2834 A string containing the serialized form of a test FileDescriptorProto.
2884 """Test that the generated class can parse a flat message."""
2902 """Test that the generated class can parse a flat message."""
2917 """Test that the generated class can parse a nested message."""