/third_party/protobuf/ruby/compatibility_tests/v3.0.0/tests/ |
D | basic.rb | 122 assert m.optional_int32 == 0 137 m.optional_int32 = -42 138 assert m.optional_int32 == -42 165 assert m.optional_int32 == -42 228 m.optional_int32 = "hello" 419 l3[0].optional_int32 = 1000 420 assert l[0].optional_int32 == 1000 425 new_msg.optional_int32 = 1000 426 assert l4[1].optional_int32 == 1000 662 assert m.values.map{|msg| msg.optional_int32}.sort == [42, 84] [all …]
|
D | generated_code.proto | 6 int32 optional_int32 = 1; field
|
/third_party/protobuf/ruby/tests/ |
D | encode_decode_test.rb | 65 msg = A::B::C::TestMessage.new({ optional_int32: 22 }) 69 assert_equal to.optional_int32, 22 71 msg = A::B::C::TestMessage.new({ optional_int32: 22 }) 77 assert_equal 22, to.optional_int32 79 msg = A::B::C::TestMessage.new({ optional_int32: 22 })
|
D | common_tests.rb | 17 assert m.optional_int32 == 0 32 m.optional_int32 = -42 33 assert m.optional_int32 == -42 67 assert m.optional_int32 == -42 90 assert_equal 0, m.optional_int32 97 :child_msg => {sub_child: {optional_int32: 1}}, 99 :repeated_msg => [{sub_child: {optional_int32: 3}}], 107 assert_equal m.child_msg.sub_child.optional_int32, 1 111 assert_equal 3, m.repeated_msg.first.sub_child.optional_int32 158 m.optional_int32 = "hello" [all …]
|
D | basic_proto2.rb | 118 assert_equal 1, m.optional_int32 144 m.optional_int32 = -42 145 assert_equal -42, m.optional_int32 148 assert_equal 1, m.optional_int32
|
D | basic_test_proto2.proto | 24 optional int32 optional_int32 = 1; field 54 optional int32 optional_int32 = 1 [default = 1]; field
|
D | type_errors.rb | 77 A::B::C::TestMessage.new(optional_int32: 'hi')
|
/third_party/protobuf/src/google/protobuf/util/ |
D | field_mask_util_test.cc | 442 TEST_MERGE_ONE_PRIMITIVE_FIELD(optional_int32) in TEST() 509 EXPECT_EQ(1234, nested_dst.child().payload().optional_int32()); in TEST() 510 EXPECT_EQ(0, nested_dst.child().child().payload().optional_int32()); in TEST() 514 EXPECT_EQ(1234, nested_dst.child().payload().optional_int32()); in TEST() 515 EXPECT_EQ(5678, nested_dst.child().child().payload().optional_int32()); in TEST() 520 EXPECT_EQ(0, nested_dst.child().payload().optional_int32()); in TEST() 521 EXPECT_EQ(5678, nested_dst.child().child().payload().optional_int32()); in TEST() 526 EXPECT_EQ(1234, nested_dst.child().payload().optional_int32()); in TEST() 527 EXPECT_EQ(5678, nested_dst.child().child().payload().optional_int32()); in TEST() 536 EXPECT_EQ(1234, nested_dst.child().payload().optional_int32()); in TEST() [all …]
|
/third_party/protobuf/src/google/protobuf/ |
D | dynamic_message_unittest.cc | 298 const FieldDescriptor* optional_int32 = in TEST_F() local 302 EXPECT_TRUE(optional_int32 != NULL); in TEST_F() 305 EXPECT_EQ(false, refl->HasField(*message, optional_int32)); in TEST_F() 306 refl->SetInt32(message, optional_int32, 42); in TEST_F() 307 EXPECT_EQ(true, refl->HasField(*message, optional_int32)); in TEST_F() 308 refl->SetInt32(message, optional_int32, 0); in TEST_F() 309 EXPECT_EQ(false, refl->HasField(*message, optional_int32)); in TEST_F()
|
D | no_field_presence_test.cc | 46 EXPECT_EQ(0, m.optional_int32()); in CheckDefaultValues() 155 EXPECT_EQ(100, m.optional_int32()); in CheckNonDefaultValues() 175 EXPECT_EQ(44, m.optional_proto2_message().optional_int32()); in CheckNonDefaultValues() 218 EXPECT_EQ(48, m.repeated_proto2_message(0).optional_int32()); in CheckNonDefaultValues() 362 EXPECT_EQ(0, message.optional_int32()); in TEST() 473 EXPECT_EQ(42, dest.optional_int32()); in TEST() 479 EXPECT_EQ(84, dest.optional_int32()); in TEST()
|
D | proto3_arena_unittest.cc | 76 EXPECT_EQ(100, m.optional_int32()); in ExpectAllFieldsSet() 268 EXPECT_EQ(123, msg.optional_int32()); in TEST() 340 EXPECT_EQ(0, msg.optional_int32()); in TestAllFieldsZero() 364 EXPECT_EQ(101, msg.optional_int32()); in TestAllFieldsNonZero()
|
/third_party/protobuf/python/google/protobuf/internal/ |
D | reflection_test.py | 136 optional_int32=24, 141 self.assertEqual(24, proto.optional_int32) 165 optional_int32=24, 180 self.assertEqual(24, proto.optional_int32) 199 TypeError, message_module.TestAllTypes, optional_int32='foo') 218 message = message_module.TestAllTypes(optional_int32=12) 316 proto.optional_int32 = 5 344 proto.optional_int32 = 21 508 self.assertEqual(0, proto.optional_int32) 509 proto.optional_int32 = 1 [all …]
|
D | well_known_types_test.py | 589 nested_src.child.payload.optional_int32 = 1234 590 nested_src.child.child.payload.optional_int32 = 5678 594 self.assertEqual(1234, nested_dst.child.payload.optional_int32) 595 self.assertEqual(0, nested_dst.child.child.payload.optional_int32) 599 self.assertEqual(1234, nested_dst.child.payload.optional_int32) 600 self.assertEqual(5678, nested_dst.child.child.payload.optional_int32) 605 self.assertEqual(0, nested_dst.child.payload.optional_int32) 606 self.assertEqual(5678, nested_dst.child.child.payload.optional_int32) 611 self.assertEqual(1234, nested_dst.child.payload.optional_int32) 612 self.assertEqual(5678, nested_dst.child.child.payload.optional_int32) [all …]
|
D | unknown_fields_test.py | 236 self.all_fields.optional_int32) 238 self.all_fields.optional_int32) 277 message.optional_int32 = 1 301 self.assertEqual(message.optional_int32, 1) 349 message.optional_int32 = 123
|
D | message_test.py | 1299 self.assertEqual(m.payload.optional_int32, 0) 1350 self.assertEqual(0, message.optional_int32) 1355 message.optional_int32 = 0 1363 message.optional_int32 = 5 1379 self.assertEqual(0, message.optional_int32) 1482 messages[0].optional_int32 = 1 1484 messages[2].optional_int32 = 3 1488 merged_message.optional_int32 = 3 1526 optional_int32=100, 1540 self.assertEqual(100, message.optional_int32) [all …]
|
/third_party/protobuf/php/tests/proto/ |
D | test_descriptors.proto | 6 int32 optional_int32 = 1; field
|
/third_party/protobuf/java/core/src/test/proto/com/google/protobuf/ |
D | field_presence_test.proto | 50 int32 optional_int32 = 1; field 78 int32 optional_int32 = 1; field
|
/third_party/grpc/third_party/upb/tests/json/ |
D | test.proto | 6 int32 optional_int32 = 1; field
|
/third_party/protobuf/objectivec/Tests/ |
D | text_format_unittest_data.txt | 1 optional_int32: 101
|
D | unittest_runtime_proto3.proto | 42 int32 optional_int32 = 1; field 131 optional int32 optional_int32 = 1;
|
/third_party/protobuf/src/google/protobuf/testdata/ |
D | text_format_unittest_data_pointy_oneof.txt | 1 optional_int32: 101
|
D | text_format_unittest_data.txt | 1 optional_int32: 101
|
D | text_format_unittest_data_oneof_implemented.txt | 1 optional_int32: 101
|
D | text_format_unittest_data_pointy.txt | 1 optional_int32: 101
|
/third_party/protobuf/python/compatibility_tests/v2.5.0/tests/google/protobuf/internal/ |
D | text_format_unittest_data.txt | 1 optional_int32: 101
|