Home
last modified time | relevance | path

Searched refs:optional_int32 (Results 1 – 25 of 81) sorted by relevance

1234

/third_party/protobuf/ruby/compatibility_tests/v3.0.0/tests/
Dbasic.rb122 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 …]
Dgenerated_code.proto6 int32 optional_int32 = 1; field
/third_party/protobuf/ruby/tests/
Dencode_decode_test.rb65 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 })
Dcommon_tests.rb17 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 …]
Dbasic_proto2.rb118 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
Dbasic_test_proto2.proto24 optional int32 optional_int32 = 1; field
54 optional int32 optional_int32 = 1 [default = 1]; field
Dtype_errors.rb77 A::B::C::TestMessage.new(optional_int32: 'hi')
/third_party/protobuf/src/google/protobuf/util/
Dfield_mask_util_test.cc442 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/
Ddynamic_message_unittest.cc298 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()
Dno_field_presence_test.cc46 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()
Dproto3_arena_unittest.cc76 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/
Dreflection_test.py136 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 …]
Dwell_known_types_test.py589 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 …]
Dunknown_fields_test.py236 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
Dmessage_test.py1299 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/
Dtest_descriptors.proto6 int32 optional_int32 = 1; field
/third_party/protobuf/java/core/src/test/proto/com/google/protobuf/
Dfield_presence_test.proto50 int32 optional_int32 = 1; field
78 int32 optional_int32 = 1; field
/third_party/grpc/third_party/upb/tests/json/
Dtest.proto6 int32 optional_int32 = 1; field
/third_party/protobuf/objectivec/Tests/
Dtext_format_unittest_data.txt1 optional_int32: 101
Dunittest_runtime_proto3.proto42 int32 optional_int32 = 1; field
131 optional int32 optional_int32 = 1;
/third_party/protobuf/src/google/protobuf/testdata/
Dtext_format_unittest_data_pointy_oneof.txt1 optional_int32: 101
Dtext_format_unittest_data.txt1 optional_int32: 101
Dtext_format_unittest_data_oneof_implemented.txt1 optional_int32: 101
Dtext_format_unittest_data_pointy.txt1 optional_int32: 101
/third_party/protobuf/python/compatibility_tests/v2.5.0/tests/google/protobuf/internal/
Dtext_format_unittest_data.txt1 optional_int32: 101

1234