Lines Matching refs:field2
85 GPBUnknownField* field2 = [[[GPBUnknownField alloc] initWithNumber:1] autorelease];
86 [field2 addVarint:1];
87 [set2 addField:field2];
97 field2 = [[[GPBUnknownField alloc] initWithNumber:2] autorelease];
98 [field2 addFixed32:2];
99 [set2 addField:field2];
109 field2 = [[[GPBUnknownField alloc] initWithNumber:3] autorelease];
110 [field2 addFixed64:3];
111 [set2 addField:field2];
121 field2 = [[[GPBUnknownField alloc] initWithNumber:4] autorelease];
122 [field2 addLengthDelimited:DataFromCStr("foo")];
123 [set2 addField:field2];
142 field2 = [[[GPBUnknownField alloc] initWithNumber:5] autorelease];
143 [field2 addGroup:group2];
144 [set2 addField:field2];
337 GPBUnknownField* field2 = [destination.unknownFields getField:123456];
338 XCTAssertEqual(field2.varintList.count, (NSUInteger)1);
339 XCTAssertEqual(654321ULL, [field2.varintList valueAtIndex:0]);
394 GPBUnknownField* field2 = [parsed getField:1];
395 XCTAssertEqual(field2.varintList.count, (NSUInteger)1);
396 XCTAssertEqual(0x7FFFFFFFFFFFFFFFULL, [field2.varintList valueAtIndex:0]);
407 GPBUnknownField* field2 = [[[GPBUnknownField alloc] initWithNumber:2] autorelease];
408 XCTAssertNotEqualObjects(field1, field2);
410 field2 = [[[GPBUnknownField alloc] initWithNumber:1] autorelease];
411 XCTAssertEqualObjects(field1, field2);
412 XCTAssertEqual([field1 hash], [field2 hash]);
417 XCTAssertNotEqualObjects(field1, field2);
418 [field2 addVarint:10];
419 XCTAssertEqualObjects(field1, field2);
420 XCTAssertEqual([field1 hash], [field2 hash]);
422 XCTAssertNotEqualObjects(field1, field2);
423 [field2 addVarint:11];
424 XCTAssertEqualObjects(field1, field2);
425 XCTAssertEqual([field1 hash], [field2 hash]);
430 XCTAssertNotEqualObjects(field1, field2);
431 [field2 addFixed32:20];
432 XCTAssertEqualObjects(field1, field2);
433 XCTAssertEqual([field1 hash], [field2 hash]);
435 XCTAssertNotEqualObjects(field1, field2);
436 [field2 addFixed32:21];
437 XCTAssertEqualObjects(field1, field2);
438 XCTAssertEqual([field1 hash], [field2 hash]);
443 XCTAssertNotEqualObjects(field1, field2);
444 [field2 addFixed64:30];
445 XCTAssertEqualObjects(field1, field2);
446 XCTAssertEqual([field1 hash], [field2 hash]);
448 XCTAssertNotEqualObjects(field1, field2);
449 [field2 addFixed64:31];
450 XCTAssertEqualObjects(field1, field2);
451 XCTAssertEqual([field1 hash], [field2 hash]);
456 XCTAssertNotEqualObjects(field1, field2);
457 [field2 addLengthDelimited:DataFromCStr("foo")];
458 XCTAssertEqualObjects(field1, field2);
459 XCTAssertEqual([field1 hash], [field2 hash]);
461 XCTAssertNotEqualObjects(field1, field2);
462 [field2 addLengthDelimited:DataFromCStr("bar")];
463 XCTAssertEqualObjects(field1, field2);
464 XCTAssertEqual([field1 hash], [field2 hash]);
473 XCTAssertNotEqualObjects(field1, field2);
478 [field2 addGroup:group];
479 XCTAssertEqualObjects(field1, field2);
480 XCTAssertEqual([field1 hash], [field2 hash]);
487 XCTAssertNotEqualObjects(field1, field2);
492 [field2 addGroup:group];
493 XCTAssertEqualObjects(field1, field2);
494 XCTAssertEqual([field1 hash], [field2 hash]);
507 GPBUnknownField* field2 = [[[GPBUnknownField alloc] initWithNumber:1] autorelease];
508 [field2 mergeFromField:field1];