Lines Matching refs:TestMessage2
104 TestMessage2 = pool.lookup("TestMessage2").msgclass constant
155 m.optional_msg = TestMessage2.new(:foo => 42)
156 assert m.optional_msg == TestMessage2.new(:foo => 42)
163 :optional_msg => TestMessage2.new,
167 assert m.optional_msg.class == TestMessage2
178 :optional_msg => TestMessage2.new,
364 l.push TestMessage2.new
418 l = Google::Protobuf::RepeatedField.new(:message, [TestMessage2.new])
581 m["jkl;"] = TestMessage2.new
633 :map_string_msg => {"a" => TestMessage2.new(:foo => 1),
634 "b" => TestMessage2.new(:foo => 2)})
641 m.map_string_msg["c"] = TestMessage2.new(:foo => 3)
642 assert m.map_string_msg["c"] == TestMessage2.new(:foo => 3)
645 assert m.map_string_msg == { "a" => TestMessage2.new(:foo => 1) }
651 assert m.map_string_msg == { "a" => TestMessage2.new(:foo => 1) }
669 :map_string_msg => {"a" => TestMessage2.new(:foo => 1),
670 "b" => TestMessage2.new(:foo => 2)})
683 assert kv == {"a" => TestMessage2.new(:foo => 1),
684 "b" => TestMessage2.new(:foo => 2)}
726 d.c = TestMessage2.new(:foo => 100)
746 OneofMessage.new(:c => TestMessage2.new(:foo => 1)))
790 tm1 = TestMessage2.new(:foo => 100)
791 tm2 = TestMessage2.new(:foo => 200)
806 :repeated_msg => [TestMessage2.new(:foo => 100)])
843 :repeated_msg => [TestMessage2.new(:foo => 1),
844 TestMessage2.new(:foo => 2)])
1081 10.times do m.repeated_msg.push TestMessage2.new(:foo => 42) end
1111 assert optional_msg.subtype == TestMessage2.descriptor
1139 :optional_msg => TestMessage2.new(:foo => 42),
1143 :repeated_msg => [TestMessage2.new(:foo => 1),
1144 TestMessage2.new(:foo => 2)])