Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
P
protobuf
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
protobuf
Commits
7e8c8930
Commit
7e8c8930
authored
Jul 01, 2016
by
Thomas Van Lenten
Committed by
GitHub
Jul 01, 2016
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #1723 from thomasvl/objc_test_coverage
Xcode project cleanup/setup.
parents
2fe0556c
6cfc19ed
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
11 additions
and
43 deletions
+11
-43
project.pbxproj
objectivec/ProtocolBuffers_OSX.xcodeproj/project.pbxproj
+0
-18
ProtocolBuffers.xcscheme
...xcodeproj/xcshareddata/xcschemes/ProtocolBuffers.xcscheme
+2
-1
project.pbxproj
objectivec/ProtocolBuffers_iOS.xcodeproj/project.pbxproj
+0
-18
ProtocolBuffers.xcscheme
...xcodeproj/xcshareddata/xcschemes/ProtocolBuffers.xcscheme
+2
-1
GPBUnknownFieldSetTest.m
objectivec/Tests/GPBUnknownFieldSetTest.m
+0
-4
GPBWireFormatTests.m
objectivec/Tests/GPBWireFormatTests.m
+7
-1
No files found.
objectivec/ProtocolBuffers_OSX.xcodeproj/project.pbxproj
View file @
7e8c8930
...
...
@@ -23,7 +23,6 @@
8B4248D21A927E1500BC1EC6
/* GPBWellKnownTypes.m in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
8B4248D01A927E1500BC1EC6
/* GPBWellKnownTypes.m */
;
};
8B4248DC1A92933A00BC1EC6
/* GPBWellKnownTypesTest.m in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
8B4248DB1A92933A00BC1EC6
/* GPBWellKnownTypesTest.m */
;
};
8B79657B14992E3F002FFBFC
/* GPBRootObject.m in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
8B79657914992E3E002FFBFC
/* GPBRootObject.m */
;
};
8B79657D14992E3F002FFBFC
/* GPBRootObject.m in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
8B79657914992E3E002FFBFC
/* GPBRootObject.m */
;
};
8B8B615D17DF7056002EE618
/* GPBARCUnittestProtos.m in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
8B8B615C17DF7056002EE618
/* GPBARCUnittestProtos.m */
;
settings
=
{
COMPILER_FLAGS
=
"-fobjc-arc"
;
};
};
8B96157414C8C38C00A2AC0B
/* GPBDescriptor.m in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
8B96157314C8C38C00A2AC0B
/* GPBDescriptor.m */
;
};
8BBEA4A9147C727D00C4ADB7
/* GPBCodedInputStreamTests.m in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
7461B69B0F94FDF800A0C422
/* GPBCodedInputStreamTests.m */
;
};
...
...
@@ -64,14 +63,6 @@
F4E675A11B21D0000054530B
/* Struct.pbobjc.m in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
F4E675911B21D0000054530B
/* Struct.pbobjc.m */
;
};
F4E675A31B21D0000054530B
/* Type.pbobjc.m in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
F4E675931B21D0000054530B
/* Type.pbobjc.m */
;
};
F4E675A51B21D0000054530B
/* Wrappers.pbobjc.m in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
F4E675951B21D0000054530B
/* Wrappers.pbobjc.m */
;
};
F4E675AE1B21D0A70054530B
/* Any.pbobjc.m in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
F4E675871B21D0000054530B
/* Any.pbobjc.m */
;
};
F4E675AF1B21D0A70054530B
/* Api.pbobjc.m in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
F4E675891B21D0000054530B
/* Api.pbobjc.m */
;
};
F4E675B01B21D0A70054530B
/* Empty.pbobjc.m in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
F4E6758B1B21D0000054530B
/* Empty.pbobjc.m */
;
};
F4E675B11B21D0A70054530B
/* FieldMask.pbobjc.m in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
F4E6758D1B21D0000054530B
/* FieldMask.pbobjc.m */
;
};
F4E675B21B21D0A70054530B
/* SourceContext.pbobjc.m in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
F4E6758F1B21D0000054530B
/* SourceContext.pbobjc.m */
;
};
F4E675B31B21D0A70054530B
/* Struct.pbobjc.m in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
F4E675911B21D0000054530B
/* Struct.pbobjc.m */
;
};
F4E675B41B21D0A70054530B
/* Type.pbobjc.m in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
F4E675931B21D0000054530B
/* Type.pbobjc.m */
;
};
F4E675B51B21D0A70054530B
/* Wrappers.pbobjc.m in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
F4E675951B21D0000054530B
/* Wrappers.pbobjc.m */
;
};
/* End PBXBuildFile section */
/* Begin PBXContainerItemProxy section */
...
...
@@ -660,19 +651,13 @@
F4353D361AC06F10005A6198
/* GPBDictionaryTests+Int64.m in Sources */
,
F4353D391AC06F10005A6198
/* GPBDictionaryTests+UInt64.m in Sources */
,
8BBEA4AA147C727D00C4ADB7
/* GPBCodedOuputStreamTests.m in Sources */
,
F4E675B21B21D0A70054530B
/* SourceContext.pbobjc.m in Sources */
,
8BBEA4AC147C727D00C4ADB7
/* GPBMessageTests.m in Sources */
,
F4B51B1E1BBC610700744318
/* GPBObjectiveCPlusPlusTest.mm in Sources */
,
F4487C7F1AAF62CD00531423
/* GPBMessageTests+Serialization.m in Sources */
,
8B4248DC1A92933A00BC1EC6
/* GPBWellKnownTypesTest.m in Sources */
,
F4E675B01B21D0A70054530B
/* Empty.pbobjc.m in Sources */
,
F4E675B41B21D0A70054530B
/* Type.pbobjc.m in Sources */
,
F4353D1D1AB8822D005A6198
/* GPBDescriptorTests.m in Sources */
,
F4E675B51B21D0A70054530B
/* Wrappers.pbobjc.m in Sources */
,
F4E675AE1B21D0A70054530B
/* Any.pbobjc.m in Sources */
,
8B4248BB1A8C256A00BC1EC6
/* GPBSwiftTests.swift in Sources */
,
5102DABC1891A073002037B6
/* GPBConcurrencyTests.m in Sources */
,
F4E675B31B21D0A70054530B
/* Struct.pbobjc.m in Sources */
,
F4487C751AADF7F500531423
/* GPBMessageTests+Runtime.m in Sources */
,
F4353D351AC06F10005A6198
/* GPBDictionaryTests+Int32.m in Sources */
,
8BBEA4B0147C727D00C4ADB7
/* GPBTestUtilities.m in Sources */
,
...
...
@@ -684,11 +669,8 @@
F4353D381AC06F10005A6198
/* GPBDictionaryTests+UInt32.m in Sources */
,
8BBEA4B7147C727D00C4ADB7
/* GPBUtilitiesTests.m in Sources */
,
8BBEA4B8147C727D00C4ADB7
/* GPBWireFormatTests.m in Sources */
,
8B79657D14992E3F002FFBFC
/* GPBRootObject.m in Sources */
,
8BD3981F14BE59D70081D629
/* GPBUnittestProtos.m in Sources */
,
F4E675B11B21D0A70054530B
/* FieldMask.pbobjc.m in Sources */
,
8B8B615D17DF7056002EE618
/* GPBARCUnittestProtos.m in Sources */
,
F4E675AF1B21D0A70054530B
/* Api.pbobjc.m in Sources */
,
);
runOnlyForDeploymentPostprocessing
=
0
;
};
...
...
objectivec/ProtocolBuffers_OSX.xcodeproj/xcshareddata/xcschemes/ProtocolBuffers.xcscheme
View file @
7e8c8930
...
...
@@ -54,7 +54,8 @@
buildConfiguration =
"Debug"
selectedDebuggerIdentifier =
"Xcode.DebuggerFoundation.Debugger.LLDB"
selectedLauncherIdentifier =
"Xcode.DebuggerFoundation.Launcher.LLDB"
shouldUseLaunchSchemeArgsEnv =
"YES"
>
shouldUseLaunchSchemeArgsEnv =
"YES"
codeCoverageEnabled =
"YES"
>
<Testables>
<TestableReference
skipped =
"NO"
>
...
...
objectivec/ProtocolBuffers_iOS.xcodeproj/project.pbxproj
View file @
7e8c8930
...
...
@@ -23,7 +23,6 @@
8B4248E41A929C8900BC1EC6
/* GPBWellKnownTypes.m in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
8B4248E21A929C8900BC1EC6
/* GPBWellKnownTypes.m */
;
};
8B4248E61A929C9900BC1EC6
/* GPBWellKnownTypesTest.m in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
8B4248E51A929C9900BC1EC6
/* GPBWellKnownTypesTest.m */
;
};
8B79657B14992E3F002FFBFC
/* GPBRootObject.m in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
8B79657914992E3E002FFBFC
/* GPBRootObject.m */
;
};
8B79657D14992E3F002FFBFC
/* GPBRootObject.m in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
8B79657914992E3E002FFBFC
/* GPBRootObject.m */
;
};
8B8B615D17DF7056002EE618
/* GPBARCUnittestProtos.m in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
8B8B615C17DF7056002EE618
/* GPBARCUnittestProtos.m */
;
settings
=
{
COMPILER_FLAGS
=
"-fobjc-arc"
;
};
};
8B96157414C8C38C00A2AC0B
/* GPBDescriptor.m in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
8B96157314C8C38C00A2AC0B
/* GPBDescriptor.m */
;
};
8B9742331A89D19F00DCE92C
/* LaunchScreen.xib in Resources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
8B9742321A89D19F00DCE92C
/* LaunchScreen.xib */
;
};
...
...
@@ -64,14 +63,6 @@
F45C69CC16DFD08D0081955B
/* GPBExtensionInternals.m in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
F45C69CB16DFD08D0081955B
/* GPBExtensionInternals.m */
;
};
F45E57C91AE6DC98000B7D99
/* text_format_map_unittest_data.txt in Resources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
F45E57C81AE6DC98000B7D99
/* text_format_map_unittest_data.txt */
;
};
F4B51B1C1BBC5C7100744318
/* GPBObjectiveCPlusPlusTest.mm in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
F4B51B1B1BBC5C7100744318
/* GPBObjectiveCPlusPlusTest.mm */
;
};
F4E675C81B21D1610054530B
/* Any.pbobjc.m in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
F4E675B71B21D1440054530B
/* Any.pbobjc.m */
;
};
F4E675C91B21D1610054530B
/* Api.pbobjc.m in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
F4E675B91B21D1440054530B
/* Api.pbobjc.m */
;
};
F4E675CA1B21D1610054530B
/* Empty.pbobjc.m in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
F4E675BC1B21D1440054530B
/* Empty.pbobjc.m */
;
};
F4E675CB1B21D1610054530B
/* FieldMask.pbobjc.m in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
F4E675BE1B21D1440054530B
/* FieldMask.pbobjc.m */
;
};
F4E675CC1B21D1610054530B
/* SourceContext.pbobjc.m in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
F4E675C01B21D1440054530B
/* SourceContext.pbobjc.m */
;
};
F4E675CD1B21D1610054530B
/* Struct.pbobjc.m in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
F4E675C21B21D1440054530B
/* Struct.pbobjc.m */
;
};
F4E675CE1B21D1610054530B
/* Type.pbobjc.m in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
F4E675C51B21D1440054530B
/* Type.pbobjc.m */
;
};
F4E675CF1B21D1610054530B
/* Wrappers.pbobjc.m in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
F4E675C71B21D1440054530B
/* Wrappers.pbobjc.m */
;
};
F4E675D01B21D1620054530B
/* Any.pbobjc.m in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
F4E675B71B21D1440054530B
/* Any.pbobjc.m */
;
};
F4E675D11B21D1620054530B
/* Api.pbobjc.m in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
F4E675B91B21D1440054530B
/* Api.pbobjc.m */
;
};
F4E675D21B21D1620054530B
/* Empty.pbobjc.m in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
F4E675BC1B21D1440054530B
/* Empty.pbobjc.m */
;
};
...
...
@@ -756,19 +747,13 @@
F4353D441AC06F31005A6198
/* GPBDictionaryTests+Int64.m in Sources */
,
F4353D471AC06F31005A6198
/* GPBDictionaryTests+UInt64.m in Sources */
,
8BBEA4AA147C727D00C4ADB7
/* GPBCodedOuputStreamTests.m in Sources */
,
F4E675CC1B21D1610054530B
/* SourceContext.pbobjc.m in Sources */
,
8BBEA4AC147C727D00C4ADB7
/* GPBMessageTests.m in Sources */
,
F4487C811AAF62FC00531423
/* GPBMessageTests+Serialization.m in Sources */
,
8B4248E61A929C9900BC1EC6
/* GPBWellKnownTypesTest.m in Sources */
,
F4E675CA1B21D1610054530B
/* Empty.pbobjc.m in Sources */
,
F4E675CE1B21D1610054530B
/* Type.pbobjc.m in Sources */
,
F4353D1F1AB88243005A6198
/* GPBDescriptorTests.m in Sources */
,
F4E675CF1B21D1610054530B
/* Wrappers.pbobjc.m in Sources */
,
F4B51B1C1BBC5C7100744318
/* GPBObjectiveCPlusPlusTest.mm in Sources */
,
F4E675C81B21D1610054530B
/* Any.pbobjc.m in Sources */
,
8B4248B41A8BD96E00BC1EC6
/* GPBSwiftTests.swift in Sources */
,
5102DABC1891A073002037B6
/* GPBConcurrencyTests.m in Sources */
,
F4E675CD1B21D1610054530B
/* Struct.pbobjc.m in Sources */
,
F4487C771AADF84900531423
/* GPBMessageTests+Runtime.m in Sources */
,
F4353D431AC06F31005A6198
/* GPBDictionaryTests+Int32.m in Sources */
,
8BBEA4B0147C727D00C4ADB7
/* GPBTestUtilities.m in Sources */
,
...
...
@@ -780,11 +765,8 @@
F4353D461AC06F31005A6198
/* GPBDictionaryTests+UInt32.m in Sources */
,
8BBEA4B7147C727D00C4ADB7
/* GPBUtilitiesTests.m in Sources */
,
8BBEA4B8147C727D00C4ADB7
/* GPBWireFormatTests.m in Sources */
,
8B79657D14992E3F002FFBFC
/* GPBRootObject.m in Sources */
,
8BD3981F14BE59D70081D629
/* GPBUnittestProtos.m in Sources */
,
F4E675CB1B21D1610054530B
/* FieldMask.pbobjc.m in Sources */
,
8B8B615D17DF7056002EE618
/* GPBARCUnittestProtos.m in Sources */
,
F4E675C91B21D1610054530B
/* Api.pbobjc.m in Sources */
,
);
runOnlyForDeploymentPostprocessing
=
0
;
};
...
...
objectivec/ProtocolBuffers_iOS.xcodeproj/xcshareddata/xcschemes/ProtocolBuffers.xcscheme
View file @
7e8c8930
...
...
@@ -54,7 +54,8 @@
buildConfiguration =
"Debug"
selectedDebuggerIdentifier =
"Xcode.DebuggerFoundation.Debugger.LLDB"
selectedLauncherIdentifier =
"Xcode.DebuggerFoundation.Launcher.LLDB"
shouldUseLaunchSchemeArgsEnv =
"YES"
>
shouldUseLaunchSchemeArgsEnv =
"YES"
codeCoverageEnabled =
"YES"
>
<Testables>
<TestableReference
skipped =
"NO"
>
...
...
objectivec/Tests/GPBUnknownFieldSetTest.m
View file @
7e8c8930
...
...
@@ -60,10 +60,6 @@
unknownFields_
=
emptyMessage_
.
unknownFields
;
}
-
(
GPBUnknownField
*
)
getField
:
(
int32_t
)
number
{
return
[
unknownFields_
getField
:
number
];
}
// Constructs a protocol buffer which contains fields with all the same
// numbers as allFieldsData except that each field is some other wire
// type.
...
...
objectivec/Tests/GPBWireFormatTests.m
View file @
7e8c8930
...
...
@@ -46,6 +46,7 @@
TestAllTypes
*
message
=
[
self
allSetRepeatedCount
:
kGPBDefaultRepeatCount
];
NSData
*
rawBytes
=
message
.
data
;
[
self
assertFieldsInOrder
:
rawBytes
];
XCTAssertEqual
(
message
.
serializedSize
,
(
size_t
)
rawBytes
.
length
);
TestAllTypes
*
message2
=
[
TestAllTypes
parseFromData
:
rawBytes
error
:
NULL
];
...
...
@@ -58,6 +59,7 @@
[
self
packedSetRepeatedCount
:
kGPBDefaultRepeatCount
];
NSData
*
rawBytes
=
message
.
data
;
[
self
assertFieldsInOrder
:
rawBytes
];
XCTAssertEqual
(
message
.
serializedSize
,
(
size_t
)
rawBytes
.
length
);
TestPackedTypes
*
message2
=
...
...
@@ -74,6 +76,7 @@
TestAllExtensions
*
message
=
[
self
allExtensionsSetRepeatedCount
:
kGPBDefaultRepeatCount
];
NSData
*
rawBytes
=
message
.
data
;
[
self
assertFieldsInOrder
:
rawBytes
];
XCTAssertEqual
(
message
.
serializedSize
,
(
size_t
)
rawBytes
.
length
);
TestAllTypes
*
message2
=
[
TestAllTypes
parseFromData
:
rawBytes
error
:
NULL
];
...
...
@@ -87,6 +90,7 @@
TestPackedExtensions
*
message
=
[
self
packedExtensionsSetRepeatedCount
:
kGPBDefaultRepeatCount
];
NSData
*
rawBytes
=
message
.
data
;
[
self
assertFieldsInOrder
:
rawBytes
];
TestPackedTypes
*
message2
=
[
self
packedSetRepeatedCount
:
kGPBDefaultRepeatCount
];
...
...
@@ -102,6 +106,7 @@
TestAllTypes
*
message
=
[
self
allSetRepeatedCount
:
kGPBDefaultRepeatCount
];
NSData
*
rawBytes
=
message
.
data
;
[
self
assertFieldsInOrder
:
rawBytes
];
GPBExtensionRegistry
*
registry
=
[
self
extensionRegistry
];
...
...
@@ -113,7 +118,7 @@
}
-
(
void
)
testExtensionsSerializedSize
{
-
(
void
)
testExtensionsSerializedSize
{
size_t
allSet
=
[
self
allSetRepeatedCount
:
kGPBDefaultRepeatCount
].
serializedSize
;
size_t
extensionSet
=
[
self
allExtensionsSetRepeatedCount
:
kGPBDefaultRepeatCount
].
serializedSize
;
XCTAssertEqual
(
allSet
,
extensionSet
);
...
...
@@ -124,6 +129,7 @@
TestPackedExtensions
*
message
=
[
self
packedExtensionsSetRepeatedCount
:
kGPBDefaultRepeatCount
];
NSData
*
rawBytes
=
message
.
data
;
[
self
assertFieldsInOrder
:
rawBytes
];
GPBExtensionRegistry
*
registry
=
[
self
extensionRegistry
];
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment