Merge pull request #191 from viktorasl/feature/unit-test-coverage
Unit test coverage
Showing
7 changed files
with
246 additions
and
136 deletions
| @@ -19,28 +19,19 @@ | @@ -19,28 +19,19 @@ | ||
| 19 | 0AF7A878182AA9F6003645C4 /* PCAppDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = 0AF7A877182AA9F6003645C4 /* PCAppDelegate.m */; }; | 19 | 0AF7A878182AA9F6003645C4 /* PCAppDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = 0AF7A877182AA9F6003645C4 /* PCAppDelegate.m */; }; |
| 20 | 0AF7A87B182AA9F6003645C4 /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 0AF7A879182AA9F6003645C4 /* Main.storyboard */; }; | 20 | 0AF7A87B182AA9F6003645C4 /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 0AF7A879182AA9F6003645C4 /* Main.storyboard */; }; |
| 21 | 0AF7A880182AA9F6003645C4 /* Images.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 0AF7A87F182AA9F6003645C4 /* Images.xcassets */; }; | 21 | 0AF7A880182AA9F6003645C4 /* Images.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 0AF7A87F182AA9F6003645C4 /* Images.xcassets */; }; |
| 22 | - 0AF7A887182AA9F6003645C4 /* XCTest.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 0AF7A886182AA9F6003645C4 /* XCTest.framework */; }; | ||
| 23 | - 0AF7A888182AA9F6003645C4 /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 0AF7A867182AA9F6003645C4 /* Foundation.framework */; }; | ||
| 24 | - 0AF7A889182AA9F6003645C4 /* UIKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 0AF7A86B182AA9F6003645C4 /* UIKit.framework */; }; | ||
| 25 | - 0AF7A891182AA9F6003645C4 /* InfoPlist.strings in Resources */ = {isa = PBXBuildFile; fileRef = 0AF7A88F182AA9F6003645C4 /* InfoPlist.strings */; }; | ||
| 26 | - 0AF7A893182AA9F6003645C4 /* PNChartDemoTests.m in Sources */ = {isa = PBXBuildFile; fileRef = 0AF7A892182AA9F6003645C4 /* PNChartDemoTests.m */; }; | ||
| 27 | 0AF7A8AF182AAEEF003645C4 /* PCChartViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = 0AF7A8AE182AAEEF003645C4 /* PCChartViewController.m */; }; | 22 | 0AF7A8AF182AAEEF003645C4 /* PCChartViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = 0AF7A8AE182AAEEF003645C4 /* PCChartViewController.m */; }; |
| 23 | + 5C728F7B8AACCC0864A63B26 /* libPods-PNChartTests.a in Frameworks */ = {isa = PBXBuildFile; fileRef = B0A0D7DDAB496680487BF1E5 /* libPods-PNChartTests.a */; }; | ||
| 24 | + 6E984E5D1AE2B00600E817A0 /* PNBarChartTests.m in Sources */ = {isa = PBXBuildFile; fileRef = 6E984E5C1AE2B00600E817A0 /* PNBarChartTests.m */; }; | ||
| 25 | + 6E984E5E1AE2B03800E817A0 /* PNBar.m in Sources */ = {isa = PBXBuildFile; fileRef = 91177EC9198DFAC400017E27 /* PNBar.m */; }; | ||
| 26 | + 6E984E5F1AE2B03E00E817A0 /* PNBarChart.m in Sources */ = {isa = PBXBuildFile; fileRef = 91177ECB198DFAC400017E27 /* PNBarChart.m */; }; | ||
| 28 | 91177ED8198DFAC400017E27 /* PNBar.m in Sources */ = {isa = PBXBuildFile; fileRef = 91177EC9198DFAC400017E27 /* PNBar.m */; }; | 27 | 91177ED8198DFAC400017E27 /* PNBar.m in Sources */ = {isa = PBXBuildFile; fileRef = 91177EC9198DFAC400017E27 /* PNBar.m */; }; |
| 29 | - 91177ED9198DFAC400017E27 /* PNBar.m in Sources */ = {isa = PBXBuildFile; fileRef = 91177EC9198DFAC400017E27 /* PNBar.m */; }; | ||
| 30 | 91177EDA198DFAC400017E27 /* PNBarChart.m in Sources */ = {isa = PBXBuildFile; fileRef = 91177ECB198DFAC400017E27 /* PNBarChart.m */; }; | 28 | 91177EDA198DFAC400017E27 /* PNBarChart.m in Sources */ = {isa = PBXBuildFile; fileRef = 91177ECB198DFAC400017E27 /* PNBarChart.m */; }; |
| 31 | - 91177EDB198DFAC400017E27 /* PNBarChart.m in Sources */ = {isa = PBXBuildFile; fileRef = 91177ECB198DFAC400017E27 /* PNBarChart.m */; }; | ||
| 32 | 91177EDC198DFAC400017E27 /* PNCircleChart.m in Sources */ = {isa = PBXBuildFile; fileRef = 91177ECD198DFAC400017E27 /* PNCircleChart.m */; }; | 29 | 91177EDC198DFAC400017E27 /* PNCircleChart.m in Sources */ = {isa = PBXBuildFile; fileRef = 91177ECD198DFAC400017E27 /* PNCircleChart.m */; }; |
| 33 | - 91177EDD198DFAC400017E27 /* PNCircleChart.m in Sources */ = {isa = PBXBuildFile; fileRef = 91177ECD198DFAC400017E27 /* PNCircleChart.m */; }; | ||
| 34 | 91177EDE198DFAC400017E27 /* PNLineChart.m in Sources */ = {isa = PBXBuildFile; fileRef = 91177ECF198DFAC400017E27 /* PNLineChart.m */; }; | 30 | 91177EDE198DFAC400017E27 /* PNLineChart.m in Sources */ = {isa = PBXBuildFile; fileRef = 91177ECF198DFAC400017E27 /* PNLineChart.m */; }; |
| 35 | - 91177EDF198DFAC400017E27 /* PNLineChart.m in Sources */ = {isa = PBXBuildFile; fileRef = 91177ECF198DFAC400017E27 /* PNLineChart.m */; }; | ||
| 36 | 91177EE0198DFAC400017E27 /* PNLineChartData.m in Sources */ = {isa = PBXBuildFile; fileRef = 91177ED1198DFAC400017E27 /* PNLineChartData.m */; }; | 31 | 91177EE0198DFAC400017E27 /* PNLineChartData.m in Sources */ = {isa = PBXBuildFile; fileRef = 91177ED1198DFAC400017E27 /* PNLineChartData.m */; }; |
| 37 | - 91177EE1198DFAC400017E27 /* PNLineChartData.m in Sources */ = {isa = PBXBuildFile; fileRef = 91177ED1198DFAC400017E27 /* PNLineChartData.m */; }; | ||
| 38 | 91177EE2198DFAC400017E27 /* PNLineChartDataItem.m in Sources */ = {isa = PBXBuildFile; fileRef = 91177ED3198DFAC400017E27 /* PNLineChartDataItem.m */; }; | 32 | 91177EE2198DFAC400017E27 /* PNLineChartDataItem.m in Sources */ = {isa = PBXBuildFile; fileRef = 91177ED3198DFAC400017E27 /* PNLineChartDataItem.m */; }; |
| 39 | - 91177EE3198DFAC400017E27 /* PNLineChartDataItem.m in Sources */ = {isa = PBXBuildFile; fileRef = 91177ED3198DFAC400017E27 /* PNLineChartDataItem.m */; }; | ||
| 40 | 91177EE4198DFAC400017E27 /* PNPieChart.m in Sources */ = {isa = PBXBuildFile; fileRef = 91177ED5198DFAC400017E27 /* PNPieChart.m */; }; | 33 | 91177EE4198DFAC400017E27 /* PNPieChart.m in Sources */ = {isa = PBXBuildFile; fileRef = 91177ED5198DFAC400017E27 /* PNPieChart.m */; }; |
| 41 | - 91177EE5198DFAC400017E27 /* PNPieChart.m in Sources */ = {isa = PBXBuildFile; fileRef = 91177ED5198DFAC400017E27 /* PNPieChart.m */; }; | ||
| 42 | 91177EE6198DFAC400017E27 /* PNPieChartDataItem.m in Sources */ = {isa = PBXBuildFile; fileRef = 91177ED7198DFAC400017E27 /* PNPieChartDataItem.m */; }; | 34 | 91177EE6198DFAC400017E27 /* PNPieChartDataItem.m in Sources */ = {isa = PBXBuildFile; fileRef = 91177ED7198DFAC400017E27 /* PNPieChartDataItem.m */; }; |
| 43 | - 91177EE7198DFAC400017E27 /* PNPieChartDataItem.m in Sources */ = {isa = PBXBuildFile; fileRef = 91177ED7198DFAC400017E27 /* PNPieChartDataItem.m */; }; | ||
| 44 | 9FA23B10184A5944002DBBA4 /* PCChartsTableViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = 9FA23B0F184A5944002DBBA4 /* PCChartsTableViewController.m */; }; | 35 | 9FA23B10184A5944002DBBA4 /* PCChartsTableViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = 9FA23B0F184A5944002DBBA4 /* PCChartsTableViewController.m */; }; |
| 45 | 9FE15DF8190BB014004129F5 /* PNChartLabel.m in Sources */ = {isa = PBXBuildFile; fileRef = 9FE15DE9190BB014004129F5 /* PNChartLabel.m */; }; | 36 | 9FE15DF8190BB014004129F5 /* PNChartLabel.m in Sources */ = {isa = PBXBuildFile; fileRef = 9FE15DE9190BB014004129F5 /* PNChartLabel.m */; }; |
| 46 | 9FE15DFA190BB014004129F5 /* PNColor.m in Sources */ = {isa = PBXBuildFile; fileRef = 9FE15DEE190BB014004129F5 /* PNColor.m */; }; | 37 | 9FE15DFA190BB014004129F5 /* PNColor.m in Sources */ = {isa = PBXBuildFile; fileRef = 9FE15DEE190BB014004129F5 /* PNColor.m */; }; |
| @@ -49,7 +40,7 @@ | @@ -49,7 +40,7 @@ | ||
| 49 | /* End PBXBuildFile section */ | 40 | /* End PBXBuildFile section */ |
| 50 | 41 | ||
| 51 | /* Begin PBXContainerItemProxy section */ | 42 | /* Begin PBXContainerItemProxy section */ |
| 52 | - 0AF7A88A182AA9F6003645C4 /* PBXContainerItemProxy */ = { | 43 | + 6E984E571AE2AF2D00E817A0 /* PBXContainerItemProxy */ = { |
| 53 | isa = PBXContainerItemProxy; | 44 | isa = PBXContainerItemProxy; |
| 54 | containerPortal = 0AF7A85C182AA9F5003645C4 /* Project object */; | 45 | containerPortal = 0AF7A85C182AA9F5003645C4 /* Project object */; |
| 55 | proxyType = 1; | 46 | proxyType = 1; |
| @@ -78,15 +69,15 @@ | @@ -78,15 +69,15 @@ | ||
| 78 | 0AF7A877182AA9F6003645C4 /* PCAppDelegate.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = PCAppDelegate.m; sourceTree = "<group>"; }; | 69 | 0AF7A877182AA9F6003645C4 /* PCAppDelegate.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = PCAppDelegate.m; sourceTree = "<group>"; }; |
| 79 | 0AF7A87A182AA9F6003645C4 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = "<group>"; }; | 70 | 0AF7A87A182AA9F6003645C4 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = "<group>"; }; |
| 80 | 0AF7A87F182AA9F6003645C4 /* Images.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Images.xcassets; sourceTree = "<group>"; }; | 71 | 0AF7A87F182AA9F6003645C4 /* Images.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Images.xcassets; sourceTree = "<group>"; }; |
| 81 | - 0AF7A885182AA9F6003645C4 /* PNChartDemoTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = PNChartDemoTests.xctest; sourceTree = BUILT_PRODUCTS_DIR; }; | ||
| 82 | 0AF7A886182AA9F6003645C4 /* XCTest.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = XCTest.framework; path = Library/Frameworks/XCTest.framework; sourceTree = DEVELOPER_DIR; }; | 72 | 0AF7A886182AA9F6003645C4 /* XCTest.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = XCTest.framework; path = Library/Frameworks/XCTest.framework; sourceTree = DEVELOPER_DIR; }; |
| 83 | - 0AF7A88E182AA9F6003645C4 /* PNChartDemoTests-Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = "PNChartDemoTests-Info.plist"; sourceTree = "<group>"; }; | ||
| 84 | - 0AF7A890182AA9F6003645C4 /* en */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = en; path = en.lproj/InfoPlist.strings; sourceTree = "<group>"; }; | ||
| 85 | - 0AF7A892182AA9F6003645C4 /* PNChartDemoTests.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = PNChartDemoTests.m; sourceTree = "<group>"; }; | ||
| 86 | 0AF7A8AD182AAEEF003645C4 /* PCChartViewController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = PCChartViewController.h; sourceTree = "<group>"; }; | 73 | 0AF7A8AD182AAEEF003645C4 /* PCChartViewController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = PCChartViewController.h; sourceTree = "<group>"; }; |
| 87 | 0AF7A8AE182AAEEF003645C4 /* PCChartViewController.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = PCChartViewController.m; sourceTree = "<group>"; }; | 74 | 0AF7A8AE182AAEEF003645C4 /* PCChartViewController.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = PCChartViewController.m; sourceTree = "<group>"; }; |
| 88 | 2980CA20C29DC029B2D0B926 /* Pods.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = Pods.release.xcconfig; path = "Pods/Target Support Files/Pods/Pods.release.xcconfig"; sourceTree = "<group>"; }; | 75 | 2980CA20C29DC029B2D0B926 /* Pods.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = Pods.release.xcconfig; path = "Pods/Target Support Files/Pods/Pods.release.xcconfig"; sourceTree = "<group>"; }; |
| 89 | 3BA6321352024B1FBA0158B0 /* libPods.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = libPods.a; sourceTree = BUILT_PRODUCTS_DIR; }; | 76 | 3BA6321352024B1FBA0158B0 /* libPods.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = libPods.a; sourceTree = BUILT_PRODUCTS_DIR; }; |
| 77 | + 4D54B84CA1CAEB2BBBC9DCFA /* Pods-PNChartTests.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-PNChartTests.release.xcconfig"; path = "Pods/Target Support Files/Pods-PNChartTests/Pods-PNChartTests.release.xcconfig"; sourceTree = "<group>"; }; | ||
| 78 | + 6E984E511AE2AF2D00E817A0 /* PNChartTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = PNChartTests.xctest; sourceTree = BUILT_PRODUCTS_DIR; }; | ||
| 79 | + 6E984E541AE2AF2D00E817A0 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = "<group>"; }; | ||
| 80 | + 6E984E5C1AE2B00600E817A0 /* PNBarChartTests.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = PNBarChartTests.m; sourceTree = "<group>"; }; | ||
| 90 | 91177EC8198DFAC400017E27 /* PNBar.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = PNBar.h; sourceTree = "<group>"; }; | 81 | 91177EC8198DFAC400017E27 /* PNBar.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = PNBar.h; sourceTree = "<group>"; }; |
| 91 | 91177EC9198DFAC400017E27 /* PNBar.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = PNBar.m; sourceTree = "<group>"; }; | 82 | 91177EC9198DFAC400017E27 /* PNBar.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = PNBar.m; sourceTree = "<group>"; }; |
| 92 | 91177ECA198DFAC400017E27 /* PNBarChart.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = PNBarChart.h; sourceTree = "<group>"; }; | 83 | 91177ECA198DFAC400017E27 /* PNBarChart.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = PNBarChart.h; sourceTree = "<group>"; }; |
| @@ -113,7 +104,9 @@ | @@ -113,7 +104,9 @@ | ||
| 113 | 9FE15DEE190BB014004129F5 /* PNColor.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = PNColor.m; sourceTree = "<group>"; }; | 104 | 9FE15DEE190BB014004129F5 /* PNColor.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = PNColor.m; sourceTree = "<group>"; }; |
| 114 | A9C75FA41A9F1DA900A54638 /* PNGenericChart.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = PNGenericChart.h; sourceTree = "<group>"; }; | 105 | A9C75FA41A9F1DA900A54638 /* PNGenericChart.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = PNGenericChart.h; sourceTree = "<group>"; }; |
| 115 | A9C75FA51A9F1DA900A54638 /* PNGenericChart.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = PNGenericChart.m; sourceTree = "<group>"; }; | 106 | A9C75FA51A9F1DA900A54638 /* PNGenericChart.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = PNGenericChart.m; sourceTree = "<group>"; }; |
| 107 | + B0A0D7DDAB496680487BF1E5 /* libPods-PNChartTests.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = "libPods-PNChartTests.a"; sourceTree = BUILT_PRODUCTS_DIR; }; | ||
| 116 | EFE4F6360943ED4001072124 /* Pods.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = Pods.debug.xcconfig; path = "Pods/Target Support Files/Pods/Pods.debug.xcconfig"; sourceTree = "<group>"; }; | 108 | EFE4F6360943ED4001072124 /* Pods.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = Pods.debug.xcconfig; path = "Pods/Target Support Files/Pods/Pods.debug.xcconfig"; sourceTree = "<group>"; }; |
| 109 | + FB2FFF68E5C9B426137EDD03 /* Pods-PNChartTests.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-PNChartTests.debug.xcconfig"; path = "Pods/Target Support Files/Pods-PNChartTests/Pods-PNChartTests.debug.xcconfig"; sourceTree = "<group>"; }; | ||
| 117 | /* End PBXFileReference section */ | 110 | /* End PBXFileReference section */ |
| 118 | 111 | ||
| 119 | /* Begin PBXFrameworksBuildPhase section */ | 112 | /* Begin PBXFrameworksBuildPhase section */ |
| @@ -129,13 +122,11 @@ | @@ -129,13 +122,11 @@ | ||
| 129 | ); | 122 | ); |
| 130 | runOnlyForDeploymentPostprocessing = 0; | 123 | runOnlyForDeploymentPostprocessing = 0; |
| 131 | }; | 124 | }; |
| 132 | - 0AF7A882182AA9F6003645C4 /* Frameworks */ = { | 125 | + 6E984E4E1AE2AF2D00E817A0 /* Frameworks */ = { |
| 133 | isa = PBXFrameworksBuildPhase; | 126 | isa = PBXFrameworksBuildPhase; |
| 134 | buildActionMask = 2147483647; | 127 | buildActionMask = 2147483647; |
| 135 | files = ( | 128 | files = ( |
| 136 | - 0AF7A887182AA9F6003645C4 /* XCTest.framework in Frameworks */, | 129 | + 5C728F7B8AACCC0864A63B26 /* libPods-PNChartTests.a in Frameworks */, |
| 137 | - 0AF7A889182AA9F6003645C4 /* UIKit.framework in Frameworks */, | ||
| 138 | - 0AF7A888182AA9F6003645C4 /* Foundation.framework in Frameworks */, | ||
| 139 | ); | 130 | ); |
| 140 | runOnlyForDeploymentPostprocessing = 0; | 131 | runOnlyForDeploymentPostprocessing = 0; |
| 141 | }; | 132 | }; |
| @@ -147,7 +138,7 @@ | @@ -147,7 +138,7 @@ | ||
| 147 | children = ( | 138 | children = ( |
| 148 | 9FE15DE0190BB014004129F5 /* PNChart */, | 139 | 9FE15DE0190BB014004129F5 /* PNChart */, |
| 149 | 0AF7A86D182AA9F6003645C4 /* PNChartDemo */, | 140 | 0AF7A86D182AA9F6003645C4 /* PNChartDemo */, |
| 150 | - 0AF7A88C182AA9F6003645C4 /* PNChartDemoTests */, | 141 | + 6E984E521AE2AF2D00E817A0 /* PNChartTests */, |
| 151 | 0AF7A866182AA9F6003645C4 /* Frameworks */, | 142 | 0AF7A866182AA9F6003645C4 /* Frameworks */, |
| 152 | 0AF7A865182AA9F6003645C4 /* Products */, | 143 | 0AF7A865182AA9F6003645C4 /* Products */, |
| 153 | 217C3505EE193E5BA78404BE /* Pods */, | 144 | 217C3505EE193E5BA78404BE /* Pods */, |
| @@ -158,7 +149,7 @@ | @@ -158,7 +149,7 @@ | ||
| 158 | isa = PBXGroup; | 149 | isa = PBXGroup; |
| 159 | children = ( | 150 | children = ( |
| 160 | 0AF7A864182AA9F6003645C4 /* PNChartDemo.app */, | 151 | 0AF7A864182AA9F6003645C4 /* PNChartDemo.app */, |
| 161 | - 0AF7A885182AA9F6003645C4 /* PNChartDemoTests.xctest */, | 152 | + 6E984E511AE2AF2D00E817A0 /* PNChartTests.xctest */, |
| 162 | ); | 153 | ); |
| 163 | name = Products; | 154 | name = Products; |
| 164 | sourceTree = "<group>"; | 155 | sourceTree = "<group>"; |
| @@ -172,6 +163,7 @@ | @@ -172,6 +163,7 @@ | ||
| 172 | 0AF7A86B182AA9F6003645C4 /* UIKit.framework */, | 163 | 0AF7A86B182AA9F6003645C4 /* UIKit.framework */, |
| 173 | 0AF7A886182AA9F6003645C4 /* XCTest.framework */, | 164 | 0AF7A886182AA9F6003645C4 /* XCTest.framework */, |
| 174 | 3BA6321352024B1FBA0158B0 /* libPods.a */, | 165 | 3BA6321352024B1FBA0158B0 /* libPods.a */, |
| 166 | + B0A0D7DDAB496680487BF1E5 /* libPods-PNChartTests.a */, | ||
| 175 | ); | 167 | ); |
| 176 | name = Frameworks; | 168 | name = Frameworks; |
| 177 | sourceTree = "<group>"; | 169 | sourceTree = "<group>"; |
| @@ -200,24 +192,6 @@ | @@ -200,24 +192,6 @@ | ||
| 200 | name = "Supporting Files"; | 192 | name = "Supporting Files"; |
| 201 | sourceTree = "<group>"; | 193 | sourceTree = "<group>"; |
| 202 | }; | 194 | }; |
| 203 | - 0AF7A88C182AA9F6003645C4 /* PNChartDemoTests */ = { | ||
| 204 | - isa = PBXGroup; | ||
| 205 | - children = ( | ||
| 206 | - 0AF7A892182AA9F6003645C4 /* PNChartDemoTests.m */, | ||
| 207 | - 0AF7A88D182AA9F6003645C4 /* Supporting Files */, | ||
| 208 | - ); | ||
| 209 | - path = PNChartDemoTests; | ||
| 210 | - sourceTree = "<group>"; | ||
| 211 | - }; | ||
| 212 | - 0AF7A88D182AA9F6003645C4 /* Supporting Files */ = { | ||
| 213 | - isa = PBXGroup; | ||
| 214 | - children = ( | ||
| 215 | - 0AF7A88E182AA9F6003645C4 /* PNChartDemoTests-Info.plist */, | ||
| 216 | - 0AF7A88F182AA9F6003645C4 /* InfoPlist.strings */, | ||
| 217 | - ); | ||
| 218 | - name = "Supporting Files"; | ||
| 219 | - sourceTree = "<group>"; | ||
| 220 | - }; | ||
| 221 | 0AF7A8B0182AAEF3003645C4 /* PCChartViewController */ = { | 195 | 0AF7A8B0182AAEF3003645C4 /* PCChartViewController */ = { |
| 222 | isa = PBXGroup; | 196 | isa = PBXGroup; |
| 223 | children = ( | 197 | children = ( |
| @@ -234,10 +208,29 @@ | @@ -234,10 +208,29 @@ | ||
| 234 | children = ( | 208 | children = ( |
| 235 | EFE4F6360943ED4001072124 /* Pods.debug.xcconfig */, | 209 | EFE4F6360943ED4001072124 /* Pods.debug.xcconfig */, |
| 236 | 2980CA20C29DC029B2D0B926 /* Pods.release.xcconfig */, | 210 | 2980CA20C29DC029B2D0B926 /* Pods.release.xcconfig */, |
| 211 | + FB2FFF68E5C9B426137EDD03 /* Pods-PNChartTests.debug.xcconfig */, | ||
| 212 | + 4D54B84CA1CAEB2BBBC9DCFA /* Pods-PNChartTests.release.xcconfig */, | ||
| 237 | ); | 213 | ); |
| 238 | name = Pods; | 214 | name = Pods; |
| 239 | sourceTree = "<group>"; | 215 | sourceTree = "<group>"; |
| 240 | }; | 216 | }; |
| 217 | + 6E984E521AE2AF2D00E817A0 /* PNChartTests */ = { | ||
| 218 | + isa = PBXGroup; | ||
| 219 | + children = ( | ||
| 220 | + 6E984E531AE2AF2D00E817A0 /* Supporting Files */, | ||
| 221 | + 6E984E5C1AE2B00600E817A0 /* PNBarChartTests.m */, | ||
| 222 | + ); | ||
| 223 | + path = PNChartTests; | ||
| 224 | + sourceTree = "<group>"; | ||
| 225 | + }; | ||
| 226 | + 6E984E531AE2AF2D00E817A0 /* Supporting Files */ = { | ||
| 227 | + isa = PBXGroup; | ||
| 228 | + children = ( | ||
| 229 | + 6E984E541AE2AF2D00E817A0 /* Info.plist */, | ||
| 230 | + ); | ||
| 231 | + name = "Supporting Files"; | ||
| 232 | + sourceTree = "<group>"; | ||
| 233 | + }; | ||
| 241 | 9FE15DE0190BB014004129F5 /* PNChart */ = { | 234 | 9FE15DE0190BB014004129F5 /* PNChart */ = { |
| 242 | isa = PBXGroup; | 235 | isa = PBXGroup; |
| 243 | children = ( | 236 | children = ( |
| @@ -297,22 +290,24 @@ | @@ -297,22 +290,24 @@ | ||
| 297 | productReference = 0AF7A864182AA9F6003645C4 /* PNChartDemo.app */; | 290 | productReference = 0AF7A864182AA9F6003645C4 /* PNChartDemo.app */; |
| 298 | productType = "com.apple.product-type.application"; | 291 | productType = "com.apple.product-type.application"; |
| 299 | }; | 292 | }; |
| 300 | - 0AF7A884182AA9F6003645C4 /* PNChartDemoTests */ = { | 293 | + 6E984E501AE2AF2D00E817A0 /* PNChartTests */ = { |
| 301 | isa = PBXNativeTarget; | 294 | isa = PBXNativeTarget; |
| 302 | - buildConfigurationList = 0AF7A899182AA9F6003645C4 /* Build configuration list for PBXNativeTarget "PNChartDemoTests" */; | 295 | + buildConfigurationList = 6E984E591AE2AF2D00E817A0 /* Build configuration list for PBXNativeTarget "PNChartTests" */; |
| 303 | buildPhases = ( | 296 | buildPhases = ( |
| 304 | - 0AF7A881182AA9F6003645C4 /* Sources */, | 297 | + 0F1FFABAEC60723535D9F44F /* Check Pods Manifest.lock */, |
| 305 | - 0AF7A882182AA9F6003645C4 /* Frameworks */, | 298 | + 6E984E4D1AE2AF2D00E817A0 /* Sources */, |
| 306 | - 0AF7A883182AA9F6003645C4 /* Resources */, | 299 | + 6E984E4E1AE2AF2D00E817A0 /* Frameworks */, |
| 300 | + 6E984E4F1AE2AF2D00E817A0 /* Resources */, | ||
| 301 | + E9476F7ACBE0CF34D0798C4E /* Copy Pods Resources */, | ||
| 307 | ); | 302 | ); |
| 308 | buildRules = ( | 303 | buildRules = ( |
| 309 | ); | 304 | ); |
| 310 | dependencies = ( | 305 | dependencies = ( |
| 311 | - 0AF7A88B182AA9F6003645C4 /* PBXTargetDependency */, | 306 | + 6E984E581AE2AF2D00E817A0 /* PBXTargetDependency */, |
| 312 | ); | 307 | ); |
| 313 | - name = PNChartDemoTests; | 308 | + name = PNChartTests; |
| 314 | - productName = PNChartDemoTests; | 309 | + productName = PNChartTests; |
| 315 | - productReference = 0AF7A885182AA9F6003645C4 /* PNChartDemoTests.xctest */; | 310 | + productReference = 6E984E511AE2AF2D00E817A0 /* PNChartTests.xctest */; |
| 316 | productType = "com.apple.product-type.bundle.unit-test"; | 311 | productType = "com.apple.product-type.bundle.unit-test"; |
| 317 | }; | 312 | }; |
| 318 | /* End PBXNativeTarget section */ | 313 | /* End PBXNativeTarget section */ |
| @@ -325,7 +320,8 @@ | @@ -325,7 +320,8 @@ | ||
| 325 | LastUpgradeCheck = 0510; | 320 | LastUpgradeCheck = 0510; |
| 326 | ORGANIZATIONNAME = kevinzhow; | 321 | ORGANIZATIONNAME = kevinzhow; |
| 327 | TargetAttributes = { | 322 | TargetAttributes = { |
| 328 | - 0AF7A884182AA9F6003645C4 = { | 323 | + 6E984E501AE2AF2D00E817A0 = { |
| 324 | + CreatedOnToolsVersion = 6.3; | ||
| 329 | TestTargetID = 0AF7A863182AA9F6003645C4; | 325 | TestTargetID = 0AF7A863182AA9F6003645C4; |
| 330 | }; | 326 | }; |
| 331 | }; | 327 | }; |
| @@ -344,7 +340,7 @@ | @@ -344,7 +340,7 @@ | ||
| 344 | projectRoot = ""; | 340 | projectRoot = ""; |
| 345 | targets = ( | 341 | targets = ( |
| 346 | 0AF7A863182AA9F6003645C4 /* PNChartDemo */, | 342 | 0AF7A863182AA9F6003645C4 /* PNChartDemo */, |
| 347 | - 0AF7A884182AA9F6003645C4 /* PNChartDemoTests */, | 343 | + 6E984E501AE2AF2D00E817A0 /* PNChartTests */, |
| 348 | ); | 344 | ); |
| 349 | }; | 345 | }; |
| 350 | /* End PBXProject section */ | 346 | /* End PBXProject section */ |
| @@ -360,17 +356,31 @@ | @@ -360,17 +356,31 @@ | ||
| 360 | ); | 356 | ); |
| 361 | runOnlyForDeploymentPostprocessing = 0; | 357 | runOnlyForDeploymentPostprocessing = 0; |
| 362 | }; | 358 | }; |
| 363 | - 0AF7A883182AA9F6003645C4 /* Resources */ = { | 359 | + 6E984E4F1AE2AF2D00E817A0 /* Resources */ = { |
| 364 | isa = PBXResourcesBuildPhase; | 360 | isa = PBXResourcesBuildPhase; |
| 365 | buildActionMask = 2147483647; | 361 | buildActionMask = 2147483647; |
| 366 | files = ( | 362 | files = ( |
| 367 | - 0AF7A891182AA9F6003645C4 /* InfoPlist.strings in Resources */, | ||
| 368 | ); | 363 | ); |
| 369 | runOnlyForDeploymentPostprocessing = 0; | 364 | runOnlyForDeploymentPostprocessing = 0; |
| 370 | }; | 365 | }; |
| 371 | /* End PBXResourcesBuildPhase section */ | 366 | /* End PBXResourcesBuildPhase section */ |
| 372 | 367 | ||
| 373 | /* Begin PBXShellScriptBuildPhase section */ | 368 | /* Begin PBXShellScriptBuildPhase section */ |
| 369 | + 0F1FFABAEC60723535D9F44F /* Check Pods Manifest.lock */ = { | ||
| 370 | + isa = PBXShellScriptBuildPhase; | ||
| 371 | + buildActionMask = 2147483647; | ||
| 372 | + files = ( | ||
| 373 | + ); | ||
| 374 | + inputPaths = ( | ||
| 375 | + ); | ||
| 376 | + name = "Check Pods Manifest.lock"; | ||
| 377 | + outputPaths = ( | ||
| 378 | + ); | ||
| 379 | + runOnlyForDeploymentPostprocessing = 0; | ||
| 380 | + shellPath = /bin/sh; | ||
| 381 | + shellScript = "diff \"${PODS_ROOT}/../Podfile.lock\" \"${PODS_ROOT}/Manifest.lock\" > /dev/null\nif [[ $? != 0 ]] ; then\n cat << EOM\nerror: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.\nEOM\n exit 1\nfi\n"; | ||
| 382 | + showEnvVarsInLog = 0; | ||
| 383 | + }; | ||
| 374 | AE92DF55A4F844AB9D718B75 /* Check Pods Manifest.lock */ = { | 384 | AE92DF55A4F844AB9D718B75 /* Check Pods Manifest.lock */ = { |
| 375 | isa = PBXShellScriptBuildPhase; | 385 | isa = PBXShellScriptBuildPhase; |
| 376 | buildActionMask = 2147483647; | 386 | buildActionMask = 2147483647; |
| @@ -401,6 +411,21 @@ | @@ -401,6 +411,21 @@ | ||
| 401 | shellScript = "\"${SRCROOT}/Pods/Target Support Files/Pods/Pods-resources.sh\"\n"; | 411 | shellScript = "\"${SRCROOT}/Pods/Target Support Files/Pods/Pods-resources.sh\"\n"; |
| 402 | showEnvVarsInLog = 0; | 412 | showEnvVarsInLog = 0; |
| 403 | }; | 413 | }; |
| 414 | + E9476F7ACBE0CF34D0798C4E /* Copy Pods Resources */ = { | ||
| 415 | + isa = PBXShellScriptBuildPhase; | ||
| 416 | + buildActionMask = 2147483647; | ||
| 417 | + files = ( | ||
| 418 | + ); | ||
| 419 | + inputPaths = ( | ||
| 420 | + ); | ||
| 421 | + name = "Copy Pods Resources"; | ||
| 422 | + outputPaths = ( | ||
| 423 | + ); | ||
| 424 | + runOnlyForDeploymentPostprocessing = 0; | ||
| 425 | + shellPath = /bin/sh; | ||
| 426 | + shellScript = "\"${SRCROOT}/Pods/Target Support Files/Pods-PNChartTests/Pods-PNChartTests-resources.sh\"\n"; | ||
| 427 | + showEnvVarsInLog = 0; | ||
| 428 | + }; | ||
| 404 | /* End PBXShellScriptBuildPhase section */ | 429 | /* End PBXShellScriptBuildPhase section */ |
| 405 | 430 | ||
| 406 | /* Begin PBXSourcesBuildPhase section */ | 431 | /* Begin PBXSourcesBuildPhase section */ |
| @@ -429,29 +454,23 @@ | @@ -429,29 +454,23 @@ | ||
| 429 | ); | 454 | ); |
| 430 | runOnlyForDeploymentPostprocessing = 0; | 455 | runOnlyForDeploymentPostprocessing = 0; |
| 431 | }; | 456 | }; |
| 432 | - 0AF7A881182AA9F6003645C4 /* Sources */ = { | 457 | + 6E984E4D1AE2AF2D00E817A0 /* Sources */ = { |
| 433 | isa = PBXSourcesBuildPhase; | 458 | isa = PBXSourcesBuildPhase; |
| 434 | buildActionMask = 2147483647; | 459 | buildActionMask = 2147483647; |
| 435 | files = ( | 460 | files = ( |
| 436 | - 91177EE7198DFAC400017E27 /* PNPieChartDataItem.m in Sources */, | 461 | + 6E984E5F1AE2B03E00E817A0 /* PNBarChart.m in Sources */, |
| 437 | - 91177EE1198DFAC400017E27 /* PNLineChartData.m in Sources */, | 462 | + 6E984E5E1AE2B03800E817A0 /* PNBar.m in Sources */, |
| 438 | - 91177EDF198DFAC400017E27 /* PNLineChart.m in Sources */, | 463 | + 6E984E5D1AE2B00600E817A0 /* PNBarChartTests.m in Sources */, |
| 439 | - 91177EDD198DFAC400017E27 /* PNCircleChart.m in Sources */, | ||
| 440 | - 91177EE3198DFAC400017E27 /* PNLineChartDataItem.m in Sources */, | ||
| 441 | - 0AF7A893182AA9F6003645C4 /* PNChartDemoTests.m in Sources */, | ||
| 442 | - 91177EE5198DFAC400017E27 /* PNPieChart.m in Sources */, | ||
| 443 | - 91177EDB198DFAC400017E27 /* PNBarChart.m in Sources */, | ||
| 444 | - 91177ED9198DFAC400017E27 /* PNBar.m in Sources */, | ||
| 445 | ); | 464 | ); |
| 446 | runOnlyForDeploymentPostprocessing = 0; | 465 | runOnlyForDeploymentPostprocessing = 0; |
| 447 | }; | 466 | }; |
| 448 | /* End PBXSourcesBuildPhase section */ | 467 | /* End PBXSourcesBuildPhase section */ |
| 449 | 468 | ||
| 450 | /* Begin PBXTargetDependency section */ | 469 | /* Begin PBXTargetDependency section */ |
| 451 | - 0AF7A88B182AA9F6003645C4 /* PBXTargetDependency */ = { | 470 | + 6E984E581AE2AF2D00E817A0 /* PBXTargetDependency */ = { |
| 452 | isa = PBXTargetDependency; | 471 | isa = PBXTargetDependency; |
| 453 | target = 0AF7A863182AA9F6003645C4 /* PNChartDemo */; | 472 | target = 0AF7A863182AA9F6003645C4 /* PNChartDemo */; |
| 454 | - targetProxy = 0AF7A88A182AA9F6003645C4 /* PBXContainerItemProxy */; | 473 | + targetProxy = 6E984E571AE2AF2D00E817A0 /* PBXContainerItemProxy */; |
| 455 | }; | 474 | }; |
| 456 | /* End PBXTargetDependency section */ | 475 | /* End PBXTargetDependency section */ |
| 457 | 476 | ||
| @@ -472,14 +491,6 @@ | @@ -472,14 +491,6 @@ | ||
| 472 | name = Main.storyboard; | 491 | name = Main.storyboard; |
| 473 | sourceTree = "<group>"; | 492 | sourceTree = "<group>"; |
| 474 | }; | 493 | }; |
| 475 | - 0AF7A88F182AA9F6003645C4 /* InfoPlist.strings */ = { | ||
| 476 | - isa = PBXVariantGroup; | ||
| 477 | - children = ( | ||
| 478 | - 0AF7A890182AA9F6003645C4 /* en */, | ||
| 479 | - ); | ||
| 480 | - name = InfoPlist.strings; | ||
| 481 | - sourceTree = "<group>"; | ||
| 482 | - }; | ||
| 483 | /* End PBXVariantGroup section */ | 494 | /* End PBXVariantGroup section */ |
| 484 | 495 | ||
| 485 | /* Begin XCBuildConfiguration section */ | 496 | /* Begin XCBuildConfiguration section */ |
| @@ -583,45 +594,54 @@ | @@ -583,45 +594,54 @@ | ||
| 583 | }; | 594 | }; |
| 584 | name = Release; | 595 | name = Release; |
| 585 | }; | 596 | }; |
| 586 | - 0AF7A89A182AA9F6003645C4 /* Debug */ = { | 597 | + 6E984E5A1AE2AF2D00E817A0 /* Debug */ = { |
| 587 | isa = XCBuildConfiguration; | 598 | isa = XCBuildConfiguration; |
| 588 | - baseConfigurationReference = EFE4F6360943ED4001072124 /* Pods.debug.xcconfig */; | 599 | + baseConfigurationReference = FB2FFF68E5C9B426137EDD03 /* Pods-PNChartTests.debug.xcconfig */; |
| 589 | buildSettings = { | 600 | buildSettings = { |
| 590 | - BUNDLE_LOADER = "$(BUILT_PRODUCTS_DIR)/PNChartDemo.app/PNChartDemo"; | 601 | + BUNDLE_LOADER = "$(TEST_HOST)"; |
| 602 | + CLANG_WARN_UNREACHABLE_CODE = YES; | ||
| 603 | + DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; | ||
| 604 | + ENABLE_STRICT_OBJC_MSGSEND = YES; | ||
| 591 | FRAMEWORK_SEARCH_PATHS = ( | 605 | FRAMEWORK_SEARCH_PATHS = ( |
| 592 | "$(SDKROOT)/Developer/Library/Frameworks", | 606 | "$(SDKROOT)/Developer/Library/Frameworks", |
| 593 | "$(inherited)", | 607 | "$(inherited)", |
| 594 | - "$(DEVELOPER_FRAMEWORKS_DIR)", | ||
| 595 | ); | 608 | ); |
| 596 | - GCC_PRECOMPILE_PREFIX_HEADER = YES; | 609 | + GCC_NO_COMMON_BLOCKS = YES; |
| 597 | - GCC_PREFIX_HEADER = "PNChartDemo/PNChartDemo-Prefix.pch"; | ||
| 598 | GCC_PREPROCESSOR_DEFINITIONS = ( | 610 | GCC_PREPROCESSOR_DEFINITIONS = ( |
| 599 | "DEBUG=1", | 611 | "DEBUG=1", |
| 600 | "$(inherited)", | 612 | "$(inherited)", |
| 601 | ); | 613 | ); |
| 602 | - INFOPLIST_FILE = "PNChartDemoTests/PNChartDemoTests-Info.plist"; | 614 | + GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; |
| 615 | + INFOPLIST_FILE = PNChartTests/Info.plist; | ||
| 616 | + IPHONEOS_DEPLOYMENT_TARGET = 8.3; | ||
| 617 | + LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; | ||
| 618 | + MTL_ENABLE_DEBUG_INFO = YES; | ||
| 603 | PRODUCT_NAME = "$(TARGET_NAME)"; | 619 | PRODUCT_NAME = "$(TARGET_NAME)"; |
| 604 | - TEST_HOST = "$(BUNDLE_LOADER)"; | 620 | + TEST_HOST = "$(BUILT_PRODUCTS_DIR)/PNChartDemo.app/PNChartDemo"; |
| 605 | - WRAPPER_EXTENSION = xctest; | ||
| 606 | }; | 621 | }; |
| 607 | name = Debug; | 622 | name = Debug; |
| 608 | }; | 623 | }; |
| 609 | - 0AF7A89B182AA9F6003645C4 /* Release */ = { | 624 | + 6E984E5B1AE2AF2D00E817A0 /* Release */ = { |
| 610 | isa = XCBuildConfiguration; | 625 | isa = XCBuildConfiguration; |
| 611 | - baseConfigurationReference = 2980CA20C29DC029B2D0B926 /* Pods.release.xcconfig */; | 626 | + baseConfigurationReference = 4D54B84CA1CAEB2BBBC9DCFA /* Pods-PNChartTests.release.xcconfig */; |
| 612 | buildSettings = { | 627 | buildSettings = { |
| 613 | - BUNDLE_LOADER = "$(BUILT_PRODUCTS_DIR)/PNChartDemo.app/PNChartDemo"; | 628 | + BUNDLE_LOADER = "$(TEST_HOST)"; |
| 629 | + CLANG_WARN_UNREACHABLE_CODE = YES; | ||
| 630 | + COPY_PHASE_STRIP = NO; | ||
| 631 | + DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; | ||
| 632 | + ENABLE_STRICT_OBJC_MSGSEND = YES; | ||
| 614 | FRAMEWORK_SEARCH_PATHS = ( | 633 | FRAMEWORK_SEARCH_PATHS = ( |
| 615 | "$(SDKROOT)/Developer/Library/Frameworks", | 634 | "$(SDKROOT)/Developer/Library/Frameworks", |
| 616 | "$(inherited)", | 635 | "$(inherited)", |
| 617 | - "$(DEVELOPER_FRAMEWORKS_DIR)", | ||
| 618 | ); | 636 | ); |
| 619 | - GCC_PRECOMPILE_PREFIX_HEADER = YES; | 637 | + GCC_NO_COMMON_BLOCKS = YES; |
| 620 | - GCC_PREFIX_HEADER = "PNChartDemo/PNChartDemo-Prefix.pch"; | 638 | + GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; |
| 621 | - INFOPLIST_FILE = "PNChartDemoTests/PNChartDemoTests-Info.plist"; | 639 | + INFOPLIST_FILE = PNChartTests/Info.plist; |
| 640 | + IPHONEOS_DEPLOYMENT_TARGET = 8.3; | ||
| 641 | + LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; | ||
| 642 | + MTL_ENABLE_DEBUG_INFO = NO; | ||
| 622 | PRODUCT_NAME = "$(TARGET_NAME)"; | 643 | PRODUCT_NAME = "$(TARGET_NAME)"; |
| 623 | - TEST_HOST = "$(BUNDLE_LOADER)"; | 644 | + TEST_HOST = "$(BUILT_PRODUCTS_DIR)/PNChartDemo.app/PNChartDemo"; |
| 624 | - WRAPPER_EXTENSION = xctest; | ||
| 625 | }; | 645 | }; |
| 626 | name = Release; | 646 | name = Release; |
| 627 | }; | 647 | }; |
| @@ -646,11 +666,11 @@ | @@ -646,11 +666,11 @@ | ||
| 646 | defaultConfigurationIsVisible = 0; | 666 | defaultConfigurationIsVisible = 0; |
| 647 | defaultConfigurationName = Release; | 667 | defaultConfigurationName = Release; |
| 648 | }; | 668 | }; |
| 649 | - 0AF7A899182AA9F6003645C4 /* Build configuration list for PBXNativeTarget "PNChartDemoTests" */ = { | 669 | + 6E984E591AE2AF2D00E817A0 /* Build configuration list for PBXNativeTarget "PNChartTests" */ = { |
| 650 | isa = XCConfigurationList; | 670 | isa = XCConfigurationList; |
| 651 | buildConfigurations = ( | 671 | buildConfigurations = ( |
| 652 | - 0AF7A89A182AA9F6003645C4 /* Debug */, | 672 | + 6E984E5A1AE2AF2D00E817A0 /* Debug */, |
| 653 | - 0AF7A89B182AA9F6003645C4 /* Release */, | 673 | + 6E984E5B1AE2AF2D00E817A0 /* Release */, |
| 654 | ); | 674 | ); |
| 655 | defaultConfigurationIsVisible = 0; | 675 | defaultConfigurationIsVisible = 0; |
| 656 | defaultConfigurationName = Release; | 676 | defaultConfigurationName = Release; |
PNChartDemoTests/PNChartDemoTests.m
deleted
100644 → 0
| 1 | -// | ||
| 2 | -// PNChartDemoTests.m | ||
| 3 | -// PNChartDemoTests | ||
| 4 | -// | ||
| 5 | -// Created by kevin on 11/7/13. | ||
| 6 | -// Copyright (c) 2013年 kevinzhow. All rights reserved. | ||
| 7 | -// | ||
| 8 | - | ||
| 9 | -#import <XCTest/XCTest.h> | ||
| 10 | - | ||
| 11 | -@interface PNChartDemoTests : XCTestCase | ||
| 12 | - | ||
| 13 | -@end | ||
| 14 | - | ||
| 15 | -@implementation PNChartDemoTests | ||
| 16 | - | ||
| 17 | -- (void)setUp | ||
| 18 | -{ | ||
| 19 | - [super setUp]; | ||
| 20 | - // Put setup code here. This method is called before the invocation of each test method in the class. | ||
| 21 | -} | ||
| 22 | - | ||
| 23 | -- (void)tearDown | ||
| 24 | -{ | ||
| 25 | - // Put teardown code here. This method is called after the invocation of each test method in the class. | ||
| 26 | - [super tearDown]; | ||
| 27 | -} | ||
| 28 | - | ||
| 29 | -- (void)testExample | ||
| 30 | -{ | ||
| 31 | - XCTFail(@"No implementation for \"%s\"", __PRETTY_FUNCTION__); | ||
| 32 | -} | ||
| 33 | - | ||
| 34 | -@end |
| @@ -5,11 +5,13 @@ | @@ -5,11 +5,13 @@ | ||
| 5 | <key>CFBundleDevelopmentRegion</key> | 5 | <key>CFBundleDevelopmentRegion</key> |
| 6 | <string>en</string> | 6 | <string>en</string> |
| 7 | <key>CFBundleExecutable</key> | 7 | <key>CFBundleExecutable</key> |
| 8 | - <string>${EXECUTABLE_NAME}</string> | 8 | + <string>$(EXECUTABLE_NAME)</string> |
| 9 | <key>CFBundleIdentifier</key> | 9 | <key>CFBundleIdentifier</key> |
| 10 | - <string>Piner.${PRODUCT_NAME:rfc1034identifier}</string> | 10 | + <string>vila.$(PRODUCT_NAME:rfc1034identifier)</string> |
| 11 | <key>CFBundleInfoDictionaryVersion</key> | 11 | <key>CFBundleInfoDictionaryVersion</key> |
| 12 | <string>6.0</string> | 12 | <string>6.0</string> |
| 13 | + <key>CFBundleName</key> | ||
| 14 | + <string>$(PRODUCT_NAME)</string> | ||
| 13 | <key>CFBundlePackageType</key> | 15 | <key>CFBundlePackageType</key> |
| 14 | <string>BNDL</string> | 16 | <string>BNDL</string> |
| 15 | <key>CFBundleShortVersionString</key> | 17 | <key>CFBundleShortVersionString</key> |
PNChartTests/PNBarChartTests.m
0 → 100644
| 1 | +// | ||
| 2 | +// PNBarChartTests.m | ||
| 3 | +// PNChartDemo | ||
| 4 | +// | ||
| 5 | +// Created by Viktoras Laukevičius on 18/04/15. | ||
| 6 | +// Copyright (c) 2015 kevinzhow. All rights reserved. | ||
| 7 | +// | ||
| 8 | + | ||
| 9 | +#import <UIKit/UIKit.h> | ||
| 10 | +#import <XCTest/XCTest.h> | ||
| 11 | +#define EXP_SHORTHAND | ||
| 12 | +#import <Expecta.h> | ||
| 13 | +#import "PNBarChart.h" | ||
| 14 | +#import "PNBar.h" | ||
| 15 | + | ||
| 16 | +@interface PNBarChartTests : XCTestCase | ||
| 17 | + | ||
| 18 | +@property (nonatomic, strong) PNBarChart *barChart; | ||
| 19 | + | ||
| 20 | +@end | ||
| 21 | + | ||
| 22 | +@implementation PNBarChartTests | ||
| 23 | + | ||
| 24 | +- (void)setUp | ||
| 25 | +{ | ||
| 26 | + [super setUp]; | ||
| 27 | + CGRect frame = CGRectMake(10, 20, 320, 200); | ||
| 28 | + self.barChart = [[PNBarChart alloc] initWithFrame:frame]; | ||
| 29 | +} | ||
| 30 | + | ||
| 31 | +- (void)tearDown | ||
| 32 | +{ | ||
| 33 | + self.barChart = nil; | ||
| 34 | + [super tearDown]; | ||
| 35 | +} | ||
| 36 | + | ||
| 37 | +- (void)testXAxisLabels | ||
| 38 | +{ | ||
| 39 | + self.barChart.xLabels = @[@"TOne", @"TTwo", @"TThree", @"TFour"]; | ||
| 40 | + expect(self.barChart.subviews.count).equal(4); | ||
| 41 | + for (NSUInteger idx = 0; idx < 4; idx++) { | ||
| 42 | + UILabel *xAxisLabel = self.barChart.subviews[idx]; | ||
| 43 | + expect(xAxisLabel.text).to.equal(self.barChart.xLabels[idx]); | ||
| 44 | + } | ||
| 45 | +} | ||
| 46 | + | ||
| 47 | +- (void)testYAxisLabels | ||
| 48 | +{ | ||
| 49 | + self.barChart.yLabelFormatter = ^(CGFloat value) { | ||
| 50 | + return [NSString stringWithFormat:@"Value %zi", (NSUInteger)value]; | ||
| 51 | + }; | ||
| 52 | + self.barChart.yValues = @[@1, @10, @5, @4, @7]; | ||
| 53 | + NSArray *expectedResults = @[@10, @8, @6, @5, @3, @1]; | ||
| 54 | + for (NSUInteger idx = 0; idx < 4; idx++) { | ||
| 55 | + UILabel *yAxisLabel = self.barChart.subviews[idx]; | ||
| 56 | + expect(yAxisLabel.text).to.equal([NSString stringWithFormat:@"Value %@", expectedResults[idx]]); | ||
| 57 | + } | ||
| 58 | +} | ||
| 59 | + | ||
| 60 | +- (void)testLabelsVisibility | ||
| 61 | +{ | ||
| 62 | + self.barChart.showLabel = NO; | ||
| 63 | + self.barChart.yLabelFormatter = ^(CGFloat value) { | ||
| 64 | + return [NSString stringWithFormat:@"Value %zi", (NSUInteger)value]; | ||
| 65 | + }; | ||
| 66 | + self.barChart.xLabels = @[@"TOne", @"TTwo", @"TThree", @"TFour"]; | ||
| 67 | + self.barChart.yValues = @[@1, @10, @5, @4, @7]; | ||
| 68 | + expect(self.barChart.subviews.count).to.equal(0); | ||
| 69 | +} | ||
| 70 | + | ||
| 71 | +- (void)testChartBars | ||
| 72 | +{ | ||
| 73 | + self.barChart.barBackgroundColor = [UIColor greenColor]; | ||
| 74 | + self.barChart.yLabelFormatter = ^(CGFloat value) { | ||
| 75 | + return [NSString stringWithFormat:@"Value %zi", (NSUInteger)value]; | ||
| 76 | + }; | ||
| 77 | + self.barChart.yValues = @[@1, @2, @3]; | ||
| 78 | + NSArray *strokeColour = @[[UIColor greenColor], [UIColor redColor], [UIColor purpleColor]]; | ||
| 79 | + self.barChart.strokeColors = strokeColour; | ||
| 80 | + [self.barChart strokeChart]; | ||
| 81 | + for (NSUInteger idx = 0; idx < self.barChart.bars.count; idx++) { | ||
| 82 | + PNBar *bar = self.barChart.bars[idx]; | ||
| 83 | + expect(bar.backgroundColor).to.equal([UIColor greenColor]); | ||
| 84 | + expect(bar.barColor).to.equal(strokeColour[idx]); | ||
| 85 | + } | ||
| 86 | +} | ||
| 87 | + | ||
| 88 | +- (void)testStrokeColor | ||
| 89 | +{ | ||
| 90 | + self.barChart.yLabelFormatter = ^(CGFloat value) { | ||
| 91 | + return [NSString stringWithFormat:@"Value %zi", (NSUInteger)value]; | ||
| 92 | + }; | ||
| 93 | + self.barChart.yValues = @[@1, @2, @3]; | ||
| 94 | + self.barChart.strokeColor = [UIColor magentaColor]; | ||
| 95 | + self.barChart.strokeColors = @[[UIColor greenColor], [UIColor redColor]]; | ||
| 96 | + [self.barChart strokeChart]; | ||
| 97 | + for (NSUInteger idx = 0; idx < self.barChart.bars.count; idx++) { | ||
| 98 | + PNBar *bar = self.barChart.bars[idx]; | ||
| 99 | + expect(bar.barColor).equal(self.barChart.strokeColor); | ||
| 100 | + } | ||
| 101 | +} | ||
| 102 | + | ||
| 103 | +- (void)testMaxValue | ||
| 104 | +{ | ||
| 105 | + self.barChart.yLabelFormatter = ^(CGFloat value) { | ||
| 106 | + return [NSString stringWithFormat:@"Value %zi", (NSUInteger)value]; | ||
| 107 | + }; | ||
| 108 | + self.barChart.yMaxValue = 8; | ||
| 109 | + self.barChart.yValues = @[@10, @8, @7, @3]; | ||
| 110 | + NSArray *expectedResults = @[@8, @6, @4, @2]; | ||
| 111 | + for (NSUInteger idx = 0; idx < expectedResults.count; idx++) { | ||
| 112 | + UILabel *yAxisLabel = self.barChart.subviews[idx]; | ||
| 113 | + expect(yAxisLabel.text).to.equal([NSString stringWithFormat:@"Value %@", expectedResults[idx]]); | ||
| 114 | + } | ||
| 115 | +} | ||
| 116 | + | ||
| 117 | +@end |
| @@ -2,3 +2,7 @@ source 'https://github.com/CocoaPods/Specs.git' | @@ -2,3 +2,7 @@ source 'https://github.com/CocoaPods/Specs.git' | ||
| 2 | 2 | ||
| 3 | platform :ios, '6.0' | 3 | platform :ios, '6.0' |
| 4 | pod 'UICountingLabel','~> 1.2.0' | 4 | pod 'UICountingLabel','~> 1.2.0' |
| 5 | + | ||
| 6 | +target :PNChartTests do | ||
| 7 | + pod 'Expecta' | ||
| 8 | +end |
| 1 | PODS: | 1 | PODS: |
| 2 | + - Expecta (0.3.2) | ||
| 2 | - UICountingLabel (1.2.0) | 3 | - UICountingLabel (1.2.0) |
| 3 | 4 | ||
| 4 | DEPENDENCIES: | 5 | DEPENDENCIES: |
| 6 | + - Expecta | ||
| 5 | - UICountingLabel (~> 1.2.0) | 7 | - UICountingLabel (~> 1.2.0) |
| 6 | 8 | ||
| 7 | SPEC CHECKSUMS: | 9 | SPEC CHECKSUMS: |
| 8 | - UICountingLabel: a55223a9357af71f833af76665164d2e3f3654b5 | 10 | + Expecta: 8c507baf13211207b1e9d0a741480600e6b4ed15 |
| 11 | + UICountingLabel: 1db4e7d023e1762171eb226d6dff47a7a84f27aa | ||
| 9 | 12 | ||
| 10 | -COCOAPODS: 0.35.0 | 13 | +COCOAPODS: 0.36.4 |
-
Please register or login to post a comment