Lines Matching refs:msg2
40 let msg2 = Message2() in testProto2Basics() variable
46 msg2.optionalString = "other" in testProto2Basics()
47 msg.optionalMessage = msg2 in testProto2Basics()
67 XCTAssertTrue(msg2.hasOptionalString) in testProto2Basics()
77 XCTAssertEqual(msg2.optionalString, "other") in testProto2Basics()
78 XCTAssertTrue(msg.optionalMessage === msg2) in testProto2Basics()
108 msg2.optionalString = nil in testProto2Basics()
109 XCTAssertFalse(msg2.hasOptionalString) in testProto2Basics()
110 XCTAssertEqual(msg2.optionalString, "") in testProto2Basics()
127 XCTAssertTrue(msg.optionalMessage !== msg2) // New instance in testProto2Basics()
139 let msg2 = Message3() in testProto3Basics() variable
144 msg2.optionalString = "other" in testProto3Basics()
145 msg.optionalMessage = msg2 in testProto3Basics()
153 SetMessage3_OptionalEnum_RawValue(msg2, 666) in testProto3Basics()
164 XCTAssertFalse(msg2.hasOptionalMessage) in testProto3Basics()
169 XCTAssertEqual(msg2.optionalString, "other") in testProto3Basics()
170 XCTAssertTrue(msg.optionalMessage === msg2) in testProto3Basics()
183 XCTAssertEqual(msg2.optionalEnum, Message3_Enum.GPBUnrecognizedEnumeratorValue) in testProto3Basics()
184 XCTAssertEqual(Message3_OptionalEnum_RawValue(msg2), Int32(666)) in testProto3Basics()
203 msg2.optionalString = nil in testProto3Basics()
204 XCTAssertEqual(msg2.optionalString, "") in testProto3Basics()
209 XCTAssertTrue(msg.optionalMessage !== msg2) // New instance in testProto3Basics()
216 XCTAssertTrue(msg.optionalMessage !== msg2) // New instance in testProto3Basics()
221 msg2.clear() in testProto3Basics()
222 XCTAssertEqual(msg2.optionalEnum, Message3_Enum.Foo) // Default in testProto3Basics()
223 XCTAssertEqual(Message3_OptionalEnum_RawValue(msg2), Message3_Enum.Foo.rawValue) in testProto3Basics()
236 let msg2 = msg.optionalGroup in testAutoCreation() variable
239 XCTAssertNotNil(msg2) in testAutoCreation()
253 XCTAssertTrue(msg2 === msg.optionalGroup) in testAutoCreation()
267 XCTAssertTrue(msg2 !== msg.optionalGroup) in testAutoCreation()
449 let msg2 = Message2(data: data!, error:nil) in testSerialization() variable
450 XCTAssertTrue(msg2 !== msg) // New instance in testSerialization()
457 XCTAssertEqual(msg2, msg) in testSerialization()