Lines Matching refs:oneof
293 let autoCreated = msg.oneof // Default create one. in testProto2OneOfSupport()
301 XCTAssertTrue(msg.oneof === autoCreated) // Still the same in testProto2OneOfSupport()
308 XCTAssertTrue(msg.oneof === autoCreated) // Still the same in testProto2OneOfSupport()
315 XCTAssertTrue(msg.oneof === autoCreated) // Still the same in testProto2OneOfSupport()
319 msg.oneof.optionalInt32 = 200 in testProto2OneOfSupport()
323 XCTAssertTrue(msg.oneof === autoCreated) // Still the same in testProto2OneOfSupport()
324 XCTAssertEqual(msg.oneof.optionalInt32, Int32(200)) in testProto2OneOfSupport()
332 let autoCreated2 = msg.oneof // Default create one in testProto2OneOfSupport()
335 XCTAssertEqual(msg.oneof.optionalInt32, Int32(0)) // Default in testProto2OneOfSupport()
348 msg.oneof.optionalInt32 = 300 in testProto2OneOfSupport()
349 XCTAssertTrue(msg.oneof !== autoCreated) // New instance in testProto2OneOfSupport()
350 XCTAssertTrue(msg.oneof !== autoCreated2) // New instance in testProto2OneOfSupport()
351 XCTAssertEqual(msg.oneof.optionalInt32, Int32(300)) in testProto2OneOfSupport()
355 msg.oneof = nil in testProto2OneOfSupport()
356 XCTAssertEqual(msg.oneof.optionalInt32, Int32(0)) // Default in testProto2OneOfSupport()
367 let autoCreated = msg.oneof // Default create one. in testProto3OneOfSupport()
375 XCTAssertTrue(msg.oneof === autoCreated) // Still the same in testProto3OneOfSupport()
382 XCTAssertTrue(msg.oneof === autoCreated) // Still the same in testProto3OneOfSupport()
389 XCTAssertTrue(msg.oneof === autoCreated) // Still the same in testProto3OneOfSupport()
393 msg.oneof.optionalInt32 = 200 in testProto3OneOfSupport()
397 XCTAssertTrue(msg.oneof === autoCreated) // Still the same in testProto3OneOfSupport()
398 XCTAssertEqual(msg.oneof.optionalInt32, Int32(200)) in testProto3OneOfSupport()
406 let autoCreated2 = msg.oneof // Default create one in testProto3OneOfSupport()
409 XCTAssertEqual(msg.oneof.optionalInt32, Int32(0)) // Default in testProto3OneOfSupport()
422 msg.oneof.optionalInt32 = 300 in testProto3OneOfSupport()
423 XCTAssertTrue(msg.oneof !== autoCreated) // New instance in testProto3OneOfSupport()
424 XCTAssertTrue(msg.oneof !== autoCreated2) // New instance in testProto3OneOfSupport()
425 XCTAssertEqual(msg.oneof.optionalInt32, Int32(300)) in testProto3OneOfSupport()
429 msg.oneof = nil in testProto3OneOfSupport()
430 XCTAssertEqual(msg.oneof.optionalInt32, Int32(0)) // Default in testProto3OneOfSupport()