Initial pass with diffing fixtures

This commit is contained in:
Adlai Holler
2017-06-30 11:33:18 -07:00
committed by Adlai Holler
parent 58641a85ab
commit 3aee5adc7d
21 changed files with 1191 additions and 2 deletions
@@ -0,0 +1,585 @@
// !$*UTF8*$!
{
archiveVersion = 1;
classes = {
};
objectVersion = 46;
objects = {
/* Begin PBXBuildFile section */
5C2B0D08AE353B01DD8AFB44 /* libPods-ASDKDiffingTests.a in Frameworks */ = {isa = PBXBuildFile; fileRef = D351EEAC3F60D3F2B4C6A1E5 /* libPods-ASDKDiffingTests.a */; };
CC9E981A1EF9F46A009D37C5 /* ASDKDiffingTests.m in Sources */ = {isa = PBXBuildFile; fileRef = CC9E98191EF9F46A009D37C5 /* ASDKDiffingTests.m */; };
CC9E98281EF9F6A4009D37C5 /* ASDisplayNode+OCMock.m in Sources */ = {isa = PBXBuildFile; fileRef = CC9E98201EF9F6A4009D37C5 /* ASDisplayNode+OCMock.m */; };
CC9E98291EF9F6A4009D37C5 /* ASTestCase.m in Sources */ = {isa = PBXBuildFile; fileRef = CC9E98221EF9F6A4009D37C5 /* ASTestCase.m */; };
CC9E982A1EF9F6A4009D37C5 /* NSInvocation+ASTestHelpers.m in Sources */ = {isa = PBXBuildFile; fileRef = CC9E98251EF9F6A4009D37C5 /* NSInvocation+ASTestHelpers.m */; };
CC9E982B1EF9F6A4009D37C5 /* OCMockObject+ASAdditions.m in Sources */ = {isa = PBXBuildFile; fileRef = CC9E98271EF9F6A4009D37C5 /* OCMockObject+ASAdditions.m */; };
CC9E982E1EFA0532009D37C5 /* ASDKDiffingFixtures.m in Sources */ = {isa = PBXBuildFile; fileRef = CC9E982D1EFA0532009D37C5 /* ASDKDiffingFixtures.m */; };
CC9E983B1EFA267E009D37C5 /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = CC9E983A1EFA267E009D37C5 /* main.m */; };
CC9E983E1EFA267E009D37C5 /* AppDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = CC9E983D1EFA267E009D37C5 /* AppDelegate.m */; };
/* End PBXBuildFile section */
/* Begin PBXContainerItemProxy section */
CC9E984E1EFA2683009D37C5 /* PBXContainerItemProxy */ = {
isa = PBXContainerItemProxy;
containerPortal = CC9E980C1EF9F44F009D37C5 /* Project object */;
proxyType = 1;
remoteGlobalIDString = CC9E98361EFA267E009D37C5;
remoteInfo = DiffingTestHost;
};
/* End PBXContainerItemProxy section */
/* Begin PBXFileReference section */
0C82DB0B426A86BE680F06B8 /* Pods-ASDKDiffingTests.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-ASDKDiffingTests.debug.xcconfig"; path = "Pods/Target Support Files/Pods-ASDKDiffingTests/Pods-ASDKDiffingTests.debug.xcconfig"; sourceTree = "<group>"; };
92E6E53B4239101982E9E8A6 /* Pods-ASDKDiffingTests.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-ASDKDiffingTests.release.xcconfig"; path = "Pods/Target Support Files/Pods-ASDKDiffingTests/Pods-ASDKDiffingTests.release.xcconfig"; sourceTree = "<group>"; };
CC9E98161EF9F46A009D37C5 /* ASDKDiffingTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = ASDKDiffingTests.xctest; sourceTree = BUILT_PRODUCTS_DIR; };
CC9E98191EF9F46A009D37C5 /* ASDKDiffingTests.m */ = {isa = PBXFileReference; indentWidth = 2; lastKnownFileType = sourcecode.c.objc; path = ASDKDiffingTests.m; sourceTree = "<group>"; tabWidth = 2; usesTabs = 0; };
CC9E981B1EF9F46A009D37C5 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = "<group>"; };
CC9E98201EF9F6A4009D37C5 /* ASDisplayNode+OCMock.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = "ASDisplayNode+OCMock.m"; sourceTree = "<group>"; };
CC9E98211EF9F6A4009D37C5 /* ASTestCase.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = ASTestCase.h; sourceTree = "<group>"; };
CC9E98221EF9F6A4009D37C5 /* ASTestCase.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = ASTestCase.m; sourceTree = "<group>"; };
CC9E98231EF9F6A4009D37C5 /* ASXCTExtensions.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = ASXCTExtensions.h; sourceTree = "<group>"; };
CC9E98241EF9F6A4009D37C5 /* NSInvocation+ASTestHelpers.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = "NSInvocation+ASTestHelpers.h"; sourceTree = "<group>"; };
CC9E98251EF9F6A4009D37C5 /* NSInvocation+ASTestHelpers.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = "NSInvocation+ASTestHelpers.m"; sourceTree = "<group>"; };
CC9E98261EF9F6A4009D37C5 /* OCMockObject+ASAdditions.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = "OCMockObject+ASAdditions.h"; sourceTree = "<group>"; };
CC9E98271EF9F6A4009D37C5 /* OCMockObject+ASAdditions.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = "OCMockObject+ASAdditions.m"; sourceTree = "<group>"; };
CC9E982C1EFA0532009D37C5 /* ASDKDiffingFixtures.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = ASDKDiffingFixtures.h; sourceTree = "<group>"; };
CC9E982D1EFA0532009D37C5 /* ASDKDiffingFixtures.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = ASDKDiffingFixtures.m; sourceTree = "<group>"; };
CC9E98371EFA267E009D37C5 /* DiffingTestHost.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = DiffingTestHost.app; sourceTree = BUILT_PRODUCTS_DIR; };
CC9E983A1EFA267E009D37C5 /* main.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = main.m; sourceTree = "<group>"; };
CC9E983C1EFA267E009D37C5 /* AppDelegate.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = AppDelegate.h; sourceTree = "<group>"; };
CC9E983D1EFA267E009D37C5 /* AppDelegate.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = AppDelegate.m; sourceTree = "<group>"; };
CC9E984A1EFA267E009D37C5 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = "<group>"; };
D351EEAC3F60D3F2B4C6A1E5 /* libPods-ASDKDiffingTests.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = "libPods-ASDKDiffingTests.a"; sourceTree = BUILT_PRODUCTS_DIR; };
/* End PBXFileReference section */
/* Begin PBXFrameworksBuildPhase section */
CC9E98131EF9F46A009D37C5 /* Frameworks */ = {
isa = PBXFrameworksBuildPhase;
buildActionMask = 2147483647;
files = (
5C2B0D08AE353B01DD8AFB44 /* libPods-ASDKDiffingTests.a in Frameworks */,
);
runOnlyForDeploymentPostprocessing = 0;
};
CC9E98341EFA267E009D37C5 /* Frameworks */ = {
isa = PBXFrameworksBuildPhase;
buildActionMask = 2147483647;
files = (
);
runOnlyForDeploymentPostprocessing = 0;
};
/* End PBXFrameworksBuildPhase section */
/* Begin PBXGroup section */
02A24BFB52264A6AAFC80F7B /* Frameworks */ = {
isa = PBXGroup;
children = (
D351EEAC3F60D3F2B4C6A1E5 /* libPods-ASDKDiffingTests.a */,
);
name = Frameworks;
sourceTree = "<group>";
};
BCE64E0F48130D23C90FA79C /* Pods */ = {
isa = PBXGroup;
children = (
0C82DB0B426A86BE680F06B8 /* Pods-ASDKDiffingTests.debug.xcconfig */,
92E6E53B4239101982E9E8A6 /* Pods-ASDKDiffingTests.release.xcconfig */,
);
name = Pods;
sourceTree = "<group>";
};
CC9E980B1EF9F44F009D37C5 = {
isa = PBXGroup;
children = (
CC9E98181EF9F46A009D37C5 /* ASDKDiffingTests */,
CC9E98381EFA267E009D37C5 /* DiffingTestHost */,
CC9E98171EF9F46A009D37C5 /* Products */,
BCE64E0F48130D23C90FA79C /* Pods */,
02A24BFB52264A6AAFC80F7B /* Frameworks */,
);
indentWidth = 2;
sourceTree = "<group>";
tabWidth = 2;
usesTabs = 0;
};
CC9E98171EF9F46A009D37C5 /* Products */ = {
isa = PBXGroup;
children = (
CC9E98161EF9F46A009D37C5 /* ASDKDiffingTests.xctest */,
CC9E98371EFA267E009D37C5 /* DiffingTestHost.app */,
);
name = Products;
sourceTree = "<group>";
};
CC9E98181EF9F46A009D37C5 /* ASDKDiffingTests */ = {
isa = PBXGroup;
children = (
CC9E981F1EF9F6A4009D37C5 /* Common */,
CC9E982C1EFA0532009D37C5 /* ASDKDiffingFixtures.h */,
CC9E982D1EFA0532009D37C5 /* ASDKDiffingFixtures.m */,
CC9E98191EF9F46A009D37C5 /* ASDKDiffingTests.m */,
CC9E981B1EF9F46A009D37C5 /* Info.plist */,
);
path = ASDKDiffingTests;
sourceTree = "<group>";
};
CC9E981F1EF9F6A4009D37C5 /* Common */ = {
isa = PBXGroup;
children = (
CC9E98201EF9F6A4009D37C5 /* ASDisplayNode+OCMock.m */,
CC9E98211EF9F6A4009D37C5 /* ASTestCase.h */,
CC9E98221EF9F6A4009D37C5 /* ASTestCase.m */,
CC9E98231EF9F6A4009D37C5 /* ASXCTExtensions.h */,
CC9E98241EF9F6A4009D37C5 /* NSInvocation+ASTestHelpers.h */,
CC9E98251EF9F6A4009D37C5 /* NSInvocation+ASTestHelpers.m */,
CC9E98261EF9F6A4009D37C5 /* OCMockObject+ASAdditions.h */,
CC9E98271EF9F6A4009D37C5 /* OCMockObject+ASAdditions.m */,
);
name = Common;
path = ../../../Tests/Common;
sourceTree = "<group>";
};
CC9E98381EFA267E009D37C5 /* DiffingTestHost */ = {
isa = PBXGroup;
children = (
CC9E983C1EFA267E009D37C5 /* AppDelegate.h */,
CC9E983D1EFA267E009D37C5 /* AppDelegate.m */,
CC9E984A1EFA267E009D37C5 /* Info.plist */,
CC9E98391EFA267E009D37C5 /* Supporting Files */,
);
path = DiffingTestHost;
sourceTree = "<group>";
};
CC9E98391EFA267E009D37C5 /* Supporting Files */ = {
isa = PBXGroup;
children = (
CC9E983A1EFA267E009D37C5 /* main.m */,
);
name = "Supporting Files";
sourceTree = "<group>";
};
/* End PBXGroup section */
/* Begin PBXNativeTarget section */
CC9E98151EF9F46A009D37C5 /* ASDKDiffingTests */ = {
isa = PBXNativeTarget;
buildConfigurationList = CC9E981C1EF9F46A009D37C5 /* Build configuration list for PBXNativeTarget "ASDKDiffingTests" */;
buildPhases = (
8F2972FB3CBA30856D1BE3D3 /* [CP] Check Pods Manifest.lock */,
CC9E98121EF9F46A009D37C5 /* Sources */,
CC9E98131EF9F46A009D37C5 /* Frameworks */,
CC9E98141EF9F46A009D37C5 /* Resources */,
2B07374431E476290B0BAD46 /* [CP] Embed Pods Frameworks */,
546706FC16C480BF4944D658 /* [CP] Copy Pods Resources */,
);
buildRules = (
);
dependencies = (
CC9E984F1EFA2683009D37C5 /* PBXTargetDependency */,
);
name = ASDKDiffingTests;
productName = ASDKDiffingTests;
productReference = CC9E98161EF9F46A009D37C5 /* ASDKDiffingTests.xctest */;
productType = "com.apple.product-type.bundle.unit-test";
};
CC9E98361EFA267E009D37C5 /* DiffingTestHost */ = {
isa = PBXNativeTarget;
buildConfigurationList = CC9E984B1EFA267E009D37C5 /* Build configuration list for PBXNativeTarget "DiffingTestHost" */;
buildPhases = (
CC9E98331EFA267E009D37C5 /* Sources */,
CC9E98341EFA267E009D37C5 /* Frameworks */,
CC9E98351EFA267E009D37C5 /* Resources */,
);
buildRules = (
);
dependencies = (
);
name = DiffingTestHost;
productName = DiffingTestHost;
productReference = CC9E98371EFA267E009D37C5 /* DiffingTestHost.app */;
productType = "com.apple.product-type.application";
};
/* End PBXNativeTarget section */
/* Begin PBXProject section */
CC9E980C1EF9F44F009D37C5 /* Project object */ = {
isa = PBXProject;
attributes = {
LastUpgradeCheck = 0830;
TargetAttributes = {
CC9E98151EF9F46A009D37C5 = {
CreatedOnToolsVersion = 8.3.3;
ProvisioningStyle = Automatic;
TestTargetID = CC9E98361EFA267E009D37C5;
};
CC9E98361EFA267E009D37C5 = {
CreatedOnToolsVersion = 8.3.3;
ProvisioningStyle = Automatic;
};
};
};
buildConfigurationList = CC9E980F1EF9F44F009D37C5 /* Build configuration list for PBXProject "ASDKDiffing" */;
compatibilityVersion = "Xcode 3.2";
developmentRegion = English;
hasScannedForEncodings = 0;
knownRegions = (
en,
Base,
);
mainGroup = CC9E980B1EF9F44F009D37C5;
productRefGroup = CC9E98171EF9F46A009D37C5 /* Products */;
projectDirPath = "";
projectRoot = "";
targets = (
CC9E98151EF9F46A009D37C5 /* ASDKDiffingTests */,
CC9E98361EFA267E009D37C5 /* DiffingTestHost */,
);
};
/* End PBXProject section */
/* Begin PBXResourcesBuildPhase section */
CC9E98141EF9F46A009D37C5 /* Resources */ = {
isa = PBXResourcesBuildPhase;
buildActionMask = 2147483647;
files = (
);
runOnlyForDeploymentPostprocessing = 0;
};
CC9E98351EFA267E009D37C5 /* Resources */ = {
isa = PBXResourcesBuildPhase;
buildActionMask = 2147483647;
files = (
);
runOnlyForDeploymentPostprocessing = 0;
};
/* End PBXResourcesBuildPhase section */
/* Begin PBXShellScriptBuildPhase section */
2B07374431E476290B0BAD46 /* [CP] Embed Pods Frameworks */ = {
isa = PBXShellScriptBuildPhase;
buildActionMask = 2147483647;
files = (
);
inputPaths = (
);
name = "[CP] Embed Pods Frameworks";
outputPaths = (
);
runOnlyForDeploymentPostprocessing = 0;
shellPath = /bin/sh;
shellScript = "\"${SRCROOT}/Pods/Target Support Files/Pods-ASDKDiffingTests/Pods-ASDKDiffingTests-frameworks.sh\"\n";
showEnvVarsInLog = 0;
};
546706FC16C480BF4944D658 /* [CP] Copy Pods Resources */ = {
isa = PBXShellScriptBuildPhase;
buildActionMask = 2147483647;
files = (
);
inputPaths = (
);
name = "[CP] Copy Pods Resources";
outputPaths = (
);
runOnlyForDeploymentPostprocessing = 0;
shellPath = /bin/sh;
shellScript = "\"${SRCROOT}/Pods/Target Support Files/Pods-ASDKDiffingTests/Pods-ASDKDiffingTests-resources.sh\"\n";
showEnvVarsInLog = 0;
};
8F2972FB3CBA30856D1BE3D3 /* [CP] Check Pods Manifest.lock */ = {
isa = PBXShellScriptBuildPhase;
buildActionMask = 2147483647;
files = (
);
inputPaths = (
);
name = "[CP] Check Pods Manifest.lock";
outputPaths = (
);
runOnlyForDeploymentPostprocessing = 0;
shellPath = /bin/sh;
shellScript = "diff \"${PODS_PODFILE_DIR_PATH}/Podfile.lock\" \"${PODS_ROOT}/Manifest.lock\" > /dev/null\nif [ $? != 0 ] ; then\n # print error to STDERR\n echo \"error: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.\" >&2\n exit 1\nfi\n";
showEnvVarsInLog = 0;
};
/* End PBXShellScriptBuildPhase section */
/* Begin PBXSourcesBuildPhase section */
CC9E98121EF9F46A009D37C5 /* Sources */ = {
isa = PBXSourcesBuildPhase;
buildActionMask = 2147483647;
files = (
CC9E982A1EF9F6A4009D37C5 /* NSInvocation+ASTestHelpers.m in Sources */,
CC9E98281EF9F6A4009D37C5 /* ASDisplayNode+OCMock.m in Sources */,
CC9E982B1EF9F6A4009D37C5 /* OCMockObject+ASAdditions.m in Sources */,
CC9E981A1EF9F46A009D37C5 /* ASDKDiffingTests.m in Sources */,
CC9E982E1EFA0532009D37C5 /* ASDKDiffingFixtures.m in Sources */,
CC9E98291EF9F6A4009D37C5 /* ASTestCase.m in Sources */,
);
runOnlyForDeploymentPostprocessing = 0;
};
CC9E98331EFA267E009D37C5 /* Sources */ = {
isa = PBXSourcesBuildPhase;
buildActionMask = 2147483647;
files = (
CC9E983E1EFA267E009D37C5 /* AppDelegate.m in Sources */,
CC9E983B1EFA267E009D37C5 /* main.m in Sources */,
);
runOnlyForDeploymentPostprocessing = 0;
};
/* End PBXSourcesBuildPhase section */
/* Begin PBXTargetDependency section */
CC9E984F1EFA2683009D37C5 /* PBXTargetDependency */ = {
isa = PBXTargetDependency;
target = CC9E98361EFA267E009D37C5 /* DiffingTestHost */;
targetProxy = CC9E984E1EFA2683009D37C5 /* PBXContainerItemProxy */;
};
/* End PBXTargetDependency section */
/* Begin XCBuildConfiguration section */
CC9E98101EF9F44F009D37C5 /* Debug */ = {
isa = XCBuildConfiguration;
buildSettings = {
};
name = Debug;
};
CC9E98111EF9F44F009D37C5 /* Release */ = {
isa = XCBuildConfiguration;
buildSettings = {
};
name = Release;
};
CC9E981D1EF9F46A009D37C5 /* Debug */ = {
isa = XCBuildConfiguration;
baseConfigurationReference = 0C82DB0B426A86BE680F06B8 /* Pods-ASDKDiffingTests.debug.xcconfig */;
buildSettings = {
ALWAYS_SEARCH_USER_PATHS = NO;
CLANG_ANALYZER_NONNULL = YES;
CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE;
CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
CLANG_CXX_LIBRARY = "libc++";
CLANG_ENABLE_MODULES = YES;
CLANG_ENABLE_OBJC_ARC = YES;
CLANG_WARN_BOOL_CONVERSION = YES;
CLANG_WARN_CONSTANT_CONVERSION = YES;
CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
CLANG_WARN_DOCUMENTATION_COMMENTS = YES;
CLANG_WARN_EMPTY_BODY = YES;
CLANG_WARN_ENUM_CONVERSION = YES;
CLANG_WARN_INFINITE_RECURSION = YES;
CLANG_WARN_INT_CONVERSION = YES;
CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
CLANG_WARN_SUSPICIOUS_MOVE = YES;
CLANG_WARN_UNREACHABLE_CODE = YES;
CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
COPY_PHASE_STRIP = NO;
DEBUG_INFORMATION_FORMAT = dwarf;
ENABLE_STRICT_OBJC_MSGSEND = YES;
ENABLE_TESTABILITY = YES;
GCC_C_LANGUAGE_STANDARD = gnu99;
GCC_DYNAMIC_NO_PIC = NO;
GCC_NO_COMMON_BLOCKS = YES;
GCC_OPTIMIZATION_LEVEL = 0;
GCC_PREPROCESSOR_DEFINITIONS = (
"DEBUG=1",
"$(inherited)",
);
GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
GCC_WARN_UNDECLARED_SELECTOR = YES;
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
GCC_WARN_UNUSED_FUNCTION = YES;
GCC_WARN_UNUSED_VARIABLE = YES;
INFOPLIST_FILE = ASDKDiffingTests/Info.plist;
IPHONEOS_DEPLOYMENT_TARGET = 10.3;
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks";
MTL_ENABLE_DEBUG_INFO = YES;
ONLY_ACTIVE_ARCH = YES;
PRODUCT_BUNDLE_IDENTIFIER = org.TextureGroup.ASDKDiffingTests;
PRODUCT_NAME = "$(TARGET_NAME)";
SDKROOT = iphoneos;
TEST_HOST = "$(BUILT_PRODUCTS_DIR)/DiffingTestHost.app/DiffingTestHost";
};
name = Debug;
};
CC9E981E1EF9F46A009D37C5 /* Release */ = {
isa = XCBuildConfiguration;
baseConfigurationReference = 92E6E53B4239101982E9E8A6 /* Pods-ASDKDiffingTests.release.xcconfig */;
buildSettings = {
ALWAYS_SEARCH_USER_PATHS = NO;
CLANG_ANALYZER_NONNULL = YES;
CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE;
CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
CLANG_CXX_LIBRARY = "libc++";
CLANG_ENABLE_MODULES = YES;
CLANG_ENABLE_OBJC_ARC = YES;
CLANG_WARN_BOOL_CONVERSION = YES;
CLANG_WARN_CONSTANT_CONVERSION = YES;
CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
CLANG_WARN_DOCUMENTATION_COMMENTS = YES;
CLANG_WARN_EMPTY_BODY = YES;
CLANG_WARN_ENUM_CONVERSION = YES;
CLANG_WARN_INFINITE_RECURSION = YES;
CLANG_WARN_INT_CONVERSION = YES;
CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
CLANG_WARN_SUSPICIOUS_MOVE = YES;
CLANG_WARN_UNREACHABLE_CODE = YES;
CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
COPY_PHASE_STRIP = NO;
DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
ENABLE_NS_ASSERTIONS = NO;
ENABLE_STRICT_OBJC_MSGSEND = YES;
GCC_C_LANGUAGE_STANDARD = gnu99;
GCC_NO_COMMON_BLOCKS = YES;
GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
GCC_WARN_UNDECLARED_SELECTOR = YES;
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
GCC_WARN_UNUSED_FUNCTION = YES;
GCC_WARN_UNUSED_VARIABLE = YES;
INFOPLIST_FILE = ASDKDiffingTests/Info.plist;
IPHONEOS_DEPLOYMENT_TARGET = 10.3;
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks";
MTL_ENABLE_DEBUG_INFO = NO;
PRODUCT_BUNDLE_IDENTIFIER = org.TextureGroup.ASDKDiffingTests;
PRODUCT_NAME = "$(TARGET_NAME)";
SDKROOT = iphoneos;
TEST_HOST = "$(BUILT_PRODUCTS_DIR)/DiffingTestHost.app/DiffingTestHost";
VALIDATE_PRODUCT = YES;
};
name = Release;
};
CC9E984C1EFA267E009D37C5 /* Debug */ = {
isa = XCBuildConfiguration;
buildSettings = {
ALWAYS_SEARCH_USER_PATHS = NO;
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
CLANG_ANALYZER_NONNULL = YES;
CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE;
CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
CLANG_CXX_LIBRARY = "libc++";
CLANG_ENABLE_MODULES = YES;
CLANG_ENABLE_OBJC_ARC = YES;
CLANG_WARN_BOOL_CONVERSION = YES;
CLANG_WARN_CONSTANT_CONVERSION = YES;
CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
CLANG_WARN_DOCUMENTATION_COMMENTS = YES;
CLANG_WARN_EMPTY_BODY = YES;
CLANG_WARN_ENUM_CONVERSION = YES;
CLANG_WARN_INFINITE_RECURSION = YES;
CLANG_WARN_INT_CONVERSION = YES;
CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
CLANG_WARN_SUSPICIOUS_MOVE = YES;
CLANG_WARN_UNREACHABLE_CODE = YES;
CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
COPY_PHASE_STRIP = NO;
DEBUG_INFORMATION_FORMAT = dwarf;
ENABLE_STRICT_OBJC_MSGSEND = YES;
ENABLE_TESTABILITY = YES;
GCC_C_LANGUAGE_STANDARD = gnu99;
GCC_DYNAMIC_NO_PIC = NO;
GCC_NO_COMMON_BLOCKS = YES;
GCC_OPTIMIZATION_LEVEL = 0;
GCC_PREPROCESSOR_DEFINITIONS = (
"DEBUG=1",
"$(inherited)",
);
GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
GCC_WARN_UNDECLARED_SELECTOR = YES;
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
GCC_WARN_UNUSED_FUNCTION = YES;
GCC_WARN_UNUSED_VARIABLE = YES;
INFOPLIST_FILE = DiffingTestHost/Info.plist;
IPHONEOS_DEPLOYMENT_TARGET = 10.3;
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
MTL_ENABLE_DEBUG_INFO = YES;
ONLY_ACTIVE_ARCH = YES;
PRODUCT_BUNDLE_IDENTIFIER = org.TextureGroup.DiffingTestHost;
PRODUCT_NAME = "$(TARGET_NAME)";
SDKROOT = iphoneos;
};
name = Debug;
};
CC9E984D1EFA267E009D37C5 /* Release */ = {
isa = XCBuildConfiguration;
buildSettings = {
ALWAYS_SEARCH_USER_PATHS = NO;
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
CLANG_ANALYZER_NONNULL = YES;
CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE;
CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
CLANG_CXX_LIBRARY = "libc++";
CLANG_ENABLE_MODULES = YES;
CLANG_ENABLE_OBJC_ARC = YES;
CLANG_WARN_BOOL_CONVERSION = YES;
CLANG_WARN_CONSTANT_CONVERSION = YES;
CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
CLANG_WARN_DOCUMENTATION_COMMENTS = YES;
CLANG_WARN_EMPTY_BODY = YES;
CLANG_WARN_ENUM_CONVERSION = YES;
CLANG_WARN_INFINITE_RECURSION = YES;
CLANG_WARN_INT_CONVERSION = YES;
CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
CLANG_WARN_SUSPICIOUS_MOVE = YES;
CLANG_WARN_UNREACHABLE_CODE = YES;
CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
COPY_PHASE_STRIP = NO;
DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
ENABLE_NS_ASSERTIONS = NO;
ENABLE_STRICT_OBJC_MSGSEND = YES;
GCC_C_LANGUAGE_STANDARD = gnu99;
GCC_NO_COMMON_BLOCKS = YES;
GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
GCC_WARN_UNDECLARED_SELECTOR = YES;
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
GCC_WARN_UNUSED_FUNCTION = YES;
GCC_WARN_UNUSED_VARIABLE = YES;
INFOPLIST_FILE = DiffingTestHost/Info.plist;
IPHONEOS_DEPLOYMENT_TARGET = 10.3;
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
MTL_ENABLE_DEBUG_INFO = NO;
PRODUCT_BUNDLE_IDENTIFIER = org.TextureGroup.DiffingTestHost;
PRODUCT_NAME = "$(TARGET_NAME)";
SDKROOT = iphoneos;
VALIDATE_PRODUCT = YES;
};
name = Release;
};
/* End XCBuildConfiguration section */
/* Begin XCConfigurationList section */
CC9E980F1EF9F44F009D37C5 /* Build configuration list for PBXProject "ASDKDiffing" */ = {
isa = XCConfigurationList;
buildConfigurations = (
CC9E98101EF9F44F009D37C5 /* Debug */,
CC9E98111EF9F44F009D37C5 /* Release */,
);
defaultConfigurationIsVisible = 0;
defaultConfigurationName = Release;
};
CC9E981C1EF9F46A009D37C5 /* Build configuration list for PBXNativeTarget "ASDKDiffingTests" */ = {
isa = XCConfigurationList;
buildConfigurations = (
CC9E981D1EF9F46A009D37C5 /* Debug */,
CC9E981E1EF9F46A009D37C5 /* Release */,
);
defaultConfigurationIsVisible = 0;
defaultConfigurationName = Release;
};
CC9E984B1EFA267E009D37C5 /* Build configuration list for PBXNativeTarget "DiffingTestHost" */ = {
isa = XCConfigurationList;
buildConfigurations = (
CC9E984C1EFA267E009D37C5 /* Debug */,
CC9E984D1EFA267E009D37C5 /* Release */,
);
defaultConfigurationIsVisible = 0;
};
/* End XCConfigurationList section */
};
rootObject = CC9E980C1EF9F44F009D37C5 /* Project object */;
}
@@ -0,0 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<Workspace
version = "1.0">
<FileRef
location = "self:ASDKDiffing.xcodeproj">
</FileRef>
</Workspace>
@@ -0,0 +1,10 @@
<?xml version="1.0" encoding="UTF-8"?>
<Workspace
version = "1.0">
<FileRef
location = "group:ASDKDiffing.xcodeproj">
</FileRef>
<FileRef
location = "group:Pods/Pods.xcodeproj">
</FileRef>
</Workspace>
@@ -0,0 +1,41 @@
//
// ASDKDiffingFixtures.h
// ASDKDiffing
//
// Created by Adlai Holler on 6/20/17.
//
//
#import <Foundation/Foundation.h>
#import <IGListKit/IGListDiffKit.h>
#import <AsyncDisplayKit/AsyncDisplayKit.h>
NS_ASSUME_NONNULL_BEGIN
@interface ASTViewModel : NSObject <IGListDiffable>
@property (nonatomic, readonly) NSInteger identifier; // Globally unique.
@property (nonatomic, readonly) NSInteger contents; // Globally unique. Auto-increments.
@property (nonatomic, nullable, copy) NSString *debugName; // Helpful. Copied when updating.
// Returns a new view model with the next `contents` value.
- (instancetype)viewModelByUpdating;
+ (void)reset;
@end
@interface ASTItem : ASTViewModel
@end
@interface ASTSection : ASTViewModel
@end
@interface ASTSectionCtrl : ASDiffingSectionController
@end
@interface ASTItemNode : ASCellNode
@end
NS_ASSUME_NONNULL_END
@@ -0,0 +1,136 @@
//
// ASDKDiffingFixtures.m
// ASDKDiffing
//
// Created by Adlai Holler on 6/20/17.
//
//
#import "ASDKDiffingFixtures.h"
#import <AsyncDisplayKit/AsyncDisplayKit.h>
#import <stdatomic.h>
atomic_uint g_identifier;
atomic_uint g_val;
void ASTReset() {
atomic_store(&g_identifier, 0);
atomic_store(&g_val, 0);
}
NSInteger ASTNextIdentifier() {
return atomic_fetch_add(&g_identifier, 1);
}
NSInteger ASTNextContents() {
return atomic_fetch_add(&g_val, 1);
}
id ASTWithDebugNamesTable(id (NS_NOESCAPE ^block)(NSMapTable<NSNumber *, NSString *> *table)) {
static NSMapTable<NSNumber *, NSString *> *table;
static NSLock *lock;
static dispatch_once_t onceToken;
dispatch_once(&onceToken, ^{
table = [NSMapTable strongToStrongObjectsMapTable];
lock = [NSLock new];
});
[lock lock];
id result = block(table);
[lock unlock];
return result;
}
@implementation ASTViewModel
- (instancetype)init
{
if (self = [super init]) {
_identifier = ASTNextIdentifier();
_contents = ASTNextContents();
}
return self;
}
- (instancetype)viewModelByUpdating
{
ASTViewModel *vm = [[self class] alloc]; // No init. We control the values manually.
vm->_identifier = _identifier;
vm->_contents = ASTNextContents();
return vm;
}
- (NSString *)debugDescription
{
return ASObjectDescriptionMake(self, [self propertiesForDebugDescription]);
}
- (void)setDebugName:(NSString *)debugName
{
ASTWithDebugNamesTable(^id(NSMapTable<NSNumber *,NSString *> *table) {
[table setObject:[debugName copy] forKey:@(self.identifier)];
return nil;
});
}
- (NSString *)debugName
{
return ASTWithDebugNamesTable(^id(NSMapTable<NSNumber *,NSString *> *table) {
return [table objectForKey:@(self.identifier)];
});
}
- (NSMutableArray<NSDictionary *> *)propertiesForDebugDescription
{
__auto_type array = [NSMutableArray array];
NSString *name = self.debugName;
if (name.length > 0) {
[array addObject:@{ @"name": name }];
} else {
[array addObject:@{ @"id": @(self.identifier) }];
}
[array addObject:@{ @"contents": @(self.contents) }];
return array;
}
+ (void)reset
{
ASTReset();
}
#pragma mark - IGListDiffable
- (BOOL)isEqualToDiffableObject:(id<IGListDiffable>)object
{
ASTViewModel *vm = (ASTViewModel *)object;
NSParameterAssert([(id)object class] == [self class]);
NSParameterAssert(vm.identifier == self.identifier);
return vm.contents == self.contents;
}
- (id<NSObject>)diffIdentifier
{
return @(self.identifier);
}
@end
@implementation ASTSection
@end
@implementation ASTItem
@end
@implementation ASTSectionCtrl
- (ASCellNodeBlock)nodeBlockForItemAtIndex:(NSInteger)index
{
return ^{
return [ASTItemNode new];
};
}
@end
@implementation ASTItemNode
@end
@@ -0,0 +1,106 @@
//
// ASDKDiffingTests.m
// ASDKDiffingTests
//
// Created by Adlai Holler on 6/20/17.
//
//
#import <XCTest/XCTest.h>
#import "ASTestCase.h"
#import "ASDKDiffingFixtures.h"
#import <AsyncDisplayKit/AsyncDisplayKit.h>
#import <OCMock/OCMock.h>
@interface ASDKDiffingTests : ASTestCase
@end
@implementation ASDKDiffingTests {
ASCollectionNode *collectionNode;
UIWindow *window;
id mockDataSource;
NSMutableArray<ASTSection *> *sections;
}
- (void)setUp {
[super setUp];
[ASTViewModel reset];
sections = [NSMutableArray array];
collectionNode = [[ASCollectionNode alloc] initWithCollectionViewLayout:[UICollectionViewFlowLayout new]];
mockDataSource = OCMStrictProtocolMock(@protocol(ASCollectionModernDataSource));
collectionNode.modernDataSource = mockDataSource;
window = [[UIWindow alloc] initWithFrame:CGRectMake(0, 0, 100, 100)];
UIViewController *vc = [[UIViewController alloc] init];
collectionNode.view.frame = vc.view.bounds;
collectionNode.view.autoresizingMask = UIViewAutoresizingFlexibleWidth | UIViewAutoresizingFlexibleHeight;
[vc.view addSubnode:collectionNode];
window.rootViewController = vc;
[window makeKeyAndVisible];
}
- (void)testThatFixturesWork
{
ASTSection *s1 = [ASTSection new];
ASTSection *s1_2 = [s1 viewModelByUpdating];
s1.debugName = @"Hello";
ASTSection *s2 = [ASTSection new];
ASTItem *i1 = [ASTItem new];
// -setDebugName works
XCTAssertEqualObjects(s1.debugName, @"Hello");
// debugName shared between versions even if set after
XCTAssertEqualObjects(s1_2.debugName, s1.debugName);
// identifier starts at 0
XCTAssertEqual(s1.identifier, 0);
// identifier incs each new object
XCTAssertEqual(s2.identifier, 1);
// identifier global between classes
XCTAssertEqual(i1.identifier, 2);
// identifier shared between versions
XCTAssertEqual(s1_2.identifier, s1.identifier);
// contents inc each new object
XCTAssertEqual(s1_2.contents, s1.contents + 1);
// contents global between classes
XCTAssertEqual(i1.contents, 3);
}
- (void)testInitialDataLoad
{
NSMapTable<ASTSection *, id> *sectionToCtrl = [NSMapTable weakToWeakObjectsMapTable];
// It gathers section view models.
OCMExpect([mockDataSource sectionViewModelsForCollectionNode:collectionNode])
.andReturn(sections);
// It gathers section controllers for each model.
__auto_type sectionControllers = [NSMutableArray array];
for (ASTSection *sectionModel in sections) {
ASTSectionCtrl *ctrl = OCMPartialMock([ASTSectionCtrl new]);
[sectionControllers addObject:ctrl];
[sectionToCtrl setObject:ctrl forKey:sectionModel];
OCMExpect([mockDataSource collectionNode:collectionNode controllerForSection:sectionModel])
.andReturn(ctrl);
}
// For each section model
for (ASTSection *sectionModel in sectionToCtrl) {
id mockCtrl = [sectionToCtrl objectForKey:sectionModel];
// It sets the new view model to the section controller
OCMExpect([mockCtrl setViewModel:sectionModel])
.andForwardToRealObject();
// It fetches a new array of item view models
OCMExpect([mockCtrl generateItemViewModels])
.andForwardToRealObject();
}
[window layoutIfNeeded];
}
@end
@@ -0,0 +1,22 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>CFBundleDevelopmentRegion</key>
<string>en</string>
<key>CFBundleExecutable</key>
<string>$(EXECUTABLE_NAME)</string>
<key>CFBundleIdentifier</key>
<string>$(PRODUCT_BUNDLE_IDENTIFIER)</string>
<key>CFBundleInfoDictionaryVersion</key>
<string>6.0</string>
<key>CFBundleName</key>
<string>$(PRODUCT_NAME)</string>
<key>CFBundlePackageType</key>
<string>BNDL</string>
<key>CFBundleShortVersionString</key>
<string>1.0</string>
<key>CFBundleVersion</key>
<string>1</string>
</dict>
</plist>
@@ -0,0 +1,17 @@
//
// AppDelegate.h
// DiffingTestHost
//
// Created by Adlai Holler on 6/20/17.
//
//
#import <UIKit/UIKit.h>
@interface AppDelegate : UIResponder <UIApplicationDelegate>
@property (strong, nonatomic) UIWindow *window;
@end
@@ -0,0 +1,51 @@
//
// AppDelegate.m
// DiffingTestHost
//
// Created by Adlai Holler on 6/20/17.
//
//
#import "AppDelegate.h"
@interface AppDelegate ()
@end
@implementation AppDelegate
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
// Override point for customization after application launch.
return YES;
}
- (void)applicationWillResignActive:(UIApplication *)application {
// Sent when the application is about to move from active to inactive state. This can occur for certain types of temporary interruptions (such as an incoming phone call or SMS message) or when the user quits the application and it begins the transition to the background state.
// Use this method to pause ongoing tasks, disable timers, and invalidate graphics rendering callbacks. Games should use this method to pause the game.
}
- (void)applicationDidEnterBackground:(UIApplication *)application {
// Use this method to release shared resources, save user data, invalidate timers, and store enough application state information to restore your application to its current state in case it is terminated later.
// If your application supports background execution, this method is called instead of applicationWillTerminate: when the user quits.
}
- (void)applicationWillEnterForeground:(UIApplication *)application {
// Called as part of the transition from the background to the active state; here you can undo many of the changes made on entering the background.
}
- (void)applicationDidBecomeActive:(UIApplication *)application {
// Restart any tasks that were paused (or not yet started) while the application was inactive. If the application was previously in the background, optionally refresh the user interface.
}
- (void)applicationWillTerminate:(UIApplication *)application {
// Called when the application is about to terminate. Save data if appropriate. See also applicationDidEnterBackground:.
}
@end
@@ -0,0 +1,34 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>CFBundleDevelopmentRegion</key>
<string>en</string>
<key>CFBundleExecutable</key>
<string>$(EXECUTABLE_NAME)</string>
<key>CFBundleIdentifier</key>
<string>$(PRODUCT_BUNDLE_IDENTIFIER)</string>
<key>CFBundleInfoDictionaryVersion</key>
<string>6.0</string>
<key>CFBundleName</key>
<string>$(PRODUCT_NAME)</string>
<key>CFBundlePackageType</key>
<string>APPL</string>
<key>CFBundleShortVersionString</key>
<string>1.0</string>
<key>CFBundleVersion</key>
<string>1</string>
<key>LSRequiresIPhoneOS</key>
<true/>
<key>UILaunchStoryboardName</key>
<string>LaunchScreen</string>
<key>UIRequiredDeviceCapabilities</key>
<array>
<string>armv7</string>
</array>
<key>UISupportedInterfaceOrientations</key>
<array>
<string>UIInterfaceOrientationPortrait</string>
</array>
</dict>
</plist>
@@ -0,0 +1,16 @@
//
// main.m
// DiffingTestHost
//
// Created by Adlai Holler on 6/20/17.
//
//
#import <UIKit/UIKit.h>
#import "AppDelegate.h"
int main(int argc, char * argv[]) {
@autoreleasepool {
return UIApplicationMain(argc, argv, nil, NSStringFromClass([AppDelegate class]));
}
}
+8
View File
@@ -0,0 +1,8 @@
source 'https://github.com/CocoaPods/Specs.git'
platform :ios, '8.0'
target 'ASDKDiffingTests' do
pod 'Texture/Diffing', :path => '../..'
pod 'OCMock', '~> 3.4'
end