├── .gitignore ├── .travis.yml ├── ASCScreenBrightnessDetector.podspec ├── CHANGELOG.md ├── Classes ├── ASCScreenBrightnessDetector.h └── ASCScreenBrightnessDetector.m ├── Example ├── ASCScreenBrightnessDetectorExample.xcodeproj │ ├── project.pbxproj │ ├── project.xcworkspace │ │ └── contents.xcworkspacedata │ └── xcshareddata │ │ └── xcschemes │ │ └── ASCScreenBrightnessDetectorExample.xcscheme ├── ASCScreenBrightnessDetectorExample.xcworkspace │ └── contents.xcworkspacedata ├── ASCScreenBrightnessDetectorExample │ ├── ASCAppDelegate.h │ ├── ASCAppDelegate.m │ ├── ASCSampleViewController.h │ ├── ASCSampleViewController.m │ ├── ASCScreenBrightnessDetectorExample-Info.plist │ ├── ASCScreenBrightnessDetectorExample-Prefix.pch │ ├── Images.xcassets │ │ ├── AppIcon.appiconset │ │ │ ├── Contents.json │ │ │ ├── Icon.png │ │ │ ├── Settings.png │ │ │ └── Spotlight.png │ │ ├── LaunchImage.launchimage │ │ │ └── Contents.json │ │ ├── moon.imageset │ │ │ ├── Contents.json │ │ │ └── moon.png │ │ └── sun.imageset │ │ │ ├── Contents.json │ │ │ └── sun.png │ ├── en.lproj │ │ └── InfoPlist.strings │ └── main.m ├── ASCScreenBrightnessDetectorExampleTests │ ├── ASCScreenBrightnessDetectorExampleTests-Info.plist │ ├── ASCScreenBrightnessDetectorSpec.m │ └── en.lproj │ │ └── InfoPlist.strings ├── Podfile ├── Podfile.lock └── Pods │ ├── BuildHeaders │ ├── ASCScreenBrightnessDetector │ │ └── ASCScreenBrightnessDetector.h │ ├── Expecta │ │ ├── EXPBackwardCompatibility.h │ │ ├── EXPBlockDefinedMatcher.h │ │ ├── EXPDefines.h │ │ ├── EXPDoubleTuple.h │ │ ├── EXPExpect.h │ │ ├── EXPFloatTuple.h │ │ ├── EXPMatcher.h │ │ ├── EXPMatcherHelpers.h │ │ ├── EXPMatchers+beCloseTo.h │ │ ├── EXPMatchers+beFalsy.h │ │ ├── EXPMatchers+beGreaterThan.h │ │ ├── EXPMatchers+beGreaterThanOrEqualTo.h │ │ ├── EXPMatchers+beIdenticalTo.h │ │ ├── EXPMatchers+beInTheRangeOf.h │ │ ├── EXPMatchers+beInstanceOf.h │ │ ├── EXPMatchers+beKindOf.h │ │ ├── EXPMatchers+beLessThan.h │ │ ├── EXPMatchers+beLessThanOrEqualTo.h │ │ ├── EXPMatchers+beNil.h │ │ ├── EXPMatchers+beSubclassOf.h │ │ ├── EXPMatchers+beSupersetOf.h │ │ ├── EXPMatchers+beTruthy.h │ │ ├── EXPMatchers+beginWith.h │ │ ├── EXPMatchers+conformTo.h │ │ ├── EXPMatchers+contain.h │ │ ├── EXPMatchers+endWith.h │ │ ├── EXPMatchers+equal.h │ │ ├── EXPMatchers+haveCountOf.h │ │ ├── EXPMatchers+notify.h │ │ ├── EXPMatchers+raise.h │ │ ├── EXPMatchers+raiseWithReason.h │ │ ├── EXPMatchers+respondTo.h │ │ ├── EXPMatchers.h │ │ ├── EXPUnsupportedObject.h │ │ ├── Expecta.h │ │ ├── ExpectaSupport.h │ │ ├── NSObject+Expecta.h │ │ └── NSValue+Expecta.h │ ├── OCHamcrest │ │ ├── HCAllOf.h │ │ ├── HCAnyOf.h │ │ ├── HCAssertThat.h │ │ ├── HCBaseDescription.h │ │ ├── HCBaseMatcher.h │ │ ├── HCClassMatcher.h │ │ ├── HCCollectMatchers.h │ │ ├── HCConformsToProtocol.h │ │ ├── HCDescribedAs.h │ │ ├── HCDescription.h │ │ ├── HCGenericTestFailureHandler.h │ │ ├── HCHasCount.h │ │ ├── HCHasDescription.h │ │ ├── HCHasProperty.h │ │ ├── HCInvocationMatcher.h │ │ ├── HCIs.h │ │ ├── HCIsAnything.h │ │ ├── HCIsCloseTo.h │ │ ├── HCIsCollectionContaining.h │ │ ├── HCIsCollectionContainingInAnyOrder.h │ │ ├── HCIsCollectionContainingInOrder.h │ │ ├── HCIsCollectionOnlyContaining.h │ │ ├── HCIsDictionaryContaining.h │ │ ├── HCIsDictionaryContainingEntries.h │ │ ├── HCIsDictionaryContainingKey.h │ │ ├── HCIsDictionaryContainingValue.h │ │ ├── HCIsEmptyCollection.h │ │ ├── HCIsEqual.h │ │ ├── HCIsEqualIgnoringCase.h │ │ ├── HCIsEqualIgnoringWhiteSpace.h │ │ ├── HCIsEqualToNumber.h │ │ ├── HCIsIn.h │ │ ├── HCIsInstanceOf.h │ │ ├── HCIsNil.h │ │ ├── HCIsNot.h │ │ ├── HCIsSame.h │ │ ├── HCIsTypeOf.h │ │ ├── HCMatcher.h │ │ ├── HCNumberAssert.h │ │ ├── HCOrderingComparison.h │ │ ├── HCRequireNonNilObject.h │ │ ├── HCSelfDescribing.h │ │ ├── HCSenTestFailureHandler.h │ │ ├── HCStringContains.h │ │ ├── HCStringContainsInOrder.h │ │ ├── HCStringDescription.h │ │ ├── HCStringEndsWith.h │ │ ├── HCStringStartsWith.h │ │ ├── HCSubstringMatcher.h │ │ ├── HCTestFailure.h │ │ ├── HCTestFailureHandler.h │ │ ├── HCTestFailureHandlerChain.h │ │ ├── HCWrapInMatcher.h │ │ ├── HCXCTestFailureHandler.h │ │ └── OCHamcrest.h │ ├── OCMockito │ │ ├── MKTArgumentCaptor.h │ │ ├── MKTAtLeastTimes.h │ │ ├── MKTBaseMockObject.h │ │ ├── MKTCapturingMatcher.h │ │ ├── MKTClassObjectMock.h │ │ ├── MKTExactTimes.h │ │ ├── MKTInvocationContainer.h │ │ ├── MKTInvocationMatcher.h │ │ ├── MKTMockingProgress.h │ │ ├── MKTMockitoCore.h │ │ ├── MKTObjectAndProtocolMock.h │ │ ├── MKTObjectMock.h │ │ ├── MKTOngoingStubbing.h │ │ ├── MKTPrimitiveArgumentMatching.h │ │ ├── MKTProtocolMock.h │ │ ├── MKTStubbedInvocationMatcher.h │ │ ├── MKTTestLocation.h │ │ ├── MKTVerificationData.h │ │ ├── MKTVerificationMode.h │ │ ├── NSInvocation+TKAdditions.h │ │ └── OCMockito.h │ └── Specta │ │ ├── SPTExample.h │ │ ├── SPTExampleGroup.h │ │ ├── SPTNestedReporter.h │ │ ├── SPTReporter.h │ │ ├── SPTSharedExampleGroups.h │ │ ├── SPTSpec.h │ │ ├── SPTXCTestCase.h │ │ ├── SPTXCTestReporter.h │ │ ├── Specta.h │ │ ├── SpectaSupport.h │ │ ├── SpectaTypes.h │ │ ├── SpectaUtility.h │ │ ├── XCTestCase+Specta.h │ │ ├── XCTestLog+Specta.h │ │ └── XCTestRun+Specta.h │ ├── Expecta │ ├── LICENSE │ ├── README.md │ └── src │ │ ├── EXPBackwardCompatibility.h │ │ ├── EXPBackwardCompatibility.m │ │ ├── EXPBlockDefinedMatcher.h │ │ ├── EXPBlockDefinedMatcher.m │ │ ├── EXPDefines.h │ │ ├── EXPDoubleTuple.h │ │ ├── EXPDoubleTuple.m │ │ ├── EXPExpect.h │ │ ├── EXPExpect.m │ │ ├── EXPFloatTuple.h │ │ ├── EXPFloatTuple.m │ │ ├── EXPMatcher.h │ │ ├── EXPUnsupportedObject.h │ │ ├── EXPUnsupportedObject.m │ │ ├── Expecta.h │ │ ├── Expecta.m │ │ ├── ExpectaSupport.h │ │ ├── ExpectaSupport.m │ │ ├── NSObject+Expecta.h │ │ ├── NSValue+Expecta.h │ │ ├── NSValue+Expecta.m │ │ └── matchers │ │ ├── EXPMatcherHelpers.h │ │ ├── EXPMatcherHelpers.m │ │ ├── EXPMatchers+beCloseTo.h │ │ ├── EXPMatchers+beCloseTo.m │ │ ├── EXPMatchers+beFalsy.h │ │ ├── EXPMatchers+beFalsy.m │ │ ├── EXPMatchers+beGreaterThan.h │ │ ├── EXPMatchers+beGreaterThan.m │ │ ├── EXPMatchers+beGreaterThanOrEqualTo.h │ │ ├── EXPMatchers+beGreaterThanOrEqualTo.m │ │ ├── EXPMatchers+beIdenticalTo.h │ │ ├── EXPMatchers+beIdenticalTo.m │ │ ├── EXPMatchers+beInTheRangeOf.h │ │ ├── EXPMatchers+beInTheRangeOf.m │ │ ├── EXPMatchers+beInstanceOf.h │ │ ├── EXPMatchers+beInstanceOf.m │ │ ├── EXPMatchers+beKindOf.h │ │ ├── EXPMatchers+beKindOf.m │ │ ├── EXPMatchers+beLessThan.h │ │ ├── EXPMatchers+beLessThan.m │ │ ├── EXPMatchers+beLessThanOrEqualTo.h │ │ ├── EXPMatchers+beLessThanOrEqualTo.m │ │ ├── EXPMatchers+beNil.h │ │ ├── EXPMatchers+beNil.m │ │ ├── EXPMatchers+beSubclassOf.h │ │ ├── EXPMatchers+beSubclassOf.m │ │ ├── EXPMatchers+beSupersetOf.h │ │ ├── EXPMatchers+beSupersetOf.m │ │ ├── EXPMatchers+beTruthy.h │ │ ├── EXPMatchers+beTruthy.m │ │ ├── EXPMatchers+beginWith.h │ │ ├── EXPMatchers+beginWith.m │ │ ├── EXPMatchers+conformTo.h │ │ ├── EXPMatchers+conformTo.m │ │ ├── EXPMatchers+contain.h │ │ ├── EXPMatchers+contain.m │ │ ├── EXPMatchers+endWith.h │ │ ├── EXPMatchers+endWith.m │ │ ├── EXPMatchers+equal.h │ │ ├── EXPMatchers+equal.m │ │ ├── EXPMatchers+haveCountOf.h │ │ ├── EXPMatchers+haveCountOf.m │ │ ├── EXPMatchers+notify.h │ │ ├── EXPMatchers+notify.m │ │ ├── EXPMatchers+raise.h │ │ ├── EXPMatchers+raise.m │ │ ├── EXPMatchers+raiseWithReason.h │ │ ├── EXPMatchers+raiseWithReason.m │ │ ├── EXPMatchers+respondTo.h │ │ ├── EXPMatchers+respondTo.m │ │ └── EXPMatchers.h │ ├── Headers │ ├── ASCScreenBrightnessDetector │ │ └── ASCScreenBrightnessDetector.h │ ├── Expecta │ │ ├── EXPBackwardCompatibility.h │ │ ├── EXPBlockDefinedMatcher.h │ │ ├── EXPDefines.h │ │ ├── EXPDoubleTuple.h │ │ ├── EXPExpect.h │ │ ├── EXPFloatTuple.h │ │ ├── EXPMatcher.h │ │ ├── EXPMatcherHelpers.h │ │ ├── EXPMatchers+beCloseTo.h │ │ ├── EXPMatchers+beFalsy.h │ │ ├── EXPMatchers+beGreaterThan.h │ │ ├── EXPMatchers+beGreaterThanOrEqualTo.h │ │ ├── EXPMatchers+beIdenticalTo.h │ │ ├── EXPMatchers+beInTheRangeOf.h │ │ ├── EXPMatchers+beInstanceOf.h │ │ ├── EXPMatchers+beKindOf.h │ │ ├── EXPMatchers+beLessThan.h │ │ ├── EXPMatchers+beLessThanOrEqualTo.h │ │ ├── EXPMatchers+beNil.h │ │ ├── EXPMatchers+beSubclassOf.h │ │ ├── EXPMatchers+beSupersetOf.h │ │ ├── EXPMatchers+beTruthy.h │ │ ├── EXPMatchers+beginWith.h │ │ ├── EXPMatchers+conformTo.h │ │ ├── EXPMatchers+contain.h │ │ ├── EXPMatchers+endWith.h │ │ ├── EXPMatchers+equal.h │ │ ├── EXPMatchers+haveCountOf.h │ │ ├── EXPMatchers+notify.h │ │ ├── EXPMatchers+raise.h │ │ ├── EXPMatchers+raiseWithReason.h │ │ ├── EXPMatchers+respondTo.h │ │ ├── EXPMatchers.h │ │ ├── EXPUnsupportedObject.h │ │ ├── Expecta.h │ │ ├── ExpectaSupport.h │ │ ├── NSObject+Expecta.h │ │ └── NSValue+Expecta.h │ ├── OCHamcrest │ │ ├── HCAllOf.h │ │ ├── HCAnyOf.h │ │ ├── HCAssertThat.h │ │ ├── HCBaseDescription.h │ │ ├── HCBaseMatcher.h │ │ ├── HCClassMatcher.h │ │ ├── HCCollectMatchers.h │ │ ├── HCConformsToProtocol.h │ │ ├── HCDescribedAs.h │ │ ├── HCDescription.h │ │ ├── HCHasCount.h │ │ ├── HCHasDescription.h │ │ ├── HCHasProperty.h │ │ ├── HCInvocationMatcher.h │ │ ├── HCIs.h │ │ ├── HCIsAnything.h │ │ ├── HCIsCloseTo.h │ │ ├── HCIsCollectionContaining.h │ │ ├── HCIsCollectionContainingInAnyOrder.h │ │ ├── HCIsCollectionContainingInOrder.h │ │ ├── HCIsCollectionOnlyContaining.h │ │ ├── HCIsDictionaryContaining.h │ │ ├── HCIsDictionaryContainingEntries.h │ │ ├── HCIsDictionaryContainingKey.h │ │ ├── HCIsDictionaryContainingValue.h │ │ ├── HCIsEmptyCollection.h │ │ ├── HCIsEqual.h │ │ ├── HCIsEqualIgnoringCase.h │ │ ├── HCIsEqualIgnoringWhiteSpace.h │ │ ├── HCIsEqualToNumber.h │ │ ├── HCIsIn.h │ │ ├── HCIsInstanceOf.h │ │ ├── HCIsNil.h │ │ ├── HCIsNot.h │ │ ├── HCIsSame.h │ │ ├── HCIsTypeOf.h │ │ ├── HCMatcher.h │ │ ├── HCNumberAssert.h │ │ ├── HCOrderingComparison.h │ │ ├── HCRequireNonNilObject.h │ │ ├── HCSelfDescribing.h │ │ ├── HCSenTestFailureHandler.h │ │ ├── HCStringContains.h │ │ ├── HCStringContainsInOrder.h │ │ ├── HCStringDescription.h │ │ ├── HCStringEndsWith.h │ │ ├── HCStringStartsWith.h │ │ ├── HCSubstringMatcher.h │ │ ├── HCTestFailure.h │ │ ├── HCTestFailureHandler.h │ │ ├── HCTestFailureHandlerChain.h │ │ ├── HCWrapInMatcher.h │ │ ├── HCXCTestFailureHandler.h │ │ └── OCHamcrest.h │ ├── OCMockito │ │ ├── MKTArgumentCaptor.h │ │ ├── MKTBaseMockObject.h │ │ ├── MKTClassObjectMock.h │ │ ├── MKTObjectAndProtocolMock.h │ │ ├── MKTObjectMock.h │ │ ├── MKTOngoingStubbing.h │ │ ├── MKTPrimitiveArgumentMatching.h │ │ ├── MKTProtocolMock.h │ │ └── OCMockito.h │ └── Specta │ │ ├── SPTExample.h │ │ ├── SPTExampleGroup.h │ │ ├── SPTNestedReporter.h │ │ ├── SPTReporter.h │ │ ├── SPTSharedExampleGroups.h │ │ ├── SPTSpec.h │ │ ├── SPTXCTestCase.h │ │ ├── SPTXCTestReporter.h │ │ ├── Specta.h │ │ ├── SpectaSupport.h │ │ ├── SpectaTypes.h │ │ ├── SpectaUtility.h │ │ ├── XCTestCase+Specta.h │ │ ├── XCTestLog+Specta.h │ │ └── XCTestRun+Specta.h │ ├── Local Podspecs │ └── ASCScreenBrightnessDetector.podspec │ ├── Manifest.lock │ ├── OCHamcrest │ ├── LICENSE.txt │ ├── README.md │ └── Source │ │ ├── Core │ │ ├── HCAssertThat.h │ │ ├── HCAssertThat.m │ │ ├── HCBaseDescription.h │ │ ├── HCBaseDescription.m │ │ ├── HCBaseMatcher.h │ │ ├── HCBaseMatcher.m │ │ ├── HCDescription.h │ │ ├── HCGenericTestFailureHandler.h │ │ ├── HCGenericTestFailureHandler.m │ │ ├── HCMatcher.h │ │ ├── HCSelfDescribing.h │ │ ├── HCSenTestFailureHandler.h │ │ ├── HCSenTestFailureHandler.m │ │ ├── HCStringDescription.h │ │ ├── HCStringDescription.m │ │ ├── HCTestFailure.h │ │ ├── HCTestFailure.m │ │ ├── HCTestFailureHandler.h │ │ ├── HCTestFailureHandlerChain.h │ │ ├── HCTestFailureHandlerChain.m │ │ ├── HCXCTestFailureHandler.h │ │ ├── HCXCTestFailureHandler.m │ │ └── Helpers │ │ │ ├── HCCollectMatchers.h │ │ │ ├── HCCollectMatchers.m │ │ │ ├── HCInvocationMatcher.h │ │ │ ├── HCInvocationMatcher.m │ │ │ ├── HCRequireNonNilObject.h │ │ │ ├── HCRequireNonNilObject.m │ │ │ ├── HCWrapInMatcher.h │ │ │ └── HCWrapInMatcher.m │ │ ├── Library │ │ ├── Collection │ │ │ ├── HCHasCount.h │ │ │ ├── HCHasCount.m │ │ │ ├── HCIsCollectionContaining.h │ │ │ ├── HCIsCollectionContaining.m │ │ │ ├── HCIsCollectionContainingInAnyOrder.h │ │ │ ├── HCIsCollectionContainingInAnyOrder.m │ │ │ ├── HCIsCollectionContainingInOrder.h │ │ │ ├── HCIsCollectionContainingInOrder.m │ │ │ ├── HCIsCollectionOnlyContaining.h │ │ │ ├── HCIsCollectionOnlyContaining.m │ │ │ ├── HCIsDictionaryContaining.h │ │ │ ├── HCIsDictionaryContaining.m │ │ │ ├── HCIsDictionaryContainingEntries.h │ │ │ ├── HCIsDictionaryContainingEntries.m │ │ │ ├── HCIsDictionaryContainingKey.h │ │ │ ├── HCIsDictionaryContainingKey.m │ │ │ ├── HCIsDictionaryContainingValue.h │ │ │ ├── HCIsDictionaryContainingValue.m │ │ │ ├── HCIsEmptyCollection.h │ │ │ ├── HCIsEmptyCollection.m │ │ │ ├── HCIsIn.h │ │ │ └── HCIsIn.m │ │ ├── Decorator │ │ │ ├── HCDescribedAs.h │ │ │ ├── HCDescribedAs.m │ │ │ ├── HCIs.h │ │ │ └── HCIs.m │ │ ├── Logical │ │ │ ├── HCAllOf.h │ │ │ ├── HCAllOf.m │ │ │ ├── HCAnyOf.h │ │ │ ├── HCAnyOf.m │ │ │ ├── HCIsAnything.h │ │ │ ├── HCIsAnything.m │ │ │ ├── HCIsNot.h │ │ │ └── HCIsNot.m │ │ ├── Number │ │ │ ├── HCIsCloseTo.h │ │ │ ├── HCIsCloseTo.m │ │ │ ├── HCIsEqualToNumber.h │ │ │ ├── HCIsEqualToNumber.m │ │ │ ├── HCNumberAssert.h │ │ │ ├── HCNumberAssert.m │ │ │ ├── HCOrderingComparison.h │ │ │ └── HCOrderingComparison.m │ │ ├── Object │ │ │ ├── HCClassMatcher.h │ │ │ ├── HCClassMatcher.m │ │ │ ├── HCConformsToProtocol.h │ │ │ ├── HCConformsToProtocol.m │ │ │ ├── HCHasDescription.h │ │ │ ├── HCHasDescription.m │ │ │ ├── HCHasProperty.h │ │ │ ├── HCHasProperty.m │ │ │ ├── HCIsEqual.h │ │ │ ├── HCIsEqual.m │ │ │ ├── HCIsInstanceOf.h │ │ │ ├── HCIsInstanceOf.m │ │ │ ├── HCIsNil.h │ │ │ ├── HCIsNil.m │ │ │ ├── HCIsSame.h │ │ │ ├── HCIsSame.m │ │ │ ├── HCIsTypeOf.h │ │ │ └── HCIsTypeOf.m │ │ └── Text │ │ │ ├── HCIsEqualIgnoringCase.h │ │ │ ├── HCIsEqualIgnoringCase.m │ │ │ ├── HCIsEqualIgnoringWhiteSpace.h │ │ │ ├── HCIsEqualIgnoringWhiteSpace.m │ │ │ ├── HCStringContains.h │ │ │ ├── HCStringContains.m │ │ │ ├── HCStringContainsInOrder.h │ │ │ ├── HCStringContainsInOrder.m │ │ │ ├── HCStringEndsWith.h │ │ │ ├── HCStringEndsWith.m │ │ │ ├── HCStringStartsWith.h │ │ │ ├── HCStringStartsWith.m │ │ │ ├── HCSubstringMatcher.h │ │ │ └── HCSubstringMatcher.m │ │ └── OCHamcrest.h │ ├── OCMockito │ ├── LICENSE.txt │ ├── README.md │ └── Source │ │ └── OCMockito │ │ ├── MKTArgumentCaptor.h │ │ ├── MKTArgumentCaptor.m │ │ ├── MKTAtLeastTimes.h │ │ ├── MKTAtLeastTimes.m │ │ ├── MKTBaseMockObject.h │ │ ├── MKTBaseMockObject.m │ │ ├── MKTCapturingMatcher.h │ │ ├── MKTCapturingMatcher.m │ │ ├── MKTClassObjectMock.h │ │ ├── MKTClassObjectMock.m │ │ ├── MKTExactTimes.h │ │ ├── MKTExactTimes.m │ │ ├── MKTInvocationContainer.h │ │ ├── MKTInvocationContainer.m │ │ ├── MKTInvocationMatcher.h │ │ ├── MKTInvocationMatcher.m │ │ ├── MKTMockingProgress.h │ │ ├── MKTMockingProgress.m │ │ ├── MKTMockitoCore.h │ │ ├── MKTMockitoCore.m │ │ ├── MKTObjectAndProtocolMock.h │ │ ├── MKTObjectAndProtocolMock.m │ │ ├── MKTObjectMock.h │ │ ├── MKTObjectMock.m │ │ ├── MKTOngoingStubbing.h │ │ ├── MKTOngoingStubbing.m │ │ ├── MKTPrimitiveArgumentMatching.h │ │ ├── MKTProtocolMock.h │ │ ├── MKTProtocolMock.m │ │ ├── MKTStubbedInvocationMatcher.h │ │ ├── MKTStubbedInvocationMatcher.m │ │ ├── MKTTestLocation.h │ │ ├── MKTTestLocation.m │ │ ├── MKTVerificationData.h │ │ ├── MKTVerificationData.m │ │ ├── MKTVerificationMode.h │ │ ├── NSInvocation+TKAdditions.h │ │ ├── NSInvocation+TKAdditions.m │ │ ├── OCMockito.h │ │ └── OCMockito.m │ ├── Pods-ASCScreenBrightnessDetector-Private.xcconfig │ ├── Pods-ASCScreenBrightnessDetector-dummy.m │ ├── Pods-ASCScreenBrightnessDetector-prefix.pch │ ├── Pods-ASCScreenBrightnessDetector.xcconfig │ ├── Pods-ASCScreenBrightnessDetectorExampleTests-ASCScreenBrightnessDetector-Private.xcconfig │ ├── Pods-ASCScreenBrightnessDetectorExampleTests-ASCScreenBrightnessDetector-dummy.m │ ├── Pods-ASCScreenBrightnessDetectorExampleTests-ASCScreenBrightnessDetector-prefix.pch │ ├── Pods-ASCScreenBrightnessDetectorExampleTests-ASCScreenBrightnessDetector.xcconfig │ ├── Pods-ASCScreenBrightnessDetectorExampleTests-Expecta-Private.xcconfig │ ├── Pods-ASCScreenBrightnessDetectorExampleTests-Expecta-dummy.m │ ├── Pods-ASCScreenBrightnessDetectorExampleTests-Expecta-prefix.pch │ ├── Pods-ASCScreenBrightnessDetectorExampleTests-Expecta.xcconfig │ ├── Pods-ASCScreenBrightnessDetectorExampleTests-OCHamcrest-Private.xcconfig │ ├── Pods-ASCScreenBrightnessDetectorExampleTests-OCHamcrest-dummy.m │ ├── Pods-ASCScreenBrightnessDetectorExampleTests-OCHamcrest-prefix.pch │ ├── Pods-ASCScreenBrightnessDetectorExampleTests-OCHamcrest.xcconfig │ ├── Pods-ASCScreenBrightnessDetectorExampleTests-OCMockito-Private.xcconfig │ ├── Pods-ASCScreenBrightnessDetectorExampleTests-OCMockito-dummy.m │ ├── Pods-ASCScreenBrightnessDetectorExampleTests-OCMockito-prefix.pch │ ├── Pods-ASCScreenBrightnessDetectorExampleTests-OCMockito.xcconfig │ ├── Pods-ASCScreenBrightnessDetectorExampleTests-Specta-Private.xcconfig │ ├── Pods-ASCScreenBrightnessDetectorExampleTests-Specta-dummy.m │ ├── Pods-ASCScreenBrightnessDetectorExampleTests-Specta-prefix.pch │ ├── Pods-ASCScreenBrightnessDetectorExampleTests-Specta.xcconfig │ ├── Pods-ASCScreenBrightnessDetectorExampleTests-acknowledgements.markdown │ ├── Pods-ASCScreenBrightnessDetectorExampleTests-acknowledgements.plist │ ├── Pods-ASCScreenBrightnessDetectorExampleTests-dummy.m │ ├── Pods-ASCScreenBrightnessDetectorExampleTests-environment.h │ ├── Pods-ASCScreenBrightnessDetectorExampleTests-resources.sh │ ├── Pods-ASCScreenBrightnessDetectorExampleTests.xcconfig │ ├── Pods-acknowledgements.markdown │ ├── Pods-acknowledgements.plist │ ├── Pods-dummy.m │ ├── Pods-environment.h │ ├── Pods-resources.sh │ ├── Pods.xcconfig │ ├── Pods.xcodeproj │ └── project.pbxproj │ └── Specta │ ├── LICENSE │ ├── README.md │ └── src │ ├── SPTExample.h │ ├── SPTExample.m │ ├── SPTExampleGroup.h │ ├── SPTExampleGroup.m │ ├── SPTNestedReporter.h │ ├── SPTNestedReporter.m │ ├── SPTReporter.h │ ├── SPTReporter.m │ ├── SPTSharedExampleGroups.h │ ├── SPTSharedExampleGroups.m │ ├── SPTSpec.h │ ├── SPTSpec.m │ ├── SPTXCTestCase.h │ ├── SPTXCTestCase.m │ ├── SPTXCTestReporter.h │ ├── SPTXCTestReporter.m │ ├── Specta.h │ ├── Specta.m │ ├── SpectaSupport.h │ ├── SpectaTypes.h │ ├── SpectaUtility.h │ ├── SpectaUtility.m │ ├── XCTestCase+Specta.h │ ├── XCTestCase+Specta.m │ ├── XCTestLog+Specta.h │ ├── XCTestLog+Specta.m │ ├── XCTestRun+Specta.h │ └── XCTestRun+Specta.m ├── LICENSE └── README.md /.gitignore: -------------------------------------------------------------------------------- 1 | # OS X 2 | .DS_Store 3 | 4 | # Xcode 5 | build/ 6 | *.pbxuser 7 | !default.pbxuser 8 | *.mode1v3 9 | !default.mode1v3 10 | *.mode2v3 11 | !default.mode2v3 12 | *.perspectivev3 13 | !default.perspectivev3 14 | xcuserdata 15 | *.xccheckout 16 | profile 17 | *.moved-aside 18 | DerivedData 19 | *.hmap 20 | *.ipa 21 | 22 | # CocoaPods 23 | # Pods -------------------------------------------------------------------------------- /.travis.yml: -------------------------------------------------------------------------------- 1 | language: objective-c 2 | before_install: gem install xcpretty -N 3 | script: 4 | - cd Example 5 | - set -o pipefail 6 | - xcodebuild -workspace ASCScreenBrightnessDetectorExample.xcworkspace -scheme ASCScreenBrightnessDetectorExample -sdk iphonesimulator test | xcpretty -c 7 | -------------------------------------------------------------------------------- /ASCScreenBrightnessDetector.podspec: -------------------------------------------------------------------------------- 1 | Pod::Spec.new do |s| 2 | s.name = "ASCScreenBrightnessDetector" 3 | s.version = "1.0.0" 4 | s.summary = "Easily detects screen brightness changes and provides some useful delegate methods." 5 | s.homepage = "https://github.com/schneiderandre/ASCScreenBrightnessDetector" 6 | s.screenshots = [ "https://dl.dropboxusercontent.com/u/19150300/Github/ASCScreenBrightnessDetector/dark.png", 7 | "https://dl.dropboxusercontent.com/u/19150300/Github/ASCScreenBrightnessDetector/light.png" ] 8 | s.license = 'MIT' 9 | s.author = { "André Schneider" => "hello@andreschneider.me" } 10 | s.social_media_url = 'https://twitter.com/aschndr' 11 | s.source = { :git => "https://github.com/schneiderandre/ASCScreenBrightnessDetector.git", :tag => '1.0.0' } 12 | 13 | s.platform = :ios, '6.0' 14 | s.requires_arc = true 15 | 16 | s.source_files = 'Classes/*.{h,m}' 17 | end 18 | -------------------------------------------------------------------------------- /CHANGELOG.md: -------------------------------------------------------------------------------- 1 | # ASCScreenBrightnessDetector CHANGELOG 2 | 3 | ## 1.0.0 4 | 5 | Now everything is covered with tests. 6 | 7 | ## 0.1.0 8 | 9 | Initial release. 10 | -------------------------------------------------------------------------------- /Example/ASCScreenBrightnessDetectorExample.xcodeproj/project.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /Example/ASCScreenBrightnessDetectorExample.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /Example/ASCScreenBrightnessDetectorExample/ASCAppDelegate.h: -------------------------------------------------------------------------------- 1 | // 2 | // ASCAppDelegate.h 3 | // ASCScreenBrightnessDetectorExample 4 | // 5 | // Created by André Schneider on 29.01.14. 6 | // Copyright (c) 2014 André Schneider. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | @interface ASCAppDelegate : UIResponder 12 | 13 | @property (strong, nonatomic) UIWindow *window; 14 | 15 | @end 16 | -------------------------------------------------------------------------------- /Example/ASCScreenBrightnessDetectorExample/ASCAppDelegate.m: -------------------------------------------------------------------------------- 1 | // 2 | // ASCAppDelegate.m 3 | // ASCScreenBrightnessDetectorExample 4 | // 5 | // Created by André Schneider on 29.01.14. 6 | // Copyright (c) 2014 André Schneider. All rights reserved. 7 | // 8 | 9 | #import "ASCAppDelegate.h" 10 | #import "ASCSampleViewController.h" 11 | 12 | @implementation ASCAppDelegate 13 | 14 | - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions 15 | { 16 | self.window = [[UIWindow alloc] initWithFrame:[[UIScreen mainScreen] bounds]]; 17 | 18 | ASCSampleViewController *sampleViewController = [ASCSampleViewController new]; 19 | [self.window setRootViewController:sampleViewController]; 20 | 21 | self.window.backgroundColor = [UIColor whiteColor]; 22 | [self.window makeKeyAndVisible]; 23 | return YES; 24 | } 25 | 26 | @end 27 | -------------------------------------------------------------------------------- /Example/ASCScreenBrightnessDetectorExample/ASCSampleViewController.h: -------------------------------------------------------------------------------- 1 | // 2 | // ASCSampleViewController.h 3 | // ASCScreenBrightnessDetectorExample 4 | // 5 | // Created by André Schneider on 29.01.14. 6 | // Copyright (c) 2014 André Schneider. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | @interface ASCSampleViewController : UIViewController 12 | 13 | @end 14 | -------------------------------------------------------------------------------- /Example/ASCScreenBrightnessDetectorExample/ASCScreenBrightnessDetectorExample-Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleDisplayName 8 | Brightness 9 | CFBundleExecutable 10 | ${EXECUTABLE_NAME} 11 | CFBundleIdentifier 12 | me.andreschneider.${PRODUCT_NAME:rfc1034identifier} 13 | CFBundleInfoDictionaryVersion 14 | 6.0 15 | CFBundleName 16 | ${PRODUCT_NAME} 17 | CFBundlePackageType 18 | APPL 19 | CFBundleShortVersionString 20 | 1.0 21 | CFBundleSignature 22 | ???? 23 | CFBundleVersion 24 | 1.0 25 | LSRequiresIPhoneOS 26 | 27 | UIRequiredDeviceCapabilities 28 | 29 | armv7 30 | 31 | UISupportedInterfaceOrientations 32 | 33 | UIInterfaceOrientationPortrait 34 | 35 | UIViewControllerBasedStatusBarAppearance 36 | 37 | 38 | 39 | -------------------------------------------------------------------------------- /Example/ASCScreenBrightnessDetectorExample/ASCScreenBrightnessDetectorExample-Prefix.pch: -------------------------------------------------------------------------------- 1 | // 2 | // Prefix header 3 | // 4 | // The contents of this file are implicitly included at the beginning of every source file. 5 | // 6 | 7 | #import 8 | 9 | #ifndef __IPHONE_3_0 10 | #warning "This project uses features only available in iOS SDK 3.0 and later." 11 | #endif 12 | 13 | #ifdef __OBJC__ 14 | #import 15 | #import 16 | #endif 17 | -------------------------------------------------------------------------------- /Example/ASCScreenBrightnessDetectorExample/Images.xcassets/AppIcon.appiconset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "size" : "29x29", 5 | "idiom" : "iphone", 6 | "filename" : "Settings.png", 7 | "scale" : "2x" 8 | }, 9 | { 10 | "size" : "40x40", 11 | "idiom" : "iphone", 12 | "filename" : "Spotlight.png", 13 | "scale" : "2x" 14 | }, 15 | { 16 | "size" : "60x60", 17 | "idiom" : "iphone", 18 | "filename" : "Icon.png", 19 | "scale" : "2x" 20 | } 21 | ], 22 | "info" : { 23 | "version" : 1, 24 | "author" : "xcode" 25 | } 26 | } -------------------------------------------------------------------------------- /Example/ASCScreenBrightnessDetectorExample/Images.xcassets/AppIcon.appiconset/Icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/schneiderandre/ASCScreenBrightnessDetector/da86afac0f1dba05884e1509d7558134a10b728c/Example/ASCScreenBrightnessDetectorExample/Images.xcassets/AppIcon.appiconset/Icon.png -------------------------------------------------------------------------------- /Example/ASCScreenBrightnessDetectorExample/Images.xcassets/AppIcon.appiconset/Settings.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/schneiderandre/ASCScreenBrightnessDetector/da86afac0f1dba05884e1509d7558134a10b728c/Example/ASCScreenBrightnessDetectorExample/Images.xcassets/AppIcon.appiconset/Settings.png -------------------------------------------------------------------------------- /Example/ASCScreenBrightnessDetectorExample/Images.xcassets/AppIcon.appiconset/Spotlight.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/schneiderandre/ASCScreenBrightnessDetector/da86afac0f1dba05884e1509d7558134a10b728c/Example/ASCScreenBrightnessDetectorExample/Images.xcassets/AppIcon.appiconset/Spotlight.png -------------------------------------------------------------------------------- /Example/ASCScreenBrightnessDetectorExample/Images.xcassets/LaunchImage.launchimage/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "orientation" : "portrait", 5 | "idiom" : "iphone", 6 | "extent" : "full-screen", 7 | "minimum-system-version" : "7.0", 8 | "scale" : "2x" 9 | }, 10 | { 11 | "orientation" : "portrait", 12 | "idiom" : "iphone", 13 | "subtype" : "retina4", 14 | "extent" : "full-screen", 15 | "minimum-system-version" : "7.0", 16 | "scale" : "2x" 17 | } 18 | ], 19 | "info" : { 20 | "version" : 1, 21 | "author" : "xcode" 22 | } 23 | } -------------------------------------------------------------------------------- /Example/ASCScreenBrightnessDetectorExample/Images.xcassets/moon.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "universal", 5 | "scale" : "1x" 6 | }, 7 | { 8 | "idiom" : "universal", 9 | "scale" : "2x", 10 | "filename" : "moon.png" 11 | } 12 | ], 13 | "info" : { 14 | "version" : 1, 15 | "author" : "xcode" 16 | } 17 | } -------------------------------------------------------------------------------- /Example/ASCScreenBrightnessDetectorExample/Images.xcassets/moon.imageset/moon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/schneiderandre/ASCScreenBrightnessDetector/da86afac0f1dba05884e1509d7558134a10b728c/Example/ASCScreenBrightnessDetectorExample/Images.xcassets/moon.imageset/moon.png -------------------------------------------------------------------------------- /Example/ASCScreenBrightnessDetectorExample/Images.xcassets/sun.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "universal", 5 | "scale" : "1x" 6 | }, 7 | { 8 | "idiom" : "universal", 9 | "scale" : "2x", 10 | "filename" : "sun.png" 11 | } 12 | ], 13 | "info" : { 14 | "version" : 1, 15 | "author" : "xcode" 16 | } 17 | } -------------------------------------------------------------------------------- /Example/ASCScreenBrightnessDetectorExample/Images.xcassets/sun.imageset/sun.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/schneiderandre/ASCScreenBrightnessDetector/da86afac0f1dba05884e1509d7558134a10b728c/Example/ASCScreenBrightnessDetectorExample/Images.xcassets/sun.imageset/sun.png -------------------------------------------------------------------------------- /Example/ASCScreenBrightnessDetectorExample/en.lproj/InfoPlist.strings: -------------------------------------------------------------------------------- 1 | /* Localized versions of Info.plist keys */ 2 | 3 | -------------------------------------------------------------------------------- /Example/ASCScreenBrightnessDetectorExample/main.m: -------------------------------------------------------------------------------- 1 | // 2 | // main.m 3 | // ASCScreenBrightnessDetectorExample 4 | // 5 | // Created by André Schneider on 29.01.14. 6 | // Copyright (c) 2014 André Schneider. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | #import "ASCAppDelegate.h" 12 | 13 | int main(int argc, char * argv[]) 14 | { 15 | @autoreleasepool { 16 | return UIApplicationMain(argc, argv, nil, NSStringFromClass([ASCAppDelegate class])); 17 | } 18 | } 19 | -------------------------------------------------------------------------------- /Example/ASCScreenBrightnessDetectorExampleTests/ASCScreenBrightnessDetectorExampleTests-Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleExecutable 8 | ${EXECUTABLE_NAME} 9 | CFBundleIdentifier 10 | me.andreschneider.${PRODUCT_NAME:rfc1034identifier} 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundlePackageType 14 | BNDL 15 | CFBundleShortVersionString 16 | 1.0 17 | CFBundleSignature 18 | ???? 19 | CFBundleVersion 20 | 1 21 | 22 | 23 | -------------------------------------------------------------------------------- /Example/ASCScreenBrightnessDetectorExampleTests/en.lproj/InfoPlist.strings: -------------------------------------------------------------------------------- 1 | /* Localized versions of Info.plist keys */ 2 | 3 | -------------------------------------------------------------------------------- /Example/Podfile: -------------------------------------------------------------------------------- 1 | platform :ios, "7.0" 2 | 3 | pod "ASCScreenBrightnessDetector", :path => "../ASCScreenBrightnessDetector.podspec" 4 | 5 | target "ASCScreenBrightnessDetectorExampleTests" do 6 | pod 'Specta' 7 | pod 'Expecta' 8 | pod 'OCMockito' 9 | end 10 | -------------------------------------------------------------------------------- /Example/Podfile.lock: -------------------------------------------------------------------------------- 1 | PODS: 2 | - ASCScreenBrightnessDetector (1.0.0) 3 | - Expecta (0.3.0) 4 | - OCHamcrest (3.0.1) 5 | - OCMockito (1.1.0): 6 | - OCHamcrest (~> 3.0) 7 | - Specta (0.2.1) 8 | 9 | DEPENDENCIES: 10 | - ASCScreenBrightnessDetector (from `../ASCScreenBrightnessDetector.podspec`) 11 | - Expecta 12 | - OCMockito 13 | - Specta 14 | 15 | EXTERNAL SOURCES: 16 | ASCScreenBrightnessDetector: 17 | :path: ../ASCScreenBrightnessDetector.podspec 18 | 19 | SPEC CHECKSUMS: 20 | ASCScreenBrightnessDetector: 41bc86e4b0fdb1793801bb10a5096a0f4a6658d9 21 | Expecta: 322f1dc42610106a5ba9871b4924cf1635d80833 22 | OCHamcrest: 782c52ae8c673e5d6060a65005cfd26d20d519ba 23 | OCMockito: 317fa0cf75c9b0d73d2be335789c556537be7fd2 24 | Specta: 2d06220591110c6d9757d8be8ecf8e63aa40dc2a 25 | 26 | COCOAPODS: 0.29.0 27 | -------------------------------------------------------------------------------- /Example/Pods/BuildHeaders/ASCScreenBrightnessDetector/ASCScreenBrightnessDetector.h: -------------------------------------------------------------------------------- 1 | ../../../../Classes/ASCScreenBrightnessDetector.h -------------------------------------------------------------------------------- /Example/Pods/BuildHeaders/Expecta/EXPBackwardCompatibility.h: -------------------------------------------------------------------------------- 1 | ../../Expecta/src/EXPBackwardCompatibility.h -------------------------------------------------------------------------------- /Example/Pods/BuildHeaders/Expecta/EXPBlockDefinedMatcher.h: -------------------------------------------------------------------------------- 1 | ../../Expecta/src/EXPBlockDefinedMatcher.h -------------------------------------------------------------------------------- /Example/Pods/BuildHeaders/Expecta/EXPDefines.h: -------------------------------------------------------------------------------- 1 | ../../Expecta/src/EXPDefines.h -------------------------------------------------------------------------------- /Example/Pods/BuildHeaders/Expecta/EXPDoubleTuple.h: -------------------------------------------------------------------------------- 1 | ../../Expecta/src/EXPDoubleTuple.h -------------------------------------------------------------------------------- /Example/Pods/BuildHeaders/Expecta/EXPExpect.h: -------------------------------------------------------------------------------- 1 | ../../Expecta/src/EXPExpect.h -------------------------------------------------------------------------------- /Example/Pods/BuildHeaders/Expecta/EXPFloatTuple.h: -------------------------------------------------------------------------------- 1 | ../../Expecta/src/EXPFloatTuple.h -------------------------------------------------------------------------------- /Example/Pods/BuildHeaders/Expecta/EXPMatcher.h: -------------------------------------------------------------------------------- 1 | ../../Expecta/src/EXPMatcher.h -------------------------------------------------------------------------------- /Example/Pods/BuildHeaders/Expecta/EXPMatcherHelpers.h: -------------------------------------------------------------------------------- 1 | ../../Expecta/src/matchers/EXPMatcherHelpers.h -------------------------------------------------------------------------------- /Example/Pods/BuildHeaders/Expecta/EXPMatchers+beCloseTo.h: -------------------------------------------------------------------------------- 1 | ../../Expecta/src/matchers/EXPMatchers+beCloseTo.h -------------------------------------------------------------------------------- /Example/Pods/BuildHeaders/Expecta/EXPMatchers+beFalsy.h: -------------------------------------------------------------------------------- 1 | ../../Expecta/src/matchers/EXPMatchers+beFalsy.h -------------------------------------------------------------------------------- /Example/Pods/BuildHeaders/Expecta/EXPMatchers+beGreaterThan.h: -------------------------------------------------------------------------------- 1 | ../../Expecta/src/matchers/EXPMatchers+beGreaterThan.h -------------------------------------------------------------------------------- /Example/Pods/BuildHeaders/Expecta/EXPMatchers+beGreaterThanOrEqualTo.h: -------------------------------------------------------------------------------- 1 | ../../Expecta/src/matchers/EXPMatchers+beGreaterThanOrEqualTo.h -------------------------------------------------------------------------------- /Example/Pods/BuildHeaders/Expecta/EXPMatchers+beIdenticalTo.h: -------------------------------------------------------------------------------- 1 | ../../Expecta/src/matchers/EXPMatchers+beIdenticalTo.h -------------------------------------------------------------------------------- /Example/Pods/BuildHeaders/Expecta/EXPMatchers+beInTheRangeOf.h: -------------------------------------------------------------------------------- 1 | ../../Expecta/src/matchers/EXPMatchers+beInTheRangeOf.h -------------------------------------------------------------------------------- /Example/Pods/BuildHeaders/Expecta/EXPMatchers+beInstanceOf.h: -------------------------------------------------------------------------------- 1 | ../../Expecta/src/matchers/EXPMatchers+beInstanceOf.h -------------------------------------------------------------------------------- /Example/Pods/BuildHeaders/Expecta/EXPMatchers+beKindOf.h: -------------------------------------------------------------------------------- 1 | ../../Expecta/src/matchers/EXPMatchers+beKindOf.h -------------------------------------------------------------------------------- /Example/Pods/BuildHeaders/Expecta/EXPMatchers+beLessThan.h: -------------------------------------------------------------------------------- 1 | ../../Expecta/src/matchers/EXPMatchers+beLessThan.h -------------------------------------------------------------------------------- /Example/Pods/BuildHeaders/Expecta/EXPMatchers+beLessThanOrEqualTo.h: -------------------------------------------------------------------------------- 1 | ../../Expecta/src/matchers/EXPMatchers+beLessThanOrEqualTo.h -------------------------------------------------------------------------------- /Example/Pods/BuildHeaders/Expecta/EXPMatchers+beNil.h: -------------------------------------------------------------------------------- 1 | ../../Expecta/src/matchers/EXPMatchers+beNil.h -------------------------------------------------------------------------------- /Example/Pods/BuildHeaders/Expecta/EXPMatchers+beSubclassOf.h: -------------------------------------------------------------------------------- 1 | ../../Expecta/src/matchers/EXPMatchers+beSubclassOf.h -------------------------------------------------------------------------------- /Example/Pods/BuildHeaders/Expecta/EXPMatchers+beSupersetOf.h: -------------------------------------------------------------------------------- 1 | ../../Expecta/src/matchers/EXPMatchers+beSupersetOf.h -------------------------------------------------------------------------------- /Example/Pods/BuildHeaders/Expecta/EXPMatchers+beTruthy.h: -------------------------------------------------------------------------------- 1 | ../../Expecta/src/matchers/EXPMatchers+beTruthy.h -------------------------------------------------------------------------------- /Example/Pods/BuildHeaders/Expecta/EXPMatchers+beginWith.h: -------------------------------------------------------------------------------- 1 | ../../Expecta/src/matchers/EXPMatchers+beginWith.h -------------------------------------------------------------------------------- /Example/Pods/BuildHeaders/Expecta/EXPMatchers+conformTo.h: -------------------------------------------------------------------------------- 1 | ../../Expecta/src/matchers/EXPMatchers+conformTo.h -------------------------------------------------------------------------------- /Example/Pods/BuildHeaders/Expecta/EXPMatchers+contain.h: -------------------------------------------------------------------------------- 1 | ../../Expecta/src/matchers/EXPMatchers+contain.h -------------------------------------------------------------------------------- /Example/Pods/BuildHeaders/Expecta/EXPMatchers+endWith.h: -------------------------------------------------------------------------------- 1 | ../../Expecta/src/matchers/EXPMatchers+endWith.h -------------------------------------------------------------------------------- /Example/Pods/BuildHeaders/Expecta/EXPMatchers+equal.h: -------------------------------------------------------------------------------- 1 | ../../Expecta/src/matchers/EXPMatchers+equal.h -------------------------------------------------------------------------------- /Example/Pods/BuildHeaders/Expecta/EXPMatchers+haveCountOf.h: -------------------------------------------------------------------------------- 1 | ../../Expecta/src/matchers/EXPMatchers+haveCountOf.h -------------------------------------------------------------------------------- /Example/Pods/BuildHeaders/Expecta/EXPMatchers+notify.h: -------------------------------------------------------------------------------- 1 | ../../Expecta/src/matchers/EXPMatchers+notify.h -------------------------------------------------------------------------------- /Example/Pods/BuildHeaders/Expecta/EXPMatchers+raise.h: -------------------------------------------------------------------------------- 1 | ../../Expecta/src/matchers/EXPMatchers+raise.h -------------------------------------------------------------------------------- /Example/Pods/BuildHeaders/Expecta/EXPMatchers+raiseWithReason.h: -------------------------------------------------------------------------------- 1 | ../../Expecta/src/matchers/EXPMatchers+raiseWithReason.h -------------------------------------------------------------------------------- /Example/Pods/BuildHeaders/Expecta/EXPMatchers+respondTo.h: -------------------------------------------------------------------------------- 1 | ../../Expecta/src/matchers/EXPMatchers+respondTo.h -------------------------------------------------------------------------------- /Example/Pods/BuildHeaders/Expecta/EXPMatchers.h: -------------------------------------------------------------------------------- 1 | ../../Expecta/src/matchers/EXPMatchers.h -------------------------------------------------------------------------------- /Example/Pods/BuildHeaders/Expecta/EXPUnsupportedObject.h: -------------------------------------------------------------------------------- 1 | ../../Expecta/src/EXPUnsupportedObject.h -------------------------------------------------------------------------------- /Example/Pods/BuildHeaders/Expecta/Expecta.h: -------------------------------------------------------------------------------- 1 | ../../Expecta/src/Expecta.h -------------------------------------------------------------------------------- /Example/Pods/BuildHeaders/Expecta/ExpectaSupport.h: -------------------------------------------------------------------------------- 1 | ../../Expecta/src/ExpectaSupport.h -------------------------------------------------------------------------------- /Example/Pods/BuildHeaders/Expecta/NSObject+Expecta.h: -------------------------------------------------------------------------------- 1 | ../../Expecta/src/NSObject+Expecta.h -------------------------------------------------------------------------------- /Example/Pods/BuildHeaders/Expecta/NSValue+Expecta.h: -------------------------------------------------------------------------------- 1 | ../../Expecta/src/NSValue+Expecta.h -------------------------------------------------------------------------------- /Example/Pods/BuildHeaders/OCHamcrest/HCAllOf.h: -------------------------------------------------------------------------------- 1 | ../../OCHamcrest/Source/Library/Logical/HCAllOf.h -------------------------------------------------------------------------------- /Example/Pods/BuildHeaders/OCHamcrest/HCAnyOf.h: -------------------------------------------------------------------------------- 1 | ../../OCHamcrest/Source/Library/Logical/HCAnyOf.h -------------------------------------------------------------------------------- /Example/Pods/BuildHeaders/OCHamcrest/HCAssertThat.h: -------------------------------------------------------------------------------- 1 | ../../OCHamcrest/Source/Core/HCAssertThat.h -------------------------------------------------------------------------------- /Example/Pods/BuildHeaders/OCHamcrest/HCBaseDescription.h: -------------------------------------------------------------------------------- 1 | ../../OCHamcrest/Source/Core/HCBaseDescription.h -------------------------------------------------------------------------------- /Example/Pods/BuildHeaders/OCHamcrest/HCBaseMatcher.h: -------------------------------------------------------------------------------- 1 | ../../OCHamcrest/Source/Core/HCBaseMatcher.h -------------------------------------------------------------------------------- /Example/Pods/BuildHeaders/OCHamcrest/HCClassMatcher.h: -------------------------------------------------------------------------------- 1 | ../../OCHamcrest/Source/Library/Object/HCClassMatcher.h -------------------------------------------------------------------------------- /Example/Pods/BuildHeaders/OCHamcrest/HCCollectMatchers.h: -------------------------------------------------------------------------------- 1 | ../../OCHamcrest/Source/Core/Helpers/HCCollectMatchers.h -------------------------------------------------------------------------------- /Example/Pods/BuildHeaders/OCHamcrest/HCConformsToProtocol.h: -------------------------------------------------------------------------------- 1 | ../../OCHamcrest/Source/Library/Object/HCConformsToProtocol.h -------------------------------------------------------------------------------- /Example/Pods/BuildHeaders/OCHamcrest/HCDescribedAs.h: -------------------------------------------------------------------------------- 1 | ../../OCHamcrest/Source/Library/Decorator/HCDescribedAs.h -------------------------------------------------------------------------------- /Example/Pods/BuildHeaders/OCHamcrest/HCDescription.h: -------------------------------------------------------------------------------- 1 | ../../OCHamcrest/Source/Core/HCDescription.h -------------------------------------------------------------------------------- /Example/Pods/BuildHeaders/OCHamcrest/HCGenericTestFailureHandler.h: -------------------------------------------------------------------------------- 1 | ../../OCHamcrest/Source/Core/HCGenericTestFailureHandler.h -------------------------------------------------------------------------------- /Example/Pods/BuildHeaders/OCHamcrest/HCHasCount.h: -------------------------------------------------------------------------------- 1 | ../../OCHamcrest/Source/Library/Collection/HCHasCount.h -------------------------------------------------------------------------------- /Example/Pods/BuildHeaders/OCHamcrest/HCHasDescription.h: -------------------------------------------------------------------------------- 1 | ../../OCHamcrest/Source/Library/Object/HCHasDescription.h -------------------------------------------------------------------------------- /Example/Pods/BuildHeaders/OCHamcrest/HCHasProperty.h: -------------------------------------------------------------------------------- 1 | ../../OCHamcrest/Source/Library/Object/HCHasProperty.h -------------------------------------------------------------------------------- /Example/Pods/BuildHeaders/OCHamcrest/HCInvocationMatcher.h: -------------------------------------------------------------------------------- 1 | ../../OCHamcrest/Source/Core/Helpers/HCInvocationMatcher.h -------------------------------------------------------------------------------- /Example/Pods/BuildHeaders/OCHamcrest/HCIs.h: -------------------------------------------------------------------------------- 1 | ../../OCHamcrest/Source/Library/Decorator/HCIs.h -------------------------------------------------------------------------------- /Example/Pods/BuildHeaders/OCHamcrest/HCIsAnything.h: -------------------------------------------------------------------------------- 1 | ../../OCHamcrest/Source/Library/Logical/HCIsAnything.h -------------------------------------------------------------------------------- /Example/Pods/BuildHeaders/OCHamcrest/HCIsCloseTo.h: -------------------------------------------------------------------------------- 1 | ../../OCHamcrest/Source/Library/Number/HCIsCloseTo.h -------------------------------------------------------------------------------- /Example/Pods/BuildHeaders/OCHamcrest/HCIsCollectionContaining.h: -------------------------------------------------------------------------------- 1 | ../../OCHamcrest/Source/Library/Collection/HCIsCollectionContaining.h -------------------------------------------------------------------------------- /Example/Pods/BuildHeaders/OCHamcrest/HCIsCollectionContainingInAnyOrder.h: -------------------------------------------------------------------------------- 1 | ../../OCHamcrest/Source/Library/Collection/HCIsCollectionContainingInAnyOrder.h -------------------------------------------------------------------------------- /Example/Pods/BuildHeaders/OCHamcrest/HCIsCollectionContainingInOrder.h: -------------------------------------------------------------------------------- 1 | ../../OCHamcrest/Source/Library/Collection/HCIsCollectionContainingInOrder.h -------------------------------------------------------------------------------- /Example/Pods/BuildHeaders/OCHamcrest/HCIsCollectionOnlyContaining.h: -------------------------------------------------------------------------------- 1 | ../../OCHamcrest/Source/Library/Collection/HCIsCollectionOnlyContaining.h -------------------------------------------------------------------------------- /Example/Pods/BuildHeaders/OCHamcrest/HCIsDictionaryContaining.h: -------------------------------------------------------------------------------- 1 | ../../OCHamcrest/Source/Library/Collection/HCIsDictionaryContaining.h -------------------------------------------------------------------------------- /Example/Pods/BuildHeaders/OCHamcrest/HCIsDictionaryContainingEntries.h: -------------------------------------------------------------------------------- 1 | ../../OCHamcrest/Source/Library/Collection/HCIsDictionaryContainingEntries.h -------------------------------------------------------------------------------- /Example/Pods/BuildHeaders/OCHamcrest/HCIsDictionaryContainingKey.h: -------------------------------------------------------------------------------- 1 | ../../OCHamcrest/Source/Library/Collection/HCIsDictionaryContainingKey.h -------------------------------------------------------------------------------- /Example/Pods/BuildHeaders/OCHamcrest/HCIsDictionaryContainingValue.h: -------------------------------------------------------------------------------- 1 | ../../OCHamcrest/Source/Library/Collection/HCIsDictionaryContainingValue.h -------------------------------------------------------------------------------- /Example/Pods/BuildHeaders/OCHamcrest/HCIsEmptyCollection.h: -------------------------------------------------------------------------------- 1 | ../../OCHamcrest/Source/Library/Collection/HCIsEmptyCollection.h -------------------------------------------------------------------------------- /Example/Pods/BuildHeaders/OCHamcrest/HCIsEqual.h: -------------------------------------------------------------------------------- 1 | ../../OCHamcrest/Source/Library/Object/HCIsEqual.h -------------------------------------------------------------------------------- /Example/Pods/BuildHeaders/OCHamcrest/HCIsEqualIgnoringCase.h: -------------------------------------------------------------------------------- 1 | ../../OCHamcrest/Source/Library/Text/HCIsEqualIgnoringCase.h -------------------------------------------------------------------------------- /Example/Pods/BuildHeaders/OCHamcrest/HCIsEqualIgnoringWhiteSpace.h: -------------------------------------------------------------------------------- 1 | ../../OCHamcrest/Source/Library/Text/HCIsEqualIgnoringWhiteSpace.h -------------------------------------------------------------------------------- /Example/Pods/BuildHeaders/OCHamcrest/HCIsEqualToNumber.h: -------------------------------------------------------------------------------- 1 | ../../OCHamcrest/Source/Library/Number/HCIsEqualToNumber.h -------------------------------------------------------------------------------- /Example/Pods/BuildHeaders/OCHamcrest/HCIsIn.h: -------------------------------------------------------------------------------- 1 | ../../OCHamcrest/Source/Library/Collection/HCIsIn.h -------------------------------------------------------------------------------- /Example/Pods/BuildHeaders/OCHamcrest/HCIsInstanceOf.h: -------------------------------------------------------------------------------- 1 | ../../OCHamcrest/Source/Library/Object/HCIsInstanceOf.h -------------------------------------------------------------------------------- /Example/Pods/BuildHeaders/OCHamcrest/HCIsNil.h: -------------------------------------------------------------------------------- 1 | ../../OCHamcrest/Source/Library/Object/HCIsNil.h -------------------------------------------------------------------------------- /Example/Pods/BuildHeaders/OCHamcrest/HCIsNot.h: -------------------------------------------------------------------------------- 1 | ../../OCHamcrest/Source/Library/Logical/HCIsNot.h -------------------------------------------------------------------------------- /Example/Pods/BuildHeaders/OCHamcrest/HCIsSame.h: -------------------------------------------------------------------------------- 1 | ../../OCHamcrest/Source/Library/Object/HCIsSame.h -------------------------------------------------------------------------------- /Example/Pods/BuildHeaders/OCHamcrest/HCIsTypeOf.h: -------------------------------------------------------------------------------- 1 | ../../OCHamcrest/Source/Library/Object/HCIsTypeOf.h -------------------------------------------------------------------------------- /Example/Pods/BuildHeaders/OCHamcrest/HCMatcher.h: -------------------------------------------------------------------------------- 1 | ../../OCHamcrest/Source/Core/HCMatcher.h -------------------------------------------------------------------------------- /Example/Pods/BuildHeaders/OCHamcrest/HCNumberAssert.h: -------------------------------------------------------------------------------- 1 | ../../OCHamcrest/Source/Library/Number/HCNumberAssert.h -------------------------------------------------------------------------------- /Example/Pods/BuildHeaders/OCHamcrest/HCOrderingComparison.h: -------------------------------------------------------------------------------- 1 | ../../OCHamcrest/Source/Library/Number/HCOrderingComparison.h -------------------------------------------------------------------------------- /Example/Pods/BuildHeaders/OCHamcrest/HCRequireNonNilObject.h: -------------------------------------------------------------------------------- 1 | ../../OCHamcrest/Source/Core/Helpers/HCRequireNonNilObject.h -------------------------------------------------------------------------------- /Example/Pods/BuildHeaders/OCHamcrest/HCSelfDescribing.h: -------------------------------------------------------------------------------- 1 | ../../OCHamcrest/Source/Core/HCSelfDescribing.h -------------------------------------------------------------------------------- /Example/Pods/BuildHeaders/OCHamcrest/HCSenTestFailureHandler.h: -------------------------------------------------------------------------------- 1 | ../../OCHamcrest/Source/Core/HCSenTestFailureHandler.h -------------------------------------------------------------------------------- /Example/Pods/BuildHeaders/OCHamcrest/HCStringContains.h: -------------------------------------------------------------------------------- 1 | ../../OCHamcrest/Source/Library/Text/HCStringContains.h -------------------------------------------------------------------------------- /Example/Pods/BuildHeaders/OCHamcrest/HCStringContainsInOrder.h: -------------------------------------------------------------------------------- 1 | ../../OCHamcrest/Source/Library/Text/HCStringContainsInOrder.h -------------------------------------------------------------------------------- /Example/Pods/BuildHeaders/OCHamcrest/HCStringDescription.h: -------------------------------------------------------------------------------- 1 | ../../OCHamcrest/Source/Core/HCStringDescription.h -------------------------------------------------------------------------------- /Example/Pods/BuildHeaders/OCHamcrest/HCStringEndsWith.h: -------------------------------------------------------------------------------- 1 | ../../OCHamcrest/Source/Library/Text/HCStringEndsWith.h -------------------------------------------------------------------------------- /Example/Pods/BuildHeaders/OCHamcrest/HCStringStartsWith.h: -------------------------------------------------------------------------------- 1 | ../../OCHamcrest/Source/Library/Text/HCStringStartsWith.h -------------------------------------------------------------------------------- /Example/Pods/BuildHeaders/OCHamcrest/HCSubstringMatcher.h: -------------------------------------------------------------------------------- 1 | ../../OCHamcrest/Source/Library/Text/HCSubstringMatcher.h -------------------------------------------------------------------------------- /Example/Pods/BuildHeaders/OCHamcrest/HCTestFailure.h: -------------------------------------------------------------------------------- 1 | ../../OCHamcrest/Source/Core/HCTestFailure.h -------------------------------------------------------------------------------- /Example/Pods/BuildHeaders/OCHamcrest/HCTestFailureHandler.h: -------------------------------------------------------------------------------- 1 | ../../OCHamcrest/Source/Core/HCTestFailureHandler.h -------------------------------------------------------------------------------- /Example/Pods/BuildHeaders/OCHamcrest/HCTestFailureHandlerChain.h: -------------------------------------------------------------------------------- 1 | ../../OCHamcrest/Source/Core/HCTestFailureHandlerChain.h -------------------------------------------------------------------------------- /Example/Pods/BuildHeaders/OCHamcrest/HCWrapInMatcher.h: -------------------------------------------------------------------------------- 1 | ../../OCHamcrest/Source/Core/Helpers/HCWrapInMatcher.h -------------------------------------------------------------------------------- /Example/Pods/BuildHeaders/OCHamcrest/HCXCTestFailureHandler.h: -------------------------------------------------------------------------------- 1 | ../../OCHamcrest/Source/Core/HCXCTestFailureHandler.h -------------------------------------------------------------------------------- /Example/Pods/BuildHeaders/OCHamcrest/OCHamcrest.h: -------------------------------------------------------------------------------- 1 | ../../OCHamcrest/Source/OCHamcrest.h -------------------------------------------------------------------------------- /Example/Pods/BuildHeaders/OCMockito/MKTArgumentCaptor.h: -------------------------------------------------------------------------------- 1 | ../../OCMockito/Source/OCMockito/MKTArgumentCaptor.h -------------------------------------------------------------------------------- /Example/Pods/BuildHeaders/OCMockito/MKTAtLeastTimes.h: -------------------------------------------------------------------------------- 1 | ../../OCMockito/Source/OCMockito/MKTAtLeastTimes.h -------------------------------------------------------------------------------- /Example/Pods/BuildHeaders/OCMockito/MKTBaseMockObject.h: -------------------------------------------------------------------------------- 1 | ../../OCMockito/Source/OCMockito/MKTBaseMockObject.h -------------------------------------------------------------------------------- /Example/Pods/BuildHeaders/OCMockito/MKTCapturingMatcher.h: -------------------------------------------------------------------------------- 1 | ../../OCMockito/Source/OCMockito/MKTCapturingMatcher.h -------------------------------------------------------------------------------- /Example/Pods/BuildHeaders/OCMockito/MKTClassObjectMock.h: -------------------------------------------------------------------------------- 1 | ../../OCMockito/Source/OCMockito/MKTClassObjectMock.h -------------------------------------------------------------------------------- /Example/Pods/BuildHeaders/OCMockito/MKTExactTimes.h: -------------------------------------------------------------------------------- 1 | ../../OCMockito/Source/OCMockito/MKTExactTimes.h -------------------------------------------------------------------------------- /Example/Pods/BuildHeaders/OCMockito/MKTInvocationContainer.h: -------------------------------------------------------------------------------- 1 | ../../OCMockito/Source/OCMockito/MKTInvocationContainer.h -------------------------------------------------------------------------------- /Example/Pods/BuildHeaders/OCMockito/MKTInvocationMatcher.h: -------------------------------------------------------------------------------- 1 | ../../OCMockito/Source/OCMockito/MKTInvocationMatcher.h -------------------------------------------------------------------------------- /Example/Pods/BuildHeaders/OCMockito/MKTMockingProgress.h: -------------------------------------------------------------------------------- 1 | ../../OCMockito/Source/OCMockito/MKTMockingProgress.h -------------------------------------------------------------------------------- /Example/Pods/BuildHeaders/OCMockito/MKTMockitoCore.h: -------------------------------------------------------------------------------- 1 | ../../OCMockito/Source/OCMockito/MKTMockitoCore.h -------------------------------------------------------------------------------- /Example/Pods/BuildHeaders/OCMockito/MKTObjectAndProtocolMock.h: -------------------------------------------------------------------------------- 1 | ../../OCMockito/Source/OCMockito/MKTObjectAndProtocolMock.h -------------------------------------------------------------------------------- /Example/Pods/BuildHeaders/OCMockito/MKTObjectMock.h: -------------------------------------------------------------------------------- 1 | ../../OCMockito/Source/OCMockito/MKTObjectMock.h -------------------------------------------------------------------------------- /Example/Pods/BuildHeaders/OCMockito/MKTOngoingStubbing.h: -------------------------------------------------------------------------------- 1 | ../../OCMockito/Source/OCMockito/MKTOngoingStubbing.h -------------------------------------------------------------------------------- /Example/Pods/BuildHeaders/OCMockito/MKTPrimitiveArgumentMatching.h: -------------------------------------------------------------------------------- 1 | ../../OCMockito/Source/OCMockito/MKTPrimitiveArgumentMatching.h -------------------------------------------------------------------------------- /Example/Pods/BuildHeaders/OCMockito/MKTProtocolMock.h: -------------------------------------------------------------------------------- 1 | ../../OCMockito/Source/OCMockito/MKTProtocolMock.h -------------------------------------------------------------------------------- /Example/Pods/BuildHeaders/OCMockito/MKTStubbedInvocationMatcher.h: -------------------------------------------------------------------------------- 1 | ../../OCMockito/Source/OCMockito/MKTStubbedInvocationMatcher.h -------------------------------------------------------------------------------- /Example/Pods/BuildHeaders/OCMockito/MKTTestLocation.h: -------------------------------------------------------------------------------- 1 | ../../OCMockito/Source/OCMockito/MKTTestLocation.h -------------------------------------------------------------------------------- /Example/Pods/BuildHeaders/OCMockito/MKTVerificationData.h: -------------------------------------------------------------------------------- 1 | ../../OCMockito/Source/OCMockito/MKTVerificationData.h -------------------------------------------------------------------------------- /Example/Pods/BuildHeaders/OCMockito/MKTVerificationMode.h: -------------------------------------------------------------------------------- 1 | ../../OCMockito/Source/OCMockito/MKTVerificationMode.h -------------------------------------------------------------------------------- /Example/Pods/BuildHeaders/OCMockito/NSInvocation+TKAdditions.h: -------------------------------------------------------------------------------- 1 | ../../OCMockito/Source/OCMockito/NSInvocation+TKAdditions.h -------------------------------------------------------------------------------- /Example/Pods/BuildHeaders/OCMockito/OCMockito.h: -------------------------------------------------------------------------------- 1 | ../../OCMockito/Source/OCMockito/OCMockito.h -------------------------------------------------------------------------------- /Example/Pods/BuildHeaders/Specta/SPTExample.h: -------------------------------------------------------------------------------- 1 | ../../Specta/src/SPTExample.h -------------------------------------------------------------------------------- /Example/Pods/BuildHeaders/Specta/SPTExampleGroup.h: -------------------------------------------------------------------------------- 1 | ../../Specta/src/SPTExampleGroup.h -------------------------------------------------------------------------------- /Example/Pods/BuildHeaders/Specta/SPTNestedReporter.h: -------------------------------------------------------------------------------- 1 | ../../Specta/src/SPTNestedReporter.h -------------------------------------------------------------------------------- /Example/Pods/BuildHeaders/Specta/SPTReporter.h: -------------------------------------------------------------------------------- 1 | ../../Specta/src/SPTReporter.h -------------------------------------------------------------------------------- /Example/Pods/BuildHeaders/Specta/SPTSharedExampleGroups.h: -------------------------------------------------------------------------------- 1 | ../../Specta/src/SPTSharedExampleGroups.h -------------------------------------------------------------------------------- /Example/Pods/BuildHeaders/Specta/SPTSpec.h: -------------------------------------------------------------------------------- 1 | ../../Specta/src/SPTSpec.h -------------------------------------------------------------------------------- /Example/Pods/BuildHeaders/Specta/SPTXCTestCase.h: -------------------------------------------------------------------------------- 1 | ../../Specta/src/SPTXCTestCase.h -------------------------------------------------------------------------------- /Example/Pods/BuildHeaders/Specta/SPTXCTestReporter.h: -------------------------------------------------------------------------------- 1 | ../../Specta/src/SPTXCTestReporter.h -------------------------------------------------------------------------------- /Example/Pods/BuildHeaders/Specta/Specta.h: -------------------------------------------------------------------------------- 1 | ../../Specta/src/Specta.h -------------------------------------------------------------------------------- /Example/Pods/BuildHeaders/Specta/SpectaSupport.h: -------------------------------------------------------------------------------- 1 | ../../Specta/src/SpectaSupport.h -------------------------------------------------------------------------------- /Example/Pods/BuildHeaders/Specta/SpectaTypes.h: -------------------------------------------------------------------------------- 1 | ../../Specta/src/SpectaTypes.h -------------------------------------------------------------------------------- /Example/Pods/BuildHeaders/Specta/SpectaUtility.h: -------------------------------------------------------------------------------- 1 | ../../Specta/src/SpectaUtility.h -------------------------------------------------------------------------------- /Example/Pods/BuildHeaders/Specta/XCTestCase+Specta.h: -------------------------------------------------------------------------------- 1 | ../../Specta/src/XCTestCase+Specta.h -------------------------------------------------------------------------------- /Example/Pods/BuildHeaders/Specta/XCTestLog+Specta.h: -------------------------------------------------------------------------------- 1 | ../../Specta/src/XCTestLog+Specta.h -------------------------------------------------------------------------------- /Example/Pods/BuildHeaders/Specta/XCTestRun+Specta.h: -------------------------------------------------------------------------------- 1 | ../../Specta/src/XCTestRun+Specta.h -------------------------------------------------------------------------------- /Example/Pods/Expecta/LICENSE: -------------------------------------------------------------------------------- 1 | Copyright (c) 2011-2012 Specta Team - https://github.com/specta 2 | 3 | Permission is hereby granted, free of charge, to any person obtaining a copy 4 | of this software and associated documentation files (the "Software"), to deal 5 | in the Software without restriction, including without limitation the rights 6 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 7 | copies of the Software, and to permit persons to whom the Software is 8 | furnished to do so, subject to the following conditions: 9 | 10 | The above copyright notice and this permission notice shall be included in 11 | all copies or substantial portions of the Software. 12 | 13 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 14 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 15 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 16 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 17 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 18 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 19 | THE SOFTWARE. 20 | -------------------------------------------------------------------------------- /Example/Pods/Expecta/src/EXPBackwardCompatibility.m: -------------------------------------------------------------------------------- 1 | #import "EXPBackwardCompatibility.h" 2 | 3 | @implementation EXPExpect (BackwardCompatiblity) 4 | 5 | - (EXPExpect *)Not { 6 | return self.toNot; 7 | } 8 | 9 | - (EXPExpect *)isGoing { 10 | return self.will; 11 | } 12 | 13 | - (EXPExpect *)isNotGoing { 14 | return self.willNot; 15 | } 16 | 17 | @end 18 | -------------------------------------------------------------------------------- /Example/Pods/Expecta/src/EXPBlockDefinedMatcher.h: -------------------------------------------------------------------------------- 1 | // 2 | // EXPRuntimeMatcher.h 3 | // Expecta 4 | // 5 | // Created by Luke Redpath on 26/03/2012. 6 | // Copyright (c) 2012 Peter Jihoon Kim. All rights reserved. 7 | // 8 | 9 | #import 10 | #import "EXPMatcher.h" 11 | #import "EXPDefines.h" 12 | 13 | @interface EXPBlockDefinedMatcher : NSObject { 14 | EXPBoolBlock prerequisiteBlock; 15 | EXPBoolBlock matchBlock; 16 | EXPStringBlock failureMessageForToBlock; 17 | EXPStringBlock failureMessageForNotToBlock; 18 | } 19 | 20 | @property(nonatomic, copy) EXPBoolBlock prerequisiteBlock; 21 | @property(nonatomic, copy) EXPBoolBlock matchBlock; 22 | @property(nonatomic, copy) EXPStringBlock failureMessageForToBlock; 23 | @property(nonatomic, copy) EXPStringBlock failureMessageForNotToBlock; 24 | 25 | @end 26 | -------------------------------------------------------------------------------- /Example/Pods/Expecta/src/EXPBlockDefinedMatcher.m: -------------------------------------------------------------------------------- 1 | // 2 | // EXPRuntimeMatcher.m 3 | // Expecta 4 | // 5 | // Created by Luke Redpath on 26/03/2012. 6 | // Copyright (c) 2012 Peter Jihoon Kim. All rights reserved. 7 | // 8 | 9 | #import "EXPBlockDefinedMatcher.h" 10 | 11 | @implementation EXPBlockDefinedMatcher 12 | 13 | - (void)dealloc 14 | { 15 | self.prerequisiteBlock = nil; 16 | self.matchBlock = nil; 17 | self.failureMessageForToBlock = nil; 18 | self.failureMessageForNotToBlock = nil; 19 | 20 | [super dealloc]; 21 | } 22 | 23 | @synthesize prerequisiteBlock; 24 | @synthesize matchBlock; 25 | @synthesize failureMessageForToBlock; 26 | @synthesize failureMessageForNotToBlock; 27 | 28 | - (BOOL)meetsPrerequesiteFor:(id)actual 29 | { 30 | if (self.prerequisiteBlock) { 31 | return self.prerequisiteBlock(); 32 | } 33 | return YES; 34 | } 35 | 36 | - (BOOL)matches:(id)actual 37 | { 38 | if (self.matchBlock) { 39 | return self.matchBlock(); 40 | } 41 | return YES; 42 | } 43 | 44 | - (NSString *)failureMessageForTo:(id)actual 45 | { 46 | if (self.failureMessageForToBlock) { 47 | return self.failureMessageForToBlock(); 48 | } 49 | return nil; 50 | } 51 | 52 | - (NSString *)failureMessageForNotTo:(id)actual 53 | { 54 | if (self.failureMessageForNotToBlock) { 55 | return self.failureMessageForNotToBlock(); 56 | } 57 | return nil; 58 | } 59 | 60 | @end 61 | -------------------------------------------------------------------------------- /Example/Pods/Expecta/src/EXPDefines.h: -------------------------------------------------------------------------------- 1 | // 2 | // EXPDefines.h 3 | // Expecta 4 | // 5 | // Created by Luke Redpath on 26/03/2012. 6 | // Copyright (c) 2012 Peter Jihoon Kim. All rights reserved. 7 | // 8 | 9 | #ifndef Expecta_EXPDefines_h 10 | #define Expecta_EXPDefines_h 11 | 12 | typedef void (^EXPBasicBlock)(); 13 | typedef id (^EXPIdBlock)(); 14 | typedef BOOL (^EXPBoolBlock)(); 15 | typedef NSString *(^EXPStringBlock)(); 16 | 17 | #endif 18 | -------------------------------------------------------------------------------- /Example/Pods/Expecta/src/EXPDoubleTuple.h: -------------------------------------------------------------------------------- 1 | #import 2 | 3 | @interface EXPDoubleTuple : NSObject { 4 | double *_values; 5 | size_t _size; 6 | } 7 | 8 | @property (nonatomic, assign) double *values; 9 | @property (nonatomic, assign) size_t size; 10 | 11 | - (id)initWithDoubleValues:(double *)values size:(size_t)size; 12 | 13 | @end 14 | -------------------------------------------------------------------------------- /Example/Pods/Expecta/src/EXPFloatTuple.h: -------------------------------------------------------------------------------- 1 | #import 2 | 3 | @interface EXPFloatTuple : NSObject { 4 | float *_values; 5 | size_t _size; 6 | } 7 | 8 | @property (nonatomic, assign) float *values; 9 | @property (nonatomic, assign) size_t size; 10 | 11 | - (id)initWithFloatValues:(float *)values size:(size_t)size; 12 | 13 | @end 14 | -------------------------------------------------------------------------------- /Example/Pods/Expecta/src/EXPMatcher.h: -------------------------------------------------------------------------------- 1 | // 2 | // EXPMatcher.h 3 | // Expecta 4 | // 5 | // Created by Luke Redpath on 26/03/2012. 6 | // Copyright (c) 2012 Peter Jihoon Kim. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | @protocol EXPMatcher 12 | 13 | - (BOOL)matches:(id)actual; 14 | 15 | @optional 16 | - (BOOL)meetsPrerequesiteFor:(id)actual; 17 | - (NSString *)failureMessageForTo:(id)actual; 18 | - (NSString *)failureMessageForNotTo:(id)actual; 19 | 20 | @end 21 | -------------------------------------------------------------------------------- /Example/Pods/Expecta/src/EXPUnsupportedObject.h: -------------------------------------------------------------------------------- 1 | #import 2 | 3 | @interface EXPUnsupportedObject : NSObject { 4 | NSString *_type; 5 | } 6 | 7 | @property (nonatomic, retain) NSString *type; 8 | 9 | - (id)initWithType:(NSString *)type; 10 | 11 | @end 12 | -------------------------------------------------------------------------------- /Example/Pods/Expecta/src/EXPUnsupportedObject.m: -------------------------------------------------------------------------------- 1 | #import "EXPUnsupportedObject.h" 2 | 3 | @implementation EXPUnsupportedObject 4 | 5 | @synthesize type=_type; 6 | 7 | - (id)initWithType:(NSString *)type { 8 | self = [super init]; 9 | if(self) { 10 | self.type = type; 11 | } 12 | return self; 13 | } 14 | 15 | - (void)dealloc { 16 | self.type = nil; 17 | [super dealloc]; 18 | } 19 | 20 | @end 21 | -------------------------------------------------------------------------------- /Example/Pods/Expecta/src/Expecta.h: -------------------------------------------------------------------------------- 1 | #import 2 | #import "ExpectaSupport.h" 3 | 4 | #define EXPObjectify(value) _EXPObjectify(@encode(__typeof__((value))), (value)) 5 | 6 | #define EXP_expect(actual) _EXP_expect(self, __LINE__, __FILE__, ^id{ return EXPObjectify((actual)); }) 7 | 8 | #define EXPMatcherInterface(matcherName, matcherArguments) _EXPMatcherInterface(matcherName, matcherArguments) 9 | #define EXPMatcherImplementationBegin(matcherName, matcherArguments) _EXPMatcherImplementationBegin(matcherName, matcherArguments) 10 | #define EXPMatcherImplementationEnd _EXPMatcherImplementationEnd 11 | 12 | #import "EXPMatchers.h" 13 | 14 | #ifdef EXP_SHORTHAND 15 | # define expect(actual) EXP_expect((actual)) 16 | #endif 17 | 18 | #ifdef EXP_OLD_SYNTAX 19 | # import "EXPBackwardCompatibility.h" 20 | #endif 21 | 22 | @interface Expecta : NSObject 23 | 24 | + (NSTimeInterval)asynchronousTestTimeout; 25 | + (void)setAsynchronousTestTimeout:(NSTimeInterval)timeout; 26 | 27 | @end 28 | -------------------------------------------------------------------------------- /Example/Pods/Expecta/src/Expecta.m: -------------------------------------------------------------------------------- 1 | #import "Expecta.h" 2 | 3 | @implementation Expecta 4 | 5 | static NSTimeInterval _asynchronousTestTimeout = 1.0; 6 | 7 | + (NSTimeInterval)asynchronousTestTimeout { 8 | return _asynchronousTestTimeout; 9 | } 10 | 11 | + (void)setAsynchronousTestTimeout:(NSTimeInterval)timeout { 12 | _asynchronousTestTimeout = timeout; 13 | } 14 | 15 | @end -------------------------------------------------------------------------------- /Example/Pods/Expecta/src/NSObject+Expecta.h: -------------------------------------------------------------------------------- 1 | #import 2 | 3 | @interface NSObject (Expecta) 4 | 5 | #ifdef USE_XCTEST 6 | - (void)recordFailureWithDescription:(NSString *)description 7 | inFile:(NSString *)filename 8 | atLine:(NSUInteger)lineNumber 9 | expected:(BOOL)expected; 10 | #else 11 | - (void)failWithException:(NSException *)exception; 12 | #endif 13 | 14 | @end 15 | -------------------------------------------------------------------------------- /Example/Pods/Expecta/src/NSValue+Expecta.h: -------------------------------------------------------------------------------- 1 | #import 2 | 3 | @interface NSValue (Expecta) 4 | 5 | - (const char *)_EXP_objCType; 6 | - (void)set_EXP_objCType:(const char *)_EXP_objCType; 7 | 8 | @end 9 | -------------------------------------------------------------------------------- /Example/Pods/Expecta/src/NSValue+Expecta.m: -------------------------------------------------------------------------------- 1 | #import "NSValue+Expecta.h" 2 | #import 3 | #import "Expecta.h" 4 | 5 | EXPFixCategoriesBug(NSValue_Expecta); 6 | 7 | @implementation NSValue (Expecta) 8 | 9 | static char _EXP_typeKey; 10 | 11 | - (const char *)_EXP_objCType { 12 | return [(NSString *)objc_getAssociatedObject(self, &_EXP_typeKey) cStringUsingEncoding:NSASCIIStringEncoding]; 13 | } 14 | 15 | - (void)set_EXP_objCType:(const char *)_EXP_objCType { 16 | objc_setAssociatedObject(self, &_EXP_typeKey, 17 | [NSString stringWithCString:_EXP_objCType encoding:NSASCIIStringEncoding], 18 | OBJC_ASSOCIATION_COPY_NONATOMIC); 19 | } 20 | 21 | @end 22 | -------------------------------------------------------------------------------- /Example/Pods/Expecta/src/matchers/EXPMatcherHelpers.h: -------------------------------------------------------------------------------- 1 | #import 2 | 3 | BOOL EXPIsValuePointer(NSValue *value); 4 | BOOL EXPIsNumberFloat(NSNumber *number); 5 | -------------------------------------------------------------------------------- /Example/Pods/Expecta/src/matchers/EXPMatcherHelpers.m: -------------------------------------------------------------------------------- 1 | #import "EXPMatcherHelpers.h" 2 | 3 | BOOL EXPIsValuePointer(NSValue *value) { 4 | return [value objCType][0] == @encode(void *)[0]; 5 | } 6 | 7 | BOOL EXPIsNumberFloat(NSNumber *number) { 8 | return strcmp([number objCType], @encode(float)) == 0; 9 | } 10 | -------------------------------------------------------------------------------- /Example/Pods/Expecta/src/matchers/EXPMatchers+beCloseTo.h: -------------------------------------------------------------------------------- 1 | #import "Expecta.h" 2 | 3 | EXPMatcherInterface(_beCloseToWithin, (id expected, id within)); 4 | EXPMatcherInterface(beCloseToWithin, (id expected, id within)); 5 | 6 | #define beCloseTo(expected) _beCloseToWithin(EXPObjectify((expected)), nil) 7 | #define beCloseToWithin(expected, range) _beCloseToWithin(EXPObjectify((expected)), EXPObjectify((range))) 8 | -------------------------------------------------------------------------------- /Example/Pods/Expecta/src/matchers/EXPMatchers+beFalsy.h: -------------------------------------------------------------------------------- 1 | #import "Expecta.h" 2 | 3 | EXPMatcherInterface(beFalsy, (void)); 4 | -------------------------------------------------------------------------------- /Example/Pods/Expecta/src/matchers/EXPMatchers+beFalsy.m: -------------------------------------------------------------------------------- 1 | #import "EXPMatchers+beFalsy.h" 2 | #import "EXPMatcherHelpers.h" 3 | 4 | EXPMatcherImplementationBegin(beFalsy, (void)) { 5 | match(^BOOL{ 6 | if([actual isKindOfClass:[NSNumber class]]) { 7 | return ![(NSNumber *)actual boolValue]; 8 | } else if([actual isKindOfClass:[NSValue class]]) { 9 | if(EXPIsValuePointer((NSValue *)actual)) { 10 | return ![(NSValue *)actual pointerValue]; 11 | } 12 | } 13 | return !actual; 14 | }); 15 | 16 | failureMessageForTo(^NSString *{ 17 | return [NSString stringWithFormat:@"expected: a falsy value, got: %@, which is truthy", EXPDescribeObject(actual)]; 18 | }); 19 | 20 | failureMessageForNotTo(^NSString *{ 21 | return [NSString stringWithFormat:@"expected: a non-falsy value, got: %@, which is falsy", EXPDescribeObject(actual)]; 22 | }); 23 | } 24 | EXPMatcherImplementationEnd 25 | -------------------------------------------------------------------------------- /Example/Pods/Expecta/src/matchers/EXPMatchers+beGreaterThan.h: -------------------------------------------------------------------------------- 1 | #import "Expecta.h" 2 | 3 | EXPMatcherInterface(_beGreaterThan, (id expected)); 4 | EXPMatcherInterface(beGreaterThan, (id expected)); 5 | 6 | #define beGreaterThan(expected) _beGreaterThan(EXPObjectify((expected))) 7 | -------------------------------------------------------------------------------- /Example/Pods/Expecta/src/matchers/EXPMatchers+beGreaterThan.m: -------------------------------------------------------------------------------- 1 | #import "EXPMatchers+beGreaterThan.h" 2 | #import "EXPMatcherHelpers.h" 3 | 4 | EXPMatcherImplementationBegin(_beGreaterThan, (id expected)) { 5 | match(^BOOL{ 6 | if ([actual respondsToSelector:@selector(compare:)]) { 7 | return [actual compare:expected] == NSOrderedDescending; 8 | } 9 | return NO; 10 | }); 11 | 12 | failureMessageForTo(^NSString *{ 13 | return [NSString stringWithFormat:@"expected: %@ to be greater than %@", EXPDescribeObject(actual), EXPDescribeObject(expected)]; 14 | }); 15 | 16 | failureMessageForNotTo(^NSString *{ 17 | return [NSString stringWithFormat:@"expected: %@ not to be greater than %@", EXPDescribeObject(actual), EXPDescribeObject(expected)]; 18 | }); 19 | } 20 | EXPMatcherImplementationEnd -------------------------------------------------------------------------------- /Example/Pods/Expecta/src/matchers/EXPMatchers+beGreaterThanOrEqualTo.h: -------------------------------------------------------------------------------- 1 | #import "Expecta.h" 2 | 3 | EXPMatcherInterface(_beGreaterThanOrEqualTo, (id expected)); 4 | EXPMatcherInterface(beGreaterThanOrEqualTo, (id expected)); 5 | 6 | #define beGreaterThanOrEqualTo(expected) _beGreaterThanOrEqualTo(EXPObjectify((expected))) 7 | -------------------------------------------------------------------------------- /Example/Pods/Expecta/src/matchers/EXPMatchers+beGreaterThanOrEqualTo.m: -------------------------------------------------------------------------------- 1 | #import "EXPMatchers+beGreaterThanOrEqualTo.h" 2 | #import "EXPMatcherHelpers.h" 3 | 4 | EXPMatcherImplementationBegin(_beGreaterThanOrEqualTo, (id expected)) { 5 | match(^BOOL{ 6 | if ([actual respondsToSelector:@selector(compare:)]) { 7 | return [actual compare:expected] != NSOrderedAscending; 8 | } 9 | return NO; 10 | }); 11 | 12 | failureMessageForTo(^NSString *{ 13 | return [NSString stringWithFormat:@"expected: %@ to be greater than or equal to %@", EXPDescribeObject(actual), EXPDescribeObject(expected)]; 14 | }); 15 | 16 | failureMessageForNotTo(^NSString *{ 17 | return [NSString stringWithFormat:@"expected: %@ not to be greater than or equal to %@", EXPDescribeObject(actual), EXPDescribeObject(expected)]; 18 | }); 19 | } 20 | EXPMatcherImplementationEnd -------------------------------------------------------------------------------- /Example/Pods/Expecta/src/matchers/EXPMatchers+beIdenticalTo.h: -------------------------------------------------------------------------------- 1 | #import "Expecta.h" 2 | 3 | EXPMatcherInterface(_beIdenticalTo, (void *expected)); 4 | EXPMatcherInterface(beIdenticalTo, (void *expected)); // to aid code completion 5 | 6 | #if __has_feature(objc_arc) 7 | #define beIdenticalTo(expected) _beIdenticalTo((__bridge void*)expected) 8 | #else 9 | #define beIdenticalTo _beIdenticalTo 10 | #endif 11 | -------------------------------------------------------------------------------- /Example/Pods/Expecta/src/matchers/EXPMatchers+beIdenticalTo.m: -------------------------------------------------------------------------------- 1 | #import "EXPMatchers+equal.h" 2 | #import "EXPMatcherHelpers.h" 3 | 4 | EXPMatcherImplementationBegin(beIdenticalTo, (void *expected)) { 5 | match(^BOOL{ 6 | if(actual == expected) { 7 | return YES; 8 | } else if([actual isKindOfClass:[NSValue class]] && EXPIsValuePointer((NSValue *)actual)) { 9 | if([(NSValue *)actual pointerValue] == expected) { 10 | return YES; 11 | } 12 | } 13 | return NO; 14 | }); 15 | 16 | failureMessageForTo(^NSString *{ 17 | return [NSString stringWithFormat:@"expected: <%p>, got: <%p>", expected, actual]; 18 | }); 19 | 20 | failureMessageForNotTo(^NSString *{ 21 | return [NSString stringWithFormat:@"expected: not <%p>, got: <%p>", expected, actual]; 22 | }); 23 | } 24 | EXPMatcherImplementationEnd 25 | -------------------------------------------------------------------------------- /Example/Pods/Expecta/src/matchers/EXPMatchers+beInTheRangeOf.h: -------------------------------------------------------------------------------- 1 | #import "Expecta.h" 2 | 3 | EXPMatcherInterface(_beInTheRangeOf, (id expectedLowerBound, id expectedUpperBound)); 4 | EXPMatcherInterface(beInTheRangeOf, (id expectedLowerBound, id expectedUpperBound)); 5 | 6 | #define beInTheRangeOf(expectedLowerBound, expectedUpperBound) _beInTheRangeOf(EXPObjectify((expectedLowerBound)), EXPObjectify((expectedUpperBound))) 7 | -------------------------------------------------------------------------------- /Example/Pods/Expecta/src/matchers/EXPMatchers+beInstanceOf.h: -------------------------------------------------------------------------------- 1 | #import "Expecta.h" 2 | 3 | EXPMatcherInterface(beInstanceOf, (Class expected)); 4 | 5 | #define beAnInstanceOf beInstanceOf 6 | #define beMemberOf beInstanceOf 7 | #define beAMemberOf beInstanceOf 8 | -------------------------------------------------------------------------------- /Example/Pods/Expecta/src/matchers/EXPMatchers+beInstanceOf.m: -------------------------------------------------------------------------------- 1 | #import "EXPMatchers+beInstanceOf.h" 2 | 3 | EXPMatcherImplementationBegin(beInstanceOf, (Class expected)) { 4 | BOOL actualIsNil = (actual == nil); 5 | BOOL expectedIsNil = (expected == nil); 6 | 7 | prerequisite(^BOOL{ 8 | return !(actualIsNil || expectedIsNil); 9 | }); 10 | 11 | match(^BOOL{ 12 | return [actual isMemberOfClass:expected]; 13 | }); 14 | 15 | failureMessageForTo(^NSString *{ 16 | if(actualIsNil) return @"the actual value is nil/null"; 17 | if(expectedIsNil) return @"the expected value is nil/null"; 18 | return [NSString stringWithFormat:@"expected: an instance of %@, got: an instance of %@", [expected class], [actual class]]; 19 | }); 20 | 21 | failureMessageForNotTo(^NSString *{ 22 | if(actualIsNil) return @"the actual value is nil/null"; 23 | if(expectedIsNil) return @"the expected value is nil/null"; 24 | return [NSString stringWithFormat:@"expected: not an instance of %@, got: an instance of %@", [expected class], [actual class]]; 25 | }); 26 | } 27 | EXPMatcherImplementationEnd 28 | -------------------------------------------------------------------------------- /Example/Pods/Expecta/src/matchers/EXPMatchers+beKindOf.h: -------------------------------------------------------------------------------- 1 | #import "Expecta.h" 2 | 3 | EXPMatcherInterface(beKindOf, (Class expected)); 4 | 5 | #define beAKindOf beKindOf 6 | -------------------------------------------------------------------------------- /Example/Pods/Expecta/src/matchers/EXPMatchers+beKindOf.m: -------------------------------------------------------------------------------- 1 | #import "EXPMatchers+beKindOf.h" 2 | 3 | EXPMatcherImplementationBegin(beKindOf, (Class expected)) { 4 | BOOL actualIsNil = (actual == nil); 5 | BOOL expectedIsNil = (expected == nil); 6 | 7 | prerequisite(^BOOL{ 8 | return !(actualIsNil || expectedIsNil); 9 | }); 10 | 11 | match(^BOOL{ 12 | return [actual isKindOfClass:expected]; 13 | }); 14 | 15 | failureMessageForTo(^NSString *{ 16 | if(actualIsNil) return @"the actual value is nil/null"; 17 | if(expectedIsNil) return @"the expected value is nil/null"; 18 | return [NSString stringWithFormat:@"expected: a kind of %@, got: an instance of %@, which is not a kind of %@", [expected class], [actual class], [expected class]]; 19 | }); 20 | 21 | failureMessageForNotTo(^NSString *{ 22 | if(actualIsNil) return @"the actual value is nil/null"; 23 | if(expectedIsNil) return @"the expected value is nil/null"; 24 | return [NSString stringWithFormat:@"expected: not a kind of %@, got: an instance of %@, which is a kind of %@", [expected class], [actual class], [expected class]]; 25 | }); 26 | } 27 | EXPMatcherImplementationEnd 28 | -------------------------------------------------------------------------------- /Example/Pods/Expecta/src/matchers/EXPMatchers+beLessThan.h: -------------------------------------------------------------------------------- 1 | #import "Expecta.h" 2 | 3 | EXPMatcherInterface(_beLessThan, (id expected)); 4 | EXPMatcherInterface(beLessThan, (id expected)); 5 | 6 | #define beLessThan(expected) _beLessThan(EXPObjectify((expected))) 7 | -------------------------------------------------------------------------------- /Example/Pods/Expecta/src/matchers/EXPMatchers+beLessThan.m: -------------------------------------------------------------------------------- 1 | #import "EXPMatchers+beLessThan.h" 2 | #import "EXPMatcherHelpers.h" 3 | 4 | EXPMatcherImplementationBegin(_beLessThan, (id expected)) { 5 | match(^BOOL{ 6 | if ([actual respondsToSelector:@selector(compare:)]) { 7 | return [actual compare:expected] == NSOrderedAscending; 8 | } 9 | return NO; 10 | }); 11 | 12 | failureMessageForTo(^NSString *{ 13 | return [NSString stringWithFormat:@"expected: %@ to be less than %@", EXPDescribeObject(actual), EXPDescribeObject(expected)]; 14 | }); 15 | 16 | failureMessageForNotTo(^NSString *{ 17 | return [NSString stringWithFormat:@"expected: %@ not to be less than %@", EXPDescribeObject(actual), EXPDescribeObject(expected)]; 18 | }); 19 | } 20 | EXPMatcherImplementationEnd -------------------------------------------------------------------------------- /Example/Pods/Expecta/src/matchers/EXPMatchers+beLessThanOrEqualTo.h: -------------------------------------------------------------------------------- 1 | #import "Expecta.h" 2 | 3 | EXPMatcherInterface(_beLessThanOrEqualTo, (id expected)); 4 | EXPMatcherInterface(beLessThanOrEqualTo, (id expected)); 5 | 6 | #define beLessThanOrEqualTo(expected) _beLessThanOrEqualTo(EXPObjectify((expected))) 7 | -------------------------------------------------------------------------------- /Example/Pods/Expecta/src/matchers/EXPMatchers+beLessThanOrEqualTo.m: -------------------------------------------------------------------------------- 1 | #import "EXPMatchers+beLessThanOrEqualTo.h" 2 | #import "EXPMatcherHelpers.h" 3 | 4 | EXPMatcherImplementationBegin(_beLessThanOrEqualTo, (id expected)) { 5 | match(^BOOL{ 6 | if ([actual respondsToSelector:@selector(compare:)]) { 7 | return [actual compare:expected] != NSOrderedDescending; 8 | } 9 | return NO; 10 | }); 11 | 12 | failureMessageForTo(^NSString *{ 13 | return [NSString stringWithFormat:@"expected: %@ to be less than or equal to %@", EXPDescribeObject(actual), EXPDescribeObject(expected)]; 14 | }); 15 | 16 | failureMessageForNotTo(^NSString *{ 17 | return [NSString stringWithFormat:@"expected: %@ not to be less than or equal to %@", EXPDescribeObject(actual), EXPDescribeObject(expected)]; 18 | }); 19 | } 20 | EXPMatcherImplementationEnd -------------------------------------------------------------------------------- /Example/Pods/Expecta/src/matchers/EXPMatchers+beNil.h: -------------------------------------------------------------------------------- 1 | #import "Expecta.h" 2 | 3 | EXPMatcherInterface(beNil, (void)); 4 | 5 | #define beNull beNil 6 | -------------------------------------------------------------------------------- /Example/Pods/Expecta/src/matchers/EXPMatchers+beNil.m: -------------------------------------------------------------------------------- 1 | #import "EXPMatchers+beNil.h" 2 | 3 | EXPMatcherImplementationBegin(beNil, (void)) { 4 | match(^BOOL{ 5 | return actual == nil; 6 | }); 7 | 8 | failureMessageForTo(^NSString *{ 9 | return [NSString stringWithFormat:@"expected: nil/null, got: %@", EXPDescribeObject(actual)]; 10 | }); 11 | 12 | failureMessageForNotTo(^NSString *{ 13 | return [NSString stringWithFormat:@"expected: not nil/null, got: %@", EXPDescribeObject(actual)]; 14 | }); 15 | } 16 | EXPMatcherImplementationEnd 17 | -------------------------------------------------------------------------------- /Example/Pods/Expecta/src/matchers/EXPMatchers+beSubclassOf.h: -------------------------------------------------------------------------------- 1 | #import "Expecta.h" 2 | 3 | EXPMatcherInterface(beSubclassOf, (Class expected)); 4 | 5 | #define beASubclassOf beSubclassOf 6 | -------------------------------------------------------------------------------- /Example/Pods/Expecta/src/matchers/EXPMatchers+beSubclassOf.m: -------------------------------------------------------------------------------- 1 | #import "EXPMatchers+beSubclassOf.h" 2 | #import "NSValue+Expecta.h" 3 | #import 4 | 5 | EXPMatcherImplementationBegin(beSubclassOf, (Class expected)) { 6 | __block BOOL actualIsClass = YES; 7 | 8 | prerequisite(^BOOL { 9 | actualIsClass = class_isMetaClass(object_getClass(actual)); 10 | return actualIsClass; 11 | }); 12 | 13 | match(^BOOL{ 14 | return [actual isSubclassOfClass:expected]; 15 | }); 16 | 17 | failureMessageForTo(^NSString *{ 18 | if(!actualIsClass) return @"the actual value is not a Class"; 19 | return [NSString stringWithFormat:@"expected: a subclass of %@, got: a class %@, which is not a subclass of %@", [expected class], actual, [expected class]]; 20 | }); 21 | 22 | failureMessageForNotTo(^NSString *{ 23 | if(!actualIsClass) return @"the actual value is not a Class"; 24 | return [NSString stringWithFormat:@"expected: not a subclass of %@, got: a class %@, which is a subclass of %@", [expected class], actual, [expected class]]; 25 | }); 26 | } 27 | EXPMatcherImplementationEnd 28 | -------------------------------------------------------------------------------- /Example/Pods/Expecta/src/matchers/EXPMatchers+beSupersetOf.h: -------------------------------------------------------------------------------- 1 | #import "Expecta.h" 2 | 3 | EXPMatcherInterface(beSupersetOf, (id subset)); 4 | 5 | -------------------------------------------------------------------------------- /Example/Pods/Expecta/src/matchers/EXPMatchers+beTruthy.h: -------------------------------------------------------------------------------- 1 | #import "Expecta.h" 2 | 3 | EXPMatcherInterface(beTruthy, (void)); 4 | -------------------------------------------------------------------------------- /Example/Pods/Expecta/src/matchers/EXPMatchers+beTruthy.m: -------------------------------------------------------------------------------- 1 | #import "EXPMatchers+beTruthy.h" 2 | #import "EXPMatcherHelpers.h" 3 | 4 | EXPMatcherImplementationBegin(beTruthy, (void)) { 5 | match(^BOOL{ 6 | if([actual isKindOfClass:[NSNumber class]]) { 7 | return !![(NSNumber *)actual boolValue]; 8 | } else if([actual isKindOfClass:[NSValue class]]) { 9 | if(EXPIsValuePointer((NSValue *)actual)) { 10 | return !![(NSValue *)actual pointerValue]; 11 | } 12 | } 13 | return !!actual; 14 | }); 15 | 16 | failureMessageForTo(^NSString *{ 17 | return [NSString stringWithFormat:@"expected: a truthy value, got: %@, which is falsy", EXPDescribeObject(actual)]; 18 | }); 19 | 20 | failureMessageForNotTo(^NSString *{ 21 | return [NSString stringWithFormat:@"expected: a non-truthy value, got: %@, which is truthy", EXPDescribeObject(actual)]; 22 | }); 23 | } 24 | EXPMatcherImplementationEnd 25 | -------------------------------------------------------------------------------- /Example/Pods/Expecta/src/matchers/EXPMatchers+beginWith.h: -------------------------------------------------------------------------------- 1 | #import "Expecta.h" 2 | 3 | EXPMatcherInterface(beginWith, (id expected)); 4 | 5 | #define startWith beginWith 6 | -------------------------------------------------------------------------------- /Example/Pods/Expecta/src/matchers/EXPMatchers+conformTo.h: -------------------------------------------------------------------------------- 1 | #import "Expecta.h" 2 | 3 | EXPMatcherInterface(conformTo, (Protocol *expected)); 4 | -------------------------------------------------------------------------------- /Example/Pods/Expecta/src/matchers/EXPMatchers+conformTo.m: -------------------------------------------------------------------------------- 1 | #import "EXPMatchers+conformTo.h" 2 | #import "NSValue+Expecta.h" 3 | #import 4 | 5 | EXPMatcherImplementationBegin(conformTo, (Protocol *expected)) { 6 | BOOL actualIsNil = (actual == nil); 7 | BOOL expectedIsNil = (expected == nil); 8 | 9 | prerequisite(^BOOL{ 10 | return !(actualIsNil || expectedIsNil); 11 | }); 12 | 13 | match(^BOOL{ 14 | return [actual conformsToProtocol:expected]; 15 | }); 16 | 17 | failureMessageForTo(^NSString *{ 18 | if(actualIsNil) return @"the object is nil/null"; 19 | if(expectedIsNil) return @"the protocol is nil/null"; 20 | 21 | NSString *name = NSStringFromProtocol(expected); 22 | return [NSString stringWithFormat:@"expected: %@ to conform to %@", actual, name]; 23 | }); 24 | 25 | failureMessageForNotTo(^NSString *{ 26 | if(actualIsNil) return @"the object is nil/null"; 27 | if(expectedIsNil) return @"the protocol is nil/null"; 28 | 29 | NSString *name = NSStringFromProtocol(expected); 30 | return [NSString stringWithFormat:@"expected: %@ not to conform to %@", actual, name]; 31 | }); 32 | } 33 | EXPMatcherImplementationEnd 34 | -------------------------------------------------------------------------------- /Example/Pods/Expecta/src/matchers/EXPMatchers+contain.h: -------------------------------------------------------------------------------- 1 | #import "Expecta.h" 2 | 3 | EXPMatcherInterface(_contain, (id expected)); 4 | EXPMatcherInterface(contain, (id expected)); // to aid code completion 5 | #define contain(expected) _contain(EXPObjectify((expected))) 6 | -------------------------------------------------------------------------------- /Example/Pods/Expecta/src/matchers/EXPMatchers+endWith.h: -------------------------------------------------------------------------------- 1 | #import "Expecta.h" 2 | 3 | EXPMatcherInterface(endWith, (id expected)); 4 | -------------------------------------------------------------------------------- /Example/Pods/Expecta/src/matchers/EXPMatchers+equal.h: -------------------------------------------------------------------------------- 1 | #import "Expecta.h" 2 | 3 | EXPMatcherInterface(_equal, (id expected)); 4 | EXPMatcherInterface(equal, (id expected)); // to aid code completion 5 | #define equal(...) _equal(EXPObjectify((__VA_ARGS__))) 6 | -------------------------------------------------------------------------------- /Example/Pods/Expecta/src/matchers/EXPMatchers+equal.m: -------------------------------------------------------------------------------- 1 | #import "EXPMatchers+equal.h" 2 | #import "EXPMatcherHelpers.h" 3 | 4 | EXPMatcherImplementationBegin(_equal, (id expected)) { 5 | match(^BOOL{ 6 | if((actual == expected) || [actual isEqual:expected]) { 7 | return YES; 8 | } else if([actual isKindOfClass:[NSNumber class]] && [expected isKindOfClass:[NSNumber class]]) { 9 | if(EXPIsNumberFloat((NSNumber *)actual) || EXPIsNumberFloat((NSNumber *)expected)) { 10 | return [(NSNumber *)actual floatValue] == [(NSNumber *)expected floatValue]; 11 | } 12 | } 13 | return NO; 14 | }); 15 | 16 | failureMessageForTo(^NSString *{ 17 | return [NSString stringWithFormat:@"expected: %@, got: %@", EXPDescribeObject(expected), EXPDescribeObject(actual)]; 18 | }); 19 | 20 | failureMessageForNotTo(^NSString *{ 21 | return [NSString stringWithFormat:@"expected: not %@, got: %@", EXPDescribeObject(expected), EXPDescribeObject(actual)]; 22 | }); 23 | } 24 | EXPMatcherImplementationEnd 25 | -------------------------------------------------------------------------------- /Example/Pods/Expecta/src/matchers/EXPMatchers+haveCountOf.h: -------------------------------------------------------------------------------- 1 | #import "Expecta.h" 2 | 3 | EXPMatcherInterface(haveCountOf, (NSUInteger expected)); 4 | 5 | #define haveCount haveCountOf 6 | #define haveACountOf haveCountOf 7 | #define haveLength haveCountOf 8 | #define haveLengthOf haveCountOf 9 | #define haveALengthOf haveCountOf 10 | #define beEmpty() haveCountOf(0) 11 | -------------------------------------------------------------------------------- /Example/Pods/Expecta/src/matchers/EXPMatchers+notify.h: -------------------------------------------------------------------------------- 1 | #import "Expecta.h" 2 | 3 | EXPMatcherInterface(notify, (id expectedNotification)); 4 | 5 | -------------------------------------------------------------------------------- /Example/Pods/Expecta/src/matchers/EXPMatchers+raise.h: -------------------------------------------------------------------------------- 1 | #import "Expecta.h" 2 | 3 | EXPMatcherInterface(raise, (NSString *expectedExceptionName)); 4 | #define raiseAny() raise(nil) 5 | -------------------------------------------------------------------------------- /Example/Pods/Expecta/src/matchers/EXPMatchers+raise.m: -------------------------------------------------------------------------------- 1 | #import "EXPMatchers+raise.h" 2 | #import "EXPDefines.h" 3 | 4 | EXPMatcherImplementationBegin(raise, (NSString *expectedExceptionName)) { 5 | __block NSException *exceptionCaught = nil; 6 | 7 | match(^BOOL{ 8 | BOOL expectedExceptionCaught = NO; 9 | @try { 10 | ((EXPBasicBlock)actual)(); 11 | } @catch(NSException *e) { 12 | exceptionCaught = e; 13 | expectedExceptionCaught = (expectedExceptionName == nil) || [[exceptionCaught name] isEqualToString:expectedExceptionName]; 14 | } 15 | return expectedExceptionCaught; 16 | }); 17 | 18 | failureMessageForTo(^NSString *{ 19 | return [NSString stringWithFormat:@"expected: %@, got: %@", 20 | expectedExceptionName ? expectedExceptionName : @"any exception", 21 | exceptionCaught ? [exceptionCaught name] : @"no exception"]; 22 | }); 23 | 24 | failureMessageForNotTo(^NSString *{ 25 | return [NSString stringWithFormat:@"expected: %@, got: %@", 26 | expectedExceptionName ? [NSString stringWithFormat:@"not %@", expectedExceptionName] : @"no exception", 27 | exceptionCaught ? [exceptionCaught name] : @"no exception"]; 28 | }); 29 | } 30 | EXPMatcherImplementationEnd 31 | -------------------------------------------------------------------------------- /Example/Pods/Expecta/src/matchers/EXPMatchers+raiseWithReason.h: -------------------------------------------------------------------------------- 1 | #import "Expecta.h" 2 | 3 | EXPMatcherInterface(raiseWithReason, (NSString *expectedExceptionName, NSString *expectedReason)); 4 | -------------------------------------------------------------------------------- /Example/Pods/Expecta/src/matchers/EXPMatchers+respondTo.h: -------------------------------------------------------------------------------- 1 | #import "Expecta.h" 2 | 3 | EXPMatcherInterface(respondTo, (SEL expected)); 4 | -------------------------------------------------------------------------------- /Example/Pods/Expecta/src/matchers/EXPMatchers+respondTo.m: -------------------------------------------------------------------------------- 1 | #import "EXPMatchers+respondTo.h" 2 | #import "EXPMatcherHelpers.h" 3 | 4 | EXPMatcherImplementationBegin(respondTo, (SEL expected)) { 5 | BOOL actualIsNil = (actual == nil); 6 | BOOL expectedIsNull = (expected == NULL); 7 | 8 | prerequisite (^BOOL { 9 | return !(actualIsNil || expectedIsNull); 10 | }); 11 | 12 | match(^BOOL { 13 | return [actual respondsToSelector:expected]; 14 | }); 15 | 16 | failureMessageForTo(^NSString *{ 17 | if (actualIsNil) return @"the object is nil/null"; 18 | if (expectedIsNull) return @"the selector is null"; 19 | return [NSString stringWithFormat:@"expected: %@ to respond to %@", EXPDescribeObject(actual), NSStringFromSelector(expected)]; 20 | }); 21 | 22 | failureMessageForNotTo(^NSString *{ 23 | if (actualIsNil) return @"the object is nil/null"; 24 | if (expectedIsNull) return @"the selector is null"; 25 | return [NSString stringWithFormat:@"expected: %@ not to respond to %@", EXPDescribeObject(actual), NSStringFromSelector(expected)]; 26 | }); 27 | } 28 | EXPMatcherImplementationEnd 29 | -------------------------------------------------------------------------------- /Example/Pods/Expecta/src/matchers/EXPMatchers.h: -------------------------------------------------------------------------------- 1 | #import "EXPMatchers+beNil.h" 2 | #import "EXPMatchers+equal.h" 3 | #import "EXPMatchers+beInstanceOf.h" 4 | #import "EXPMatchers+beKindOf.h" 5 | #import "EXPMatchers+beSubclassOf.h" 6 | #import "EXPMatchers+conformTo.h" 7 | #import "EXPMatchers+beTruthy.h" 8 | #import "EXPMatchers+beFalsy.h" 9 | #import "EXPMatchers+contain.h" 10 | #import "EXPMatchers+beSupersetOf.h" 11 | #import "EXPMatchers+haveCountOf.h" 12 | #import "EXPMatchers+beIdenticalTo.h" 13 | #import "EXPMatchers+beGreaterThan.h" 14 | #import "EXPMatchers+beGreaterThanOrEqualTo.h" 15 | #import "EXPMatchers+beLessThan.h" 16 | #import "EXPMatchers+beLessThanOrEqualTo.h" 17 | #import "EXPMatchers+beInTheRangeOf.h" 18 | #import "EXPMatchers+beCloseTo.h" 19 | #import "EXPMatchers+raise.h" 20 | #import "EXPMatchers+raiseWithReason.h" 21 | #import "EXPMatchers+respondTo.h" 22 | #import "EXPMatchers+notify.h" 23 | #import "EXPMatchers+beginWith.h" 24 | #import "EXPMatchers+endWith.h" 25 | -------------------------------------------------------------------------------- /Example/Pods/Headers/ASCScreenBrightnessDetector/ASCScreenBrightnessDetector.h: -------------------------------------------------------------------------------- 1 | ../../../../Classes/ASCScreenBrightnessDetector.h -------------------------------------------------------------------------------- /Example/Pods/Headers/Expecta/EXPBackwardCompatibility.h: -------------------------------------------------------------------------------- 1 | ../../Expecta/src/EXPBackwardCompatibility.h -------------------------------------------------------------------------------- /Example/Pods/Headers/Expecta/EXPBlockDefinedMatcher.h: -------------------------------------------------------------------------------- 1 | ../../Expecta/src/EXPBlockDefinedMatcher.h -------------------------------------------------------------------------------- /Example/Pods/Headers/Expecta/EXPDefines.h: -------------------------------------------------------------------------------- 1 | ../../Expecta/src/EXPDefines.h -------------------------------------------------------------------------------- /Example/Pods/Headers/Expecta/EXPDoubleTuple.h: -------------------------------------------------------------------------------- 1 | ../../Expecta/src/EXPDoubleTuple.h -------------------------------------------------------------------------------- /Example/Pods/Headers/Expecta/EXPExpect.h: -------------------------------------------------------------------------------- 1 | ../../Expecta/src/EXPExpect.h -------------------------------------------------------------------------------- /Example/Pods/Headers/Expecta/EXPFloatTuple.h: -------------------------------------------------------------------------------- 1 | ../../Expecta/src/EXPFloatTuple.h -------------------------------------------------------------------------------- /Example/Pods/Headers/Expecta/EXPMatcher.h: -------------------------------------------------------------------------------- 1 | ../../Expecta/src/EXPMatcher.h -------------------------------------------------------------------------------- /Example/Pods/Headers/Expecta/EXPMatcherHelpers.h: -------------------------------------------------------------------------------- 1 | ../../Expecta/src/matchers/EXPMatcherHelpers.h -------------------------------------------------------------------------------- /Example/Pods/Headers/Expecta/EXPMatchers+beCloseTo.h: -------------------------------------------------------------------------------- 1 | ../../Expecta/src/matchers/EXPMatchers+beCloseTo.h -------------------------------------------------------------------------------- /Example/Pods/Headers/Expecta/EXPMatchers+beFalsy.h: -------------------------------------------------------------------------------- 1 | ../../Expecta/src/matchers/EXPMatchers+beFalsy.h -------------------------------------------------------------------------------- /Example/Pods/Headers/Expecta/EXPMatchers+beGreaterThan.h: -------------------------------------------------------------------------------- 1 | ../../Expecta/src/matchers/EXPMatchers+beGreaterThan.h -------------------------------------------------------------------------------- /Example/Pods/Headers/Expecta/EXPMatchers+beGreaterThanOrEqualTo.h: -------------------------------------------------------------------------------- 1 | ../../Expecta/src/matchers/EXPMatchers+beGreaterThanOrEqualTo.h -------------------------------------------------------------------------------- /Example/Pods/Headers/Expecta/EXPMatchers+beIdenticalTo.h: -------------------------------------------------------------------------------- 1 | ../../Expecta/src/matchers/EXPMatchers+beIdenticalTo.h -------------------------------------------------------------------------------- /Example/Pods/Headers/Expecta/EXPMatchers+beInTheRangeOf.h: -------------------------------------------------------------------------------- 1 | ../../Expecta/src/matchers/EXPMatchers+beInTheRangeOf.h -------------------------------------------------------------------------------- /Example/Pods/Headers/Expecta/EXPMatchers+beInstanceOf.h: -------------------------------------------------------------------------------- 1 | ../../Expecta/src/matchers/EXPMatchers+beInstanceOf.h -------------------------------------------------------------------------------- /Example/Pods/Headers/Expecta/EXPMatchers+beKindOf.h: -------------------------------------------------------------------------------- 1 | ../../Expecta/src/matchers/EXPMatchers+beKindOf.h -------------------------------------------------------------------------------- /Example/Pods/Headers/Expecta/EXPMatchers+beLessThan.h: -------------------------------------------------------------------------------- 1 | ../../Expecta/src/matchers/EXPMatchers+beLessThan.h -------------------------------------------------------------------------------- /Example/Pods/Headers/Expecta/EXPMatchers+beLessThanOrEqualTo.h: -------------------------------------------------------------------------------- 1 | ../../Expecta/src/matchers/EXPMatchers+beLessThanOrEqualTo.h -------------------------------------------------------------------------------- /Example/Pods/Headers/Expecta/EXPMatchers+beNil.h: -------------------------------------------------------------------------------- 1 | ../../Expecta/src/matchers/EXPMatchers+beNil.h -------------------------------------------------------------------------------- /Example/Pods/Headers/Expecta/EXPMatchers+beSubclassOf.h: -------------------------------------------------------------------------------- 1 | ../../Expecta/src/matchers/EXPMatchers+beSubclassOf.h -------------------------------------------------------------------------------- /Example/Pods/Headers/Expecta/EXPMatchers+beSupersetOf.h: -------------------------------------------------------------------------------- 1 | ../../Expecta/src/matchers/EXPMatchers+beSupersetOf.h -------------------------------------------------------------------------------- /Example/Pods/Headers/Expecta/EXPMatchers+beTruthy.h: -------------------------------------------------------------------------------- 1 | ../../Expecta/src/matchers/EXPMatchers+beTruthy.h -------------------------------------------------------------------------------- /Example/Pods/Headers/Expecta/EXPMatchers+beginWith.h: -------------------------------------------------------------------------------- 1 | ../../Expecta/src/matchers/EXPMatchers+beginWith.h -------------------------------------------------------------------------------- /Example/Pods/Headers/Expecta/EXPMatchers+conformTo.h: -------------------------------------------------------------------------------- 1 | ../../Expecta/src/matchers/EXPMatchers+conformTo.h -------------------------------------------------------------------------------- /Example/Pods/Headers/Expecta/EXPMatchers+contain.h: -------------------------------------------------------------------------------- 1 | ../../Expecta/src/matchers/EXPMatchers+contain.h -------------------------------------------------------------------------------- /Example/Pods/Headers/Expecta/EXPMatchers+endWith.h: -------------------------------------------------------------------------------- 1 | ../../Expecta/src/matchers/EXPMatchers+endWith.h -------------------------------------------------------------------------------- /Example/Pods/Headers/Expecta/EXPMatchers+equal.h: -------------------------------------------------------------------------------- 1 | ../../Expecta/src/matchers/EXPMatchers+equal.h -------------------------------------------------------------------------------- /Example/Pods/Headers/Expecta/EXPMatchers+haveCountOf.h: -------------------------------------------------------------------------------- 1 | ../../Expecta/src/matchers/EXPMatchers+haveCountOf.h -------------------------------------------------------------------------------- /Example/Pods/Headers/Expecta/EXPMatchers+notify.h: -------------------------------------------------------------------------------- 1 | ../../Expecta/src/matchers/EXPMatchers+notify.h -------------------------------------------------------------------------------- /Example/Pods/Headers/Expecta/EXPMatchers+raise.h: -------------------------------------------------------------------------------- 1 | ../../Expecta/src/matchers/EXPMatchers+raise.h -------------------------------------------------------------------------------- /Example/Pods/Headers/Expecta/EXPMatchers+raiseWithReason.h: -------------------------------------------------------------------------------- 1 | ../../Expecta/src/matchers/EXPMatchers+raiseWithReason.h -------------------------------------------------------------------------------- /Example/Pods/Headers/Expecta/EXPMatchers+respondTo.h: -------------------------------------------------------------------------------- 1 | ../../Expecta/src/matchers/EXPMatchers+respondTo.h -------------------------------------------------------------------------------- /Example/Pods/Headers/Expecta/EXPMatchers.h: -------------------------------------------------------------------------------- 1 | ../../Expecta/src/matchers/EXPMatchers.h -------------------------------------------------------------------------------- /Example/Pods/Headers/Expecta/EXPUnsupportedObject.h: -------------------------------------------------------------------------------- 1 | ../../Expecta/src/EXPUnsupportedObject.h -------------------------------------------------------------------------------- /Example/Pods/Headers/Expecta/Expecta.h: -------------------------------------------------------------------------------- 1 | ../../Expecta/src/Expecta.h -------------------------------------------------------------------------------- /Example/Pods/Headers/Expecta/ExpectaSupport.h: -------------------------------------------------------------------------------- 1 | ../../Expecta/src/ExpectaSupport.h -------------------------------------------------------------------------------- /Example/Pods/Headers/Expecta/NSObject+Expecta.h: -------------------------------------------------------------------------------- 1 | ../../Expecta/src/NSObject+Expecta.h -------------------------------------------------------------------------------- /Example/Pods/Headers/Expecta/NSValue+Expecta.h: -------------------------------------------------------------------------------- 1 | ../../Expecta/src/NSValue+Expecta.h -------------------------------------------------------------------------------- /Example/Pods/Headers/OCHamcrest/HCAllOf.h: -------------------------------------------------------------------------------- 1 | ../../OCHamcrest/Source/Library/Logical/HCAllOf.h -------------------------------------------------------------------------------- /Example/Pods/Headers/OCHamcrest/HCAnyOf.h: -------------------------------------------------------------------------------- 1 | ../../OCHamcrest/Source/Library/Logical/HCAnyOf.h -------------------------------------------------------------------------------- /Example/Pods/Headers/OCHamcrest/HCAssertThat.h: -------------------------------------------------------------------------------- 1 | ../../OCHamcrest/Source/Core/HCAssertThat.h -------------------------------------------------------------------------------- /Example/Pods/Headers/OCHamcrest/HCBaseDescription.h: -------------------------------------------------------------------------------- 1 | ../../OCHamcrest/Source/Core/HCBaseDescription.h -------------------------------------------------------------------------------- /Example/Pods/Headers/OCHamcrest/HCBaseMatcher.h: -------------------------------------------------------------------------------- 1 | ../../OCHamcrest/Source/Core/HCBaseMatcher.h -------------------------------------------------------------------------------- /Example/Pods/Headers/OCHamcrest/HCClassMatcher.h: -------------------------------------------------------------------------------- 1 | ../../OCHamcrest/Source/Library/Object/HCClassMatcher.h -------------------------------------------------------------------------------- /Example/Pods/Headers/OCHamcrest/HCCollectMatchers.h: -------------------------------------------------------------------------------- 1 | ../../OCHamcrest/Source/Core/Helpers/HCCollectMatchers.h -------------------------------------------------------------------------------- /Example/Pods/Headers/OCHamcrest/HCConformsToProtocol.h: -------------------------------------------------------------------------------- 1 | ../../OCHamcrest/Source/Library/Object/HCConformsToProtocol.h -------------------------------------------------------------------------------- /Example/Pods/Headers/OCHamcrest/HCDescribedAs.h: -------------------------------------------------------------------------------- 1 | ../../OCHamcrest/Source/Library/Decorator/HCDescribedAs.h -------------------------------------------------------------------------------- /Example/Pods/Headers/OCHamcrest/HCDescription.h: -------------------------------------------------------------------------------- 1 | ../../OCHamcrest/Source/Core/HCDescription.h -------------------------------------------------------------------------------- /Example/Pods/Headers/OCHamcrest/HCHasCount.h: -------------------------------------------------------------------------------- 1 | ../../OCHamcrest/Source/Library/Collection/HCHasCount.h -------------------------------------------------------------------------------- /Example/Pods/Headers/OCHamcrest/HCHasDescription.h: -------------------------------------------------------------------------------- 1 | ../../OCHamcrest/Source/Library/Object/HCHasDescription.h -------------------------------------------------------------------------------- /Example/Pods/Headers/OCHamcrest/HCHasProperty.h: -------------------------------------------------------------------------------- 1 | ../../OCHamcrest/Source/Library/Object/HCHasProperty.h -------------------------------------------------------------------------------- /Example/Pods/Headers/OCHamcrest/HCInvocationMatcher.h: -------------------------------------------------------------------------------- 1 | ../../OCHamcrest/Source/Core/Helpers/HCInvocationMatcher.h -------------------------------------------------------------------------------- /Example/Pods/Headers/OCHamcrest/HCIs.h: -------------------------------------------------------------------------------- 1 | ../../OCHamcrest/Source/Library/Decorator/HCIs.h -------------------------------------------------------------------------------- /Example/Pods/Headers/OCHamcrest/HCIsAnything.h: -------------------------------------------------------------------------------- 1 | ../../OCHamcrest/Source/Library/Logical/HCIsAnything.h -------------------------------------------------------------------------------- /Example/Pods/Headers/OCHamcrest/HCIsCloseTo.h: -------------------------------------------------------------------------------- 1 | ../../OCHamcrest/Source/Library/Number/HCIsCloseTo.h -------------------------------------------------------------------------------- /Example/Pods/Headers/OCHamcrest/HCIsCollectionContaining.h: -------------------------------------------------------------------------------- 1 | ../../OCHamcrest/Source/Library/Collection/HCIsCollectionContaining.h -------------------------------------------------------------------------------- /Example/Pods/Headers/OCHamcrest/HCIsCollectionContainingInAnyOrder.h: -------------------------------------------------------------------------------- 1 | ../../OCHamcrest/Source/Library/Collection/HCIsCollectionContainingInAnyOrder.h -------------------------------------------------------------------------------- /Example/Pods/Headers/OCHamcrest/HCIsCollectionContainingInOrder.h: -------------------------------------------------------------------------------- 1 | ../../OCHamcrest/Source/Library/Collection/HCIsCollectionContainingInOrder.h -------------------------------------------------------------------------------- /Example/Pods/Headers/OCHamcrest/HCIsCollectionOnlyContaining.h: -------------------------------------------------------------------------------- 1 | ../../OCHamcrest/Source/Library/Collection/HCIsCollectionOnlyContaining.h -------------------------------------------------------------------------------- /Example/Pods/Headers/OCHamcrest/HCIsDictionaryContaining.h: -------------------------------------------------------------------------------- 1 | ../../OCHamcrest/Source/Library/Collection/HCIsDictionaryContaining.h -------------------------------------------------------------------------------- /Example/Pods/Headers/OCHamcrest/HCIsDictionaryContainingEntries.h: -------------------------------------------------------------------------------- 1 | ../../OCHamcrest/Source/Library/Collection/HCIsDictionaryContainingEntries.h -------------------------------------------------------------------------------- /Example/Pods/Headers/OCHamcrest/HCIsDictionaryContainingKey.h: -------------------------------------------------------------------------------- 1 | ../../OCHamcrest/Source/Library/Collection/HCIsDictionaryContainingKey.h -------------------------------------------------------------------------------- /Example/Pods/Headers/OCHamcrest/HCIsDictionaryContainingValue.h: -------------------------------------------------------------------------------- 1 | ../../OCHamcrest/Source/Library/Collection/HCIsDictionaryContainingValue.h -------------------------------------------------------------------------------- /Example/Pods/Headers/OCHamcrest/HCIsEmptyCollection.h: -------------------------------------------------------------------------------- 1 | ../../OCHamcrest/Source/Library/Collection/HCIsEmptyCollection.h -------------------------------------------------------------------------------- /Example/Pods/Headers/OCHamcrest/HCIsEqual.h: -------------------------------------------------------------------------------- 1 | ../../OCHamcrest/Source/Library/Object/HCIsEqual.h -------------------------------------------------------------------------------- /Example/Pods/Headers/OCHamcrest/HCIsEqualIgnoringCase.h: -------------------------------------------------------------------------------- 1 | ../../OCHamcrest/Source/Library/Text/HCIsEqualIgnoringCase.h -------------------------------------------------------------------------------- /Example/Pods/Headers/OCHamcrest/HCIsEqualIgnoringWhiteSpace.h: -------------------------------------------------------------------------------- 1 | ../../OCHamcrest/Source/Library/Text/HCIsEqualIgnoringWhiteSpace.h -------------------------------------------------------------------------------- /Example/Pods/Headers/OCHamcrest/HCIsEqualToNumber.h: -------------------------------------------------------------------------------- 1 | ../../OCHamcrest/Source/Library/Number/HCIsEqualToNumber.h -------------------------------------------------------------------------------- /Example/Pods/Headers/OCHamcrest/HCIsIn.h: -------------------------------------------------------------------------------- 1 | ../../OCHamcrest/Source/Library/Collection/HCIsIn.h -------------------------------------------------------------------------------- /Example/Pods/Headers/OCHamcrest/HCIsInstanceOf.h: -------------------------------------------------------------------------------- 1 | ../../OCHamcrest/Source/Library/Object/HCIsInstanceOf.h -------------------------------------------------------------------------------- /Example/Pods/Headers/OCHamcrest/HCIsNil.h: -------------------------------------------------------------------------------- 1 | ../../OCHamcrest/Source/Library/Object/HCIsNil.h -------------------------------------------------------------------------------- /Example/Pods/Headers/OCHamcrest/HCIsNot.h: -------------------------------------------------------------------------------- 1 | ../../OCHamcrest/Source/Library/Logical/HCIsNot.h -------------------------------------------------------------------------------- /Example/Pods/Headers/OCHamcrest/HCIsSame.h: -------------------------------------------------------------------------------- 1 | ../../OCHamcrest/Source/Library/Object/HCIsSame.h -------------------------------------------------------------------------------- /Example/Pods/Headers/OCHamcrest/HCIsTypeOf.h: -------------------------------------------------------------------------------- 1 | ../../OCHamcrest/Source/Library/Object/HCIsTypeOf.h -------------------------------------------------------------------------------- /Example/Pods/Headers/OCHamcrest/HCMatcher.h: -------------------------------------------------------------------------------- 1 | ../../OCHamcrest/Source/Core/HCMatcher.h -------------------------------------------------------------------------------- /Example/Pods/Headers/OCHamcrest/HCNumberAssert.h: -------------------------------------------------------------------------------- 1 | ../../OCHamcrest/Source/Library/Number/HCNumberAssert.h -------------------------------------------------------------------------------- /Example/Pods/Headers/OCHamcrest/HCOrderingComparison.h: -------------------------------------------------------------------------------- 1 | ../../OCHamcrest/Source/Library/Number/HCOrderingComparison.h -------------------------------------------------------------------------------- /Example/Pods/Headers/OCHamcrest/HCRequireNonNilObject.h: -------------------------------------------------------------------------------- 1 | ../../OCHamcrest/Source/Core/Helpers/HCRequireNonNilObject.h -------------------------------------------------------------------------------- /Example/Pods/Headers/OCHamcrest/HCSelfDescribing.h: -------------------------------------------------------------------------------- 1 | ../../OCHamcrest/Source/Core/HCSelfDescribing.h -------------------------------------------------------------------------------- /Example/Pods/Headers/OCHamcrest/HCSenTestFailureHandler.h: -------------------------------------------------------------------------------- 1 | ../../OCHamcrest/Source/Core/HCSenTestFailureHandler.h -------------------------------------------------------------------------------- /Example/Pods/Headers/OCHamcrest/HCStringContains.h: -------------------------------------------------------------------------------- 1 | ../../OCHamcrest/Source/Library/Text/HCStringContains.h -------------------------------------------------------------------------------- /Example/Pods/Headers/OCHamcrest/HCStringContainsInOrder.h: -------------------------------------------------------------------------------- 1 | ../../OCHamcrest/Source/Library/Text/HCStringContainsInOrder.h -------------------------------------------------------------------------------- /Example/Pods/Headers/OCHamcrest/HCStringDescription.h: -------------------------------------------------------------------------------- 1 | ../../OCHamcrest/Source/Core/HCStringDescription.h -------------------------------------------------------------------------------- /Example/Pods/Headers/OCHamcrest/HCStringEndsWith.h: -------------------------------------------------------------------------------- 1 | ../../OCHamcrest/Source/Library/Text/HCStringEndsWith.h -------------------------------------------------------------------------------- /Example/Pods/Headers/OCHamcrest/HCStringStartsWith.h: -------------------------------------------------------------------------------- 1 | ../../OCHamcrest/Source/Library/Text/HCStringStartsWith.h -------------------------------------------------------------------------------- /Example/Pods/Headers/OCHamcrest/HCSubstringMatcher.h: -------------------------------------------------------------------------------- 1 | ../../OCHamcrest/Source/Library/Text/HCSubstringMatcher.h -------------------------------------------------------------------------------- /Example/Pods/Headers/OCHamcrest/HCTestFailure.h: -------------------------------------------------------------------------------- 1 | ../../OCHamcrest/Source/Core/HCTestFailure.h -------------------------------------------------------------------------------- /Example/Pods/Headers/OCHamcrest/HCTestFailureHandler.h: -------------------------------------------------------------------------------- 1 | ../../OCHamcrest/Source/Core/HCTestFailureHandler.h -------------------------------------------------------------------------------- /Example/Pods/Headers/OCHamcrest/HCTestFailureHandlerChain.h: -------------------------------------------------------------------------------- 1 | ../../OCHamcrest/Source/Core/HCTestFailureHandlerChain.h -------------------------------------------------------------------------------- /Example/Pods/Headers/OCHamcrest/HCWrapInMatcher.h: -------------------------------------------------------------------------------- 1 | ../../OCHamcrest/Source/Core/Helpers/HCWrapInMatcher.h -------------------------------------------------------------------------------- /Example/Pods/Headers/OCHamcrest/HCXCTestFailureHandler.h: -------------------------------------------------------------------------------- 1 | ../../OCHamcrest/Source/Core/HCXCTestFailureHandler.h -------------------------------------------------------------------------------- /Example/Pods/Headers/OCHamcrest/OCHamcrest.h: -------------------------------------------------------------------------------- 1 | ../../OCHamcrest/Source/OCHamcrest.h -------------------------------------------------------------------------------- /Example/Pods/Headers/OCMockito/MKTArgumentCaptor.h: -------------------------------------------------------------------------------- 1 | ../../OCMockito/Source/OCMockito/MKTArgumentCaptor.h -------------------------------------------------------------------------------- /Example/Pods/Headers/OCMockito/MKTBaseMockObject.h: -------------------------------------------------------------------------------- 1 | ../../OCMockito/Source/OCMockito/MKTBaseMockObject.h -------------------------------------------------------------------------------- /Example/Pods/Headers/OCMockito/MKTClassObjectMock.h: -------------------------------------------------------------------------------- 1 | ../../OCMockito/Source/OCMockito/MKTClassObjectMock.h -------------------------------------------------------------------------------- /Example/Pods/Headers/OCMockito/MKTObjectAndProtocolMock.h: -------------------------------------------------------------------------------- 1 | ../../OCMockito/Source/OCMockito/MKTObjectAndProtocolMock.h -------------------------------------------------------------------------------- /Example/Pods/Headers/OCMockito/MKTObjectMock.h: -------------------------------------------------------------------------------- 1 | ../../OCMockito/Source/OCMockito/MKTObjectMock.h -------------------------------------------------------------------------------- /Example/Pods/Headers/OCMockito/MKTOngoingStubbing.h: -------------------------------------------------------------------------------- 1 | ../../OCMockito/Source/OCMockito/MKTOngoingStubbing.h -------------------------------------------------------------------------------- /Example/Pods/Headers/OCMockito/MKTPrimitiveArgumentMatching.h: -------------------------------------------------------------------------------- 1 | ../../OCMockito/Source/OCMockito/MKTPrimitiveArgumentMatching.h -------------------------------------------------------------------------------- /Example/Pods/Headers/OCMockito/MKTProtocolMock.h: -------------------------------------------------------------------------------- 1 | ../../OCMockito/Source/OCMockito/MKTProtocolMock.h -------------------------------------------------------------------------------- /Example/Pods/Headers/OCMockito/OCMockito.h: -------------------------------------------------------------------------------- 1 | ../../OCMockito/Source/OCMockito/OCMockito.h -------------------------------------------------------------------------------- /Example/Pods/Headers/Specta/SPTExample.h: -------------------------------------------------------------------------------- 1 | ../../Specta/src/SPTExample.h -------------------------------------------------------------------------------- /Example/Pods/Headers/Specta/SPTExampleGroup.h: -------------------------------------------------------------------------------- 1 | ../../Specta/src/SPTExampleGroup.h -------------------------------------------------------------------------------- /Example/Pods/Headers/Specta/SPTNestedReporter.h: -------------------------------------------------------------------------------- 1 | ../../Specta/src/SPTNestedReporter.h -------------------------------------------------------------------------------- /Example/Pods/Headers/Specta/SPTReporter.h: -------------------------------------------------------------------------------- 1 | ../../Specta/src/SPTReporter.h -------------------------------------------------------------------------------- /Example/Pods/Headers/Specta/SPTSharedExampleGroups.h: -------------------------------------------------------------------------------- 1 | ../../Specta/src/SPTSharedExampleGroups.h -------------------------------------------------------------------------------- /Example/Pods/Headers/Specta/SPTSpec.h: -------------------------------------------------------------------------------- 1 | ../../Specta/src/SPTSpec.h -------------------------------------------------------------------------------- /Example/Pods/Headers/Specta/SPTXCTestCase.h: -------------------------------------------------------------------------------- 1 | ../../Specta/src/SPTXCTestCase.h -------------------------------------------------------------------------------- /Example/Pods/Headers/Specta/SPTXCTestReporter.h: -------------------------------------------------------------------------------- 1 | ../../Specta/src/SPTXCTestReporter.h -------------------------------------------------------------------------------- /Example/Pods/Headers/Specta/Specta.h: -------------------------------------------------------------------------------- 1 | ../../Specta/src/Specta.h -------------------------------------------------------------------------------- /Example/Pods/Headers/Specta/SpectaSupport.h: -------------------------------------------------------------------------------- 1 | ../../Specta/src/SpectaSupport.h -------------------------------------------------------------------------------- /Example/Pods/Headers/Specta/SpectaTypes.h: -------------------------------------------------------------------------------- 1 | ../../Specta/src/SpectaTypes.h -------------------------------------------------------------------------------- /Example/Pods/Headers/Specta/SpectaUtility.h: -------------------------------------------------------------------------------- 1 | ../../Specta/src/SpectaUtility.h -------------------------------------------------------------------------------- /Example/Pods/Headers/Specta/XCTestCase+Specta.h: -------------------------------------------------------------------------------- 1 | ../../Specta/src/XCTestCase+Specta.h -------------------------------------------------------------------------------- /Example/Pods/Headers/Specta/XCTestLog+Specta.h: -------------------------------------------------------------------------------- 1 | ../../Specta/src/XCTestLog+Specta.h -------------------------------------------------------------------------------- /Example/Pods/Headers/Specta/XCTestRun+Specta.h: -------------------------------------------------------------------------------- 1 | ../../Specta/src/XCTestRun+Specta.h -------------------------------------------------------------------------------- /Example/Pods/Local Podspecs/ASCScreenBrightnessDetector.podspec: -------------------------------------------------------------------------------- 1 | Pod::Spec.new do |s| 2 | s.name = "ASCScreenBrightnessDetector" 3 | s.version = "1.0.0" 4 | s.summary = "Easily detects screen brightness changes and provides some useful delegate methods." 5 | s.homepage = "https://github.com/schneiderandre/ASCScreenBrightnessDetector" 6 | s.screenshots = [ "https://dl.dropboxusercontent.com/u/19150300/Github/ASCScreenBrightnessDetector/dark.png", 7 | "https://dl.dropboxusercontent.com/u/19150300/Github/ASCScreenBrightnessDetector/light.png" ] 8 | s.license = 'MIT' 9 | s.author = { "André Schneider" => "hello@andreschneider.me" } 10 | s.social_media_url = 'https://twitter.com/aschndr' 11 | s.source = { :git => "https://github.com/schneiderandre/ASCScreenBrightnessDetector.git", :tag => '1.0.0' } 12 | 13 | s.platform = :ios, '6.0' 14 | s.requires_arc = true 15 | 16 | s.source_files = 'Classes/*.{h,m}' 17 | end 18 | -------------------------------------------------------------------------------- /Example/Pods/Manifest.lock: -------------------------------------------------------------------------------- 1 | PODS: 2 | - ASCScreenBrightnessDetector (1.0.0) 3 | - Expecta (0.3.0) 4 | - OCHamcrest (3.0.1) 5 | - OCMockito (1.1.0): 6 | - OCHamcrest (~> 3.0) 7 | - Specta (0.2.1) 8 | 9 | DEPENDENCIES: 10 | - ASCScreenBrightnessDetector (from `../ASCScreenBrightnessDetector.podspec`) 11 | - Expecta 12 | - OCMockito 13 | - Specta 14 | 15 | EXTERNAL SOURCES: 16 | ASCScreenBrightnessDetector: 17 | :path: ../ASCScreenBrightnessDetector.podspec 18 | 19 | SPEC CHECKSUMS: 20 | ASCScreenBrightnessDetector: 41bc86e4b0fdb1793801bb10a5096a0f4a6658d9 21 | Expecta: 322f1dc42610106a5ba9871b4924cf1635d80833 22 | OCHamcrest: 782c52ae8c673e5d6060a65005cfd26d20d519ba 23 | OCMockito: 317fa0cf75c9b0d73d2be335789c556537be7fd2 24 | Specta: 2d06220591110c6d9757d8be8ecf8e63aa40dc2a 25 | 26 | COCOAPODS: 0.29.0 27 | -------------------------------------------------------------------------------- /Example/Pods/OCHamcrest/Source/Core/HCBaseDescription.h: -------------------------------------------------------------------------------- 1 | // 2 | // OCHamcrest - HCBaseDescription.h 3 | // Copyright 2013 hamcrest.org. See LICENSE.txt 4 | // 5 | // Created by: Jon Reid, http://qualitycoding.org/ 6 | // Docs: http://hamcrest.github.com/OCHamcrest/ 7 | // Source: https://github.com/hamcrest/OCHamcrest 8 | // 9 | 10 | #import 11 | #import 12 | 13 | 14 | /** 15 | Base class for all HCDescription implementations. 16 | 17 | @ingroup core 18 | */ 19 | @interface HCBaseDescription : NSObject 20 | @end 21 | 22 | 23 | /** 24 | Methods that must be provided by subclasses of HCBaseDescription. 25 | */ 26 | @interface HCBaseDescription (SubclassMustImplement) 27 | 28 | /** 29 | Append the string @a str to the description. 30 | */ 31 | - (void)append:(NSString *)str; 32 | 33 | @end 34 | -------------------------------------------------------------------------------- /Example/Pods/OCHamcrest/Source/Core/HCBaseMatcher.h: -------------------------------------------------------------------------------- 1 | // 2 | // OCHamcrest - HCBaseMatcher.h 3 | // Copyright 2013 hamcrest.org. See LICENSE.txt 4 | // 5 | // Created by: Jon Reid, http://qualitycoding.org/ 6 | // Docs: http://hamcrest.github.com/OCHamcrest/ 7 | // Source: https://github.com/hamcrest/OCHamcrest 8 | // 9 | 10 | #import 11 | #import 12 | 13 | #import // Convenience header, to provide OBJC_EXPORT 14 | 15 | 16 | /** 17 | Base class for all HCMatcher implementations. 18 | 19 | Most implementations can just implement @c -matches: and let 20 | -matches:describingMismatchTo: call it. But if it makes more sense to generate the 21 | mismatch description during the matching, override -matches:describingMismatchTo: 22 | and have @c -matches: call it with a @c nil description. 23 | 24 | @ingroup core 25 | */ 26 | @interface HCBaseMatcher : NSObject 27 | @end 28 | -------------------------------------------------------------------------------- /Example/Pods/OCHamcrest/Source/Core/HCDescription.h: -------------------------------------------------------------------------------- 1 | // 2 | // OCHamcrest - HCDescription.h 3 | // Copyright 2013 hamcrest.org. See LICENSE.txt 4 | // 5 | // Created by: Jon Reid, http://qualitycoding.org/ 6 | // Docs: http://hamcrest.github.com/OCHamcrest/ 7 | // Source: https://github.com/hamcrest/OCHamcrest 8 | // 9 | 10 | #import 11 | 12 | 13 | /** 14 | A description of an HCMatcher. 15 | 16 | An HCMatcher will describe itself to a description which can later be used for reporting. 17 | 18 | @ingroup core 19 | */ 20 | @protocol HCDescription 21 | 22 | /** 23 | Appends some plain text to the description. 24 | 25 | @return @c self, for chaining. 26 | */ 27 | - (id)appendText:(NSString *)text; 28 | 29 | /** 30 | Appends description of given value to @c self. 31 | 32 | If the value implements the @ref HCSelfDescribing protocol, then it will be used. 33 | 34 | @return @c self, for chaining. 35 | */ 36 | - (id)appendDescriptionOf:(id)value; 37 | 38 | /** 39 | Appends a list of objects to the description. 40 | 41 | @return @c self, for chaining. 42 | */ 43 | - (id)appendList:(NSArray *)values 44 | start:(NSString *)start 45 | separator:(NSString *)separator 46 | end:(NSString *)end; 47 | 48 | @end 49 | -------------------------------------------------------------------------------- /Example/Pods/OCHamcrest/Source/Core/HCGenericTestFailureHandler.h: -------------------------------------------------------------------------------- 1 | #import "HCTestFailureHandler.h" 2 | 3 | 4 | @interface HCGenericTestFailureHandler : NSObject 5 | @end 6 | -------------------------------------------------------------------------------- /Example/Pods/OCHamcrest/Source/Core/HCGenericTestFailureHandler.m: -------------------------------------------------------------------------------- 1 | #import "HCGenericTestFailureHandler.h" 2 | 3 | #import "HCTestFailure.h" 4 | 5 | 6 | @implementation HCGenericTestFailureHandler 7 | 8 | @synthesize successor = _successor; 9 | 10 | - (void)handleFailure:(HCTestFailure *)failure 11 | { 12 | NSException *exception = [self createExceptionForFailure:failure]; 13 | [exception raise]; 14 | } 15 | 16 | - (NSException *)createExceptionForFailure:(HCTestFailure *)failure 17 | { 18 | NSString *failureReason = [NSString stringWithFormat:@"%@:%lu: matcher error: %@", 19 | failure.fileName, (unsigned long)failure.lineNumber, failure.reason]; 20 | return [NSException exceptionWithName:@"Hamcrest Error" reason:failureReason userInfo:nil]; 21 | } 22 | 23 | @end 24 | -------------------------------------------------------------------------------- /Example/Pods/OCHamcrest/Source/Core/HCSelfDescribing.h: -------------------------------------------------------------------------------- 1 | // 2 | // OCHamcrest - HCSelfDescribing.h 3 | // Copyright 2013 hamcrest.org. See LICENSE.txt 4 | // 5 | // Created by: Jon Reid, http://qualitycoding.org/ 6 | // Docs: http://hamcrest.github.com/OCHamcrest/ 7 | // Source: https://github.com/hamcrest/OCHamcrest 8 | // 9 | 10 | #import 11 | 12 | #import "HCDescription.h" 13 | 14 | 15 | /** 16 | The ability of an object to describe itself. 17 | 18 | @ingroup core 19 | */ 20 | @protocol HCSelfDescribing 21 | 22 | /** 23 | Generates a description of the object. 24 | 25 | The description may be part of a description of a larger object of which this is just a 26 | component, so it should be worded appropriately. 27 | 28 | @param description The description to be built or appended to. 29 | */ 30 | - (void)describeTo:(id)description; 31 | 32 | @end 33 | -------------------------------------------------------------------------------- /Example/Pods/OCHamcrest/Source/Core/HCSenTestFailureHandler.h: -------------------------------------------------------------------------------- 1 | #import "HCTestFailureHandler.h" 2 | 3 | 4 | @interface HCSenTestFailureHandler : NSObject 5 | @end 6 | -------------------------------------------------------------------------------- /Example/Pods/OCHamcrest/Source/Core/HCStringDescription.h: -------------------------------------------------------------------------------- 1 | // 2 | // OCHamcrest - HCStringDescription.h 3 | // Copyright 2013 hamcrest.org. See LICENSE.txt 4 | // 5 | // Created by: Jon Reid, http://qualitycoding.org/ 6 | // Docs: http://hamcrest.github.com/OCHamcrest/ 7 | // Source: https://github.com/hamcrest/OCHamcrest 8 | // 9 | 10 | #import 11 | 12 | @protocol HCSelfDescribing; 13 | 14 | 15 | /** 16 | An HCDescription that is stored as a string. 17 | 18 | @ingroup core 19 | */ 20 | @interface HCStringDescription : HCBaseDescription 21 | { 22 | NSMutableString *accumulator; 23 | } 24 | 25 | /** 26 | Returns the description of an HCSelfDescribing object as a string. 27 | 28 | @param selfDescribing The object to be described. 29 | @return The description of the object. 30 | */ 31 | + (NSString *)stringFrom:(id)selfDescribing; 32 | 33 | /** 34 | Returns an empty description. 35 | */ 36 | + (instancetype)stringDescription; 37 | 38 | /** 39 | Returns an initialized HCStringDescription object that is empty. 40 | */ 41 | - (instancetype)init; 42 | 43 | @end 44 | -------------------------------------------------------------------------------- /Example/Pods/OCHamcrest/Source/Core/HCStringDescription.m: -------------------------------------------------------------------------------- 1 | // 2 | // OCHamcrest - HCStringDescription.m 3 | // Copyright 2013 hamcrest.org. See LICENSE.txt 4 | // 5 | // Created by: Jon Reid, http://qualitycoding.org/ 6 | // Docs: http://hamcrest.github.com/OCHamcrest/ 7 | // Source: https://github.com/hamcrest/OCHamcrest 8 | // 9 | 10 | #import "HCStringDescription.h" 11 | 12 | #import "HCSelfDescribing.h" 13 | 14 | 15 | @implementation HCStringDescription 16 | 17 | + (NSString *)stringFrom:(id)selfDescribing 18 | { 19 | HCStringDescription *description = [HCStringDescription stringDescription]; 20 | [description appendDescriptionOf:selfDescribing]; 21 | return [description description]; 22 | } 23 | 24 | + (instancetype)stringDescription 25 | { 26 | return [[HCStringDescription alloc] init]; 27 | } 28 | 29 | - (instancetype)init 30 | { 31 | self = [super init]; 32 | if (self) 33 | accumulator = [[NSMutableString alloc] init]; 34 | return self; 35 | } 36 | 37 | - (NSString *)description 38 | { 39 | return accumulator; 40 | } 41 | 42 | - (void)append:(NSString *)str 43 | { 44 | [accumulator appendString:str]; 45 | } 46 | 47 | @end 48 | -------------------------------------------------------------------------------- /Example/Pods/OCHamcrest/Source/Core/HCTestFailure.h: -------------------------------------------------------------------------------- 1 | #import 2 | 3 | 4 | /** 5 | Test failure location and reason. 6 | 7 | @ingroup integration 8 | */ 9 | @interface HCTestFailure : NSObject 10 | 11 | @property (nonatomic, readonly) id testCase; 12 | @property (nonatomic, readonly) NSString *fileName; 13 | @property (nonatomic, readonly) NSUInteger lineNumber; 14 | @property (nonatomic, readonly) NSString *reason; 15 | 16 | - (instancetype)initWithTestCase:(id)testCase 17 | fileName:(NSString *)fileName 18 | lineNumber:(NSUInteger)lineNumber 19 | reason:(NSString *)reason; 20 | 21 | @end 22 | -------------------------------------------------------------------------------- /Example/Pods/OCHamcrest/Source/Core/HCTestFailure.m: -------------------------------------------------------------------------------- 1 | #import "HCTestFailure.h" 2 | 3 | 4 | @implementation HCTestFailure 5 | 6 | - (instancetype)initWithTestCase:(id)testCase 7 | fileName:(NSString *)fileName 8 | lineNumber:(NSUInteger)lineNumber 9 | reason:(NSString *)reason 10 | { 11 | self = [super init]; 12 | if (self) 13 | { 14 | _testCase = testCase; 15 | _fileName = fileName; 16 | _lineNumber = lineNumber; 17 | _reason = reason; 18 | } 19 | return self; 20 | } 21 | 22 | @end 23 | -------------------------------------------------------------------------------- /Example/Pods/OCHamcrest/Source/Core/HCTestFailureHandler.h: -------------------------------------------------------------------------------- 1 | #import 2 | 3 | @class HCTestFailure; 4 | 5 | 6 | /** 7 | Chain-of-responsibility for handling test failures. 8 | 9 | @ingroup integration 10 | */ 11 | @protocol HCTestFailureHandler 12 | 13 | @property (nonatomic, strong) id successor; 14 | 15 | /** 16 | Handle test failure at specific location, or pass to successor. 17 | */ 18 | - (void)handleFailure:(HCTestFailure *)failure; 19 | 20 | @end 21 | -------------------------------------------------------------------------------- /Example/Pods/OCHamcrest/Source/Core/HCTestFailureHandlerChain.h: -------------------------------------------------------------------------------- 1 | #import 2 | #import 3 | 4 | @protocol HCTestFailureHandler; 5 | 6 | 7 | /** 8 | Returns chain of test failure handlers. 9 | 10 | @ingroup integration 11 | */ 12 | OBJC_EXPORT id HC_testFailureHandlerChain(void); 13 | -------------------------------------------------------------------------------- /Example/Pods/OCHamcrest/Source/Core/HCTestFailureHandlerChain.m: -------------------------------------------------------------------------------- 1 | #import "HCTestFailureHandlerChain.h" 2 | 3 | #import "HCGenericTestFailureHandler.h" 4 | #import "HCSenTestFailureHandler.h" 5 | #import "HCXCTestFailureHandler.h" 6 | 7 | 8 | id HC_testFailureHandlerChain(void) 9 | { 10 | static id chain = nil; 11 | if (!chain) 12 | { 13 | HCXCTestFailureHandler *xctestHandler = [[HCXCTestFailureHandler alloc] init]; 14 | HCSenTestFailureHandler *ocunitHandler = [[HCSenTestFailureHandler alloc] init]; 15 | HCGenericTestFailureHandler *genericHandler = [[HCGenericTestFailureHandler alloc] init]; 16 | 17 | xctestHandler.successor = ocunitHandler; 18 | ocunitHandler.successor = genericHandler; 19 | 20 | chain = xctestHandler; 21 | } 22 | return chain; 23 | } 24 | -------------------------------------------------------------------------------- /Example/Pods/OCHamcrest/Source/Core/HCXCTestFailureHandler.h: -------------------------------------------------------------------------------- 1 | #import "HCTestFailureHandler.h" 2 | 3 | 4 | @interface HCXCTestFailureHandler : NSObject 5 | @end 6 | -------------------------------------------------------------------------------- /Example/Pods/OCHamcrest/Source/Core/HCXCTestFailureHandler.m: -------------------------------------------------------------------------------- 1 | #import "HCXCTestFailureHandler.h" 2 | 3 | #import "HCTestFailure.h" 4 | 5 | 6 | @interface NSObject (PretendMethodExistsOnNSObjectToAvoidLinkingXCTest) 7 | 8 | - (void)recordFailureWithDescription:(NSString *)description 9 | inFile:(NSString *)filename 10 | atLine:(NSUInteger)lineNumber 11 | expected:(BOOL)expected; 12 | 13 | @end 14 | 15 | 16 | @implementation HCXCTestFailureHandler 17 | 18 | @synthesize successor = _successor; 19 | 20 | - (void)handleFailure:(HCTestFailure *)failure 21 | { 22 | if ([self willHandleFailure:failure]) 23 | [self executeHandlingOfFailure:failure]; 24 | else 25 | [self.successor handleFailure:failure]; 26 | } 27 | 28 | - (BOOL)willHandleFailure:(HCTestFailure *)failure 29 | { 30 | return [failure.testCase respondsToSelector:@selector(recordFailureWithDescription:inFile:atLine:expected:)]; 31 | } 32 | 33 | - (void)executeHandlingOfFailure:(HCTestFailure *)failure 34 | { 35 | [failure.testCase recordFailureWithDescription:failure.reason 36 | inFile:failure.fileName 37 | atLine:failure.lineNumber 38 | expected:YES]; 39 | } 40 | 41 | @end 42 | -------------------------------------------------------------------------------- /Example/Pods/OCHamcrest/Source/Core/Helpers/HCCollectMatchers.h: -------------------------------------------------------------------------------- 1 | // 2 | // OCHamcrest - HCCollectMatchers.h 3 | // Copyright 2013 hamcrest.org. See LICENSE.txt 4 | // 5 | // Created by: Jon Reid, http://qualitycoding.org/ 6 | // Docs: http://hamcrest.github.com/OCHamcrest/ 7 | // Source: https://github.com/hamcrest/OCHamcrest 8 | // 9 | 10 | #import 11 | #import 12 | 13 | #import 14 | 15 | @protocol HCMatcher; 16 | 17 | 18 | /** 19 | Returns an array of matchers from a variable-length comma-separated list terminated by @c nil. 20 | 21 | @ingroup helpers 22 | */ 23 | OBJC_EXPORT NSMutableArray *HCCollectMatchers(id item1, va_list args); 24 | -------------------------------------------------------------------------------- /Example/Pods/OCHamcrest/Source/Core/Helpers/HCCollectMatchers.m: -------------------------------------------------------------------------------- 1 | // 2 | // OCHamcrest - HCCollectMatchers.m 3 | // Copyright 2013 hamcrest.org. See LICENSE.txt 4 | // 5 | // Created by: Jon Reid, http://qualitycoding.org/ 6 | // Docs: http://hamcrest.github.com/OCHamcrest/ 7 | // Source: https://github.com/hamcrest/OCHamcrest 8 | // 9 | 10 | #import "HCCollectMatchers.h" 11 | 12 | #import "HCWrapInMatcher.h" 13 | 14 | 15 | NSMutableArray *HCCollectMatchers(id item, va_list args) 16 | { 17 | NSMutableArray *matcherList = [NSMutableArray arrayWithObject:HCWrapInMatcher(item)]; 18 | 19 | item = va_arg(args, id); 20 | while (item != nil) 21 | { 22 | [matcherList addObject:HCWrapInMatcher(item)]; 23 | item = va_arg(args, id); 24 | } 25 | 26 | return matcherList; 27 | } 28 | -------------------------------------------------------------------------------- /Example/Pods/OCHamcrest/Source/Core/Helpers/HCRequireNonNilObject.h: -------------------------------------------------------------------------------- 1 | // 2 | // OCHamcrest - HCRequireNonNilObject.h 3 | // Copyright 2013 hamcrest.org. See LICENSE.txt 4 | // 5 | // Created by: Jon Reid, http://qualitycoding.org/ 6 | // Docs: http://hamcrest.github.com/OCHamcrest/ 7 | // Source: https://github.com/hamcrest/OCHamcrest 8 | // 9 | 10 | #import 11 | #import 12 | 13 | 14 | /** 15 | Throws an NSException if @a obj is @c nil. 16 | 17 | @ingroup helpers 18 | */ 19 | OBJC_EXPORT void HCRequireNonNilObject(id obj); 20 | -------------------------------------------------------------------------------- /Example/Pods/OCHamcrest/Source/Core/Helpers/HCRequireNonNilObject.m: -------------------------------------------------------------------------------- 1 | // 2 | // OCHamcrest - HCRequireNonNilObject.m 3 | // Copyright 2013 hamcrest.org. See LICENSE.txt 4 | // 5 | // Created by: Jon Reid, http://qualitycoding.org/ 6 | // Docs: http://hamcrest.github.com/OCHamcrest/ 7 | // Source: https://github.com/hamcrest/OCHamcrest 8 | // 9 | 10 | #import "HCRequireNonNilObject.h" 11 | 12 | 13 | void HCRequireNonNilObject(id obj) 14 | { 15 | if (obj == nil) 16 | { 17 | @throw [NSException exceptionWithName:@"NilObject" 18 | reason:@"Must be non-nil object" 19 | userInfo:nil]; 20 | } 21 | } 22 | -------------------------------------------------------------------------------- /Example/Pods/OCHamcrest/Source/Core/Helpers/HCWrapInMatcher.h: -------------------------------------------------------------------------------- 1 | // 2 | // OCHamcrest - HCWrapInMatcher.h 3 | // Copyright 2013 hamcrest.org. See LICENSE.txt 4 | // 5 | // Created by: Jon Reid, http://qualitycoding.org/ 6 | // Docs: http://hamcrest.github.com/OCHamcrest/ 7 | // Source: https://github.com/hamcrest/OCHamcrest 8 | // 9 | 10 | #import 11 | 12 | @protocol HCMatcher; 13 | 14 | 15 | /** 16 | Wraps argument in a matcher, if necessary. 17 | 18 | @return The argument as-if if it is already a matcher, otherwise wrapped in an @ref equalTo matcher. 19 | 20 | @ingroup helpers 21 | */ 22 | OBJC_EXPORT id HCWrapInMatcher(id matcherOrValue); 23 | -------------------------------------------------------------------------------- /Example/Pods/OCHamcrest/Source/Core/Helpers/HCWrapInMatcher.m: -------------------------------------------------------------------------------- 1 | // 2 | // OCHamcrest - HCWrapInMatcher.m 3 | // Copyright 2013 hamcrest.org. See LICENSE.txt 4 | // 5 | // Created by: Jon Reid, http://qualitycoding.org/ 6 | // Docs: http://hamcrest.github.com/OCHamcrest/ 7 | // Source: https://github.com/hamcrest/OCHamcrest 8 | // 9 | 10 | #import "HCWrapInMatcher.h" 11 | 12 | #import "HCIsEqual.h" 13 | 14 | 15 | id HCWrapInMatcher(id matcherOrValue) 16 | { 17 | if (!matcherOrValue) 18 | return nil; 19 | 20 | if ([matcherOrValue conformsToProtocol:@protocol(HCMatcher)]) 21 | return matcherOrValue; 22 | else 23 | return HC_equalTo(matcherOrValue); 24 | } 25 | -------------------------------------------------------------------------------- /Example/Pods/OCHamcrest/Source/Library/Collection/HCIsEmptyCollection.h: -------------------------------------------------------------------------------- 1 | // 2 | // OCHamcrest - HCIsEmptyCollection.h 3 | // Copyright 2013 hamcrest.org. See LICENSE.txt 4 | // 5 | // Created by: Jon Reid, http://qualitycoding.org/ 6 | // Docs: http://hamcrest.github.com/OCHamcrest/ 7 | // Source: https://github.com/hamcrest/OCHamcrest 8 | // 9 | 10 | #import 11 | 12 | 13 | @interface HCIsEmptyCollection : HCHasCount 14 | 15 | + (instancetype)isEmptyCollection; 16 | - (instancetype)init; 17 | 18 | @end 19 | 20 | 21 | OBJC_EXPORT id HC_isEmpty(void); 22 | 23 | /** 24 | Matches empty collection. 25 | 26 | This matcher invokes @c -count on the evaluated object to determine if the number of elements it 27 | contains is zero. 28 | 29 | (In the event of a name clash, don't \#define @c HC_SHORTHAND and use the synonym 30 | @c HC_isEmpty instead.) 31 | 32 | @ingroup collection_matchers 33 | */ 34 | #ifdef HC_SHORTHAND 35 | #define isEmpty() HC_isEmpty() 36 | #endif 37 | -------------------------------------------------------------------------------- /Example/Pods/OCHamcrest/Source/Library/Collection/HCIsEmptyCollection.m: -------------------------------------------------------------------------------- 1 | // 2 | // OCHamcrest - HCIsEmptyCollection.m 3 | // Copyright 2013 hamcrest.org. See LICENSE.txt 4 | // 5 | // Created by: Jon Reid, http://qualitycoding.org/ 6 | // Docs: http://hamcrest.github.com/OCHamcrest/ 7 | // Source: https://github.com/hamcrest/OCHamcrest 8 | // 9 | 10 | #import "HCIsEmptyCollection.h" 11 | 12 | #import "HCDescription.h" 13 | #import "HCIsEqualToNumber.h" 14 | 15 | 16 | @implementation HCIsEmptyCollection 17 | 18 | + (instancetype)isEmptyCollection 19 | { 20 | return [[self alloc] init]; 21 | } 22 | 23 | - (instancetype)init 24 | { 25 | self = [super initWithCount:HC_equalToUnsignedInteger(0)]; 26 | return self; 27 | } 28 | 29 | - (void)describeMismatchOf:(id)item to:(id)mismatchDescription 30 | { 31 | [[mismatchDescription appendText:@"was "] appendDescriptionOf:item]; 32 | } 33 | 34 | - (void)describeTo:(id)description 35 | { 36 | [description appendText:@"empty collection"]; 37 | } 38 | 39 | @end 40 | 41 | 42 | OBJC_EXPORT id HC_isEmpty() 43 | { 44 | return [HCIsEmptyCollection isEmptyCollection]; 45 | } 46 | -------------------------------------------------------------------------------- /Example/Pods/OCHamcrest/Source/Library/Collection/HCIsIn.h: -------------------------------------------------------------------------------- 1 | // 2 | // OCHamcrest - HCIsIn.h 3 | // Copyright 2013 hamcrest.org. See LICENSE.txt 4 | // 5 | // Created by: Jon Reid, http://qualitycoding.org/ 6 | // Docs: http://hamcrest.github.com/OCHamcrest/ 7 | // Source: https://github.com/hamcrest/OCHamcrest 8 | // 9 | 10 | #import 11 | 12 | 13 | @interface HCIsIn : HCBaseMatcher 14 | { 15 | id collection; 16 | } 17 | 18 | + (instancetype)isInCollection:(id)aCollection; 19 | - (instancetype)initWithCollection:(id)aCollection; 20 | 21 | @end 22 | 23 | 24 | OBJC_EXPORT id HC_isIn(id aCollection); 25 | 26 | /** 27 | isIn(aCollection) - 28 | Matches if evaluated object is present in a given collection. 29 | 30 | @param aCollection The collection to search. 31 | 32 | This matcher invokes @c -containsObject: on @a aCollection to determine if the evaluated object 33 | is an element of the collection. 34 | 35 | (In the event of a name clash, don't \#define @c HC_SHORTHAND and use the synonym 36 | @c HC_isIn instead.) 37 | 38 | @ingroup collection_matchers 39 | */ 40 | #ifdef HC_SHORTHAND 41 | #define isIn HC_isIn 42 | #endif 43 | -------------------------------------------------------------------------------- /Example/Pods/OCHamcrest/Source/Library/Decorator/HCIs.m: -------------------------------------------------------------------------------- 1 | // 2 | // OCHamcrest - HCIs.m 3 | // Copyright 2013 hamcrest.org. See LICENSE.txt 4 | // 5 | // Created by: Jon Reid, http://qualitycoding.org/ 6 | // Docs: http://hamcrest.github.com/OCHamcrest/ 7 | // Source: https://github.com/hamcrest/OCHamcrest 8 | // 9 | 10 | #import "HCIs.h" 11 | 12 | #import "HCDescription.h" 13 | #import "HCWrapInMatcher.h" 14 | 15 | 16 | @implementation HCIs 17 | 18 | + (instancetype)is:(id )aMatcher 19 | { 20 | return [[self alloc] initWithMatcher:aMatcher]; 21 | } 22 | 23 | - (instancetype)initWithMatcher:(id )aMatcher 24 | { 25 | self = [super init]; 26 | if (self) 27 | matcher = aMatcher; 28 | return self; 29 | } 30 | 31 | - (BOOL)matches:(id)item 32 | { 33 | return [matcher matches:item]; 34 | } 35 | 36 | - (void)describeMismatchOf:(id)item to:(id)mismatchDescription 37 | { 38 | [matcher describeMismatchOf:item to:mismatchDescription]; 39 | } 40 | 41 | - (void)describeTo:(id)description 42 | { 43 | [description appendDescriptionOf:matcher]; 44 | } 45 | 46 | @end 47 | 48 | 49 | id HC_is(id match) 50 | { 51 | return [HCIs is:HCWrapInMatcher(match)]; 52 | } 53 | -------------------------------------------------------------------------------- /Example/Pods/OCHamcrest/Source/Library/Logical/HCAllOf.h: -------------------------------------------------------------------------------- 1 | // 2 | // OCHamcrest - HCAllOf.h 3 | // Copyright 2013 hamcrest.org. See LICENSE.txt 4 | // 5 | // Created by: Jon Reid, http://qualitycoding.org/ 6 | // Docs: http://hamcrest.github.com/OCHamcrest/ 7 | // Source: https://github.com/hamcrest/OCHamcrest 8 | // 9 | 10 | #import 11 | 12 | 13 | @interface HCAllOf : HCBaseMatcher 14 | { 15 | NSArray *matchers; 16 | } 17 | 18 | + (instancetype)allOf:(NSArray *)theMatchers; 19 | - (instancetype)initWithMatchers:(NSArray *)theMatchers; 20 | 21 | @end 22 | 23 | 24 | OBJC_EXPORT id HC_allOf(id match, ...) NS_REQUIRES_NIL_TERMINATION; 25 | 26 | /** 27 | allOf(firstMatcher, ...) - 28 | Matches if all of the given matchers evaluate to @c YES. 29 | 30 | @param firstMatcher,... A comma-separated list of matchers ending with @c nil. 31 | 32 | The matchers are evaluated from left to right using short-circuit evaluation, so evaluation 33 | stops as soon as a matcher returns @c NO. 34 | 35 | Any argument that is not a matcher is implicitly wrapped in an @ref equalTo matcher to check for 36 | equality. 37 | 38 | (In the event of a name clash, don't \#define @c HC_SHORTHAND and use the synonym 39 | @c HC_allOf instead.) 40 | 41 | @ingroup logical_matchers 42 | */ 43 | #ifdef HC_SHORTHAND 44 | #define allOf HC_allOf 45 | #endif 46 | -------------------------------------------------------------------------------- /Example/Pods/OCHamcrest/Source/Library/Logical/HCAnyOf.h: -------------------------------------------------------------------------------- 1 | // 2 | // OCHamcrest - HCAnyOf.h 3 | // Copyright 2013 hamcrest.org. See LICENSE.txt 4 | // 5 | // Created by: Jon Reid, http://qualitycoding.org/ 6 | // Docs: http://hamcrest.github.com/OCHamcrest/ 7 | // Source: https://github.com/hamcrest/OCHamcrest 8 | // 9 | 10 | #import 11 | 12 | 13 | @interface HCAnyOf : HCBaseMatcher 14 | { 15 | NSArray *matchers; 16 | } 17 | 18 | + (instancetype)anyOf:(NSArray *)theMatchers; 19 | - (instancetype)initWithMatchers:(NSArray *)theMatchers; 20 | 21 | @end 22 | 23 | 24 | OBJC_EXPORT id HC_anyOf(id match, ...) NS_REQUIRES_NIL_TERMINATION; 25 | 26 | /** 27 | anyOf(firstMatcher, ...) - 28 | Matches if any of the given matchers evaluate to @c YES. 29 | 30 | @param firstMatcher,... A comma-separated list of matchers ending with @c nil. 31 | 32 | The matchers are evaluated from left to right using short-circuit evaluation, so evaluation 33 | stops as soon as a matcher returns @c YES. 34 | 35 | Any argument that is not a matcher is implicitly wrapped in an @ref equalTo matcher to check for 36 | equality. 37 | 38 | (In the event of a name clash, don't \#define @c HC_SHORTHAND and use the synonym 39 | @c HC_anyOf instead.) 40 | 41 | @ingroup logical_matchers 42 | */ 43 | #ifdef HC_SHORTHAND 44 | #define anyOf HC_anyOf 45 | #endif 46 | -------------------------------------------------------------------------------- /Example/Pods/OCHamcrest/Source/Library/Logical/HCAnyOf.m: -------------------------------------------------------------------------------- 1 | // 2 | // OCHamcrest - HCAnyOf.m 3 | // Copyright 2013 hamcrest.org. See LICENSE.txt 4 | // 5 | // Created by: Jon Reid, http://qualitycoding.org/ 6 | // Docs: http://hamcrest.github.com/OCHamcrest/ 7 | // Source: https://github.com/hamcrest/OCHamcrest 8 | // 9 | 10 | #import "HCAnyOf.h" 11 | 12 | #import "HCCollectMatchers.h" 13 | #import "HCDescription.h" 14 | 15 | 16 | @implementation HCAnyOf 17 | 18 | + (instancetype)anyOf:(NSArray *)theMatchers 19 | { 20 | return [[self alloc] initWithMatchers:theMatchers]; 21 | } 22 | 23 | - (instancetype)initWithMatchers:(NSArray *)theMatchers 24 | { 25 | self = [super init]; 26 | if (self) 27 | matchers = theMatchers; 28 | return self; 29 | } 30 | 31 | - (BOOL)matches:(id)item 32 | { 33 | for (id oneMatcher in matchers) 34 | if ([oneMatcher matches:item]) 35 | return YES; 36 | return NO; 37 | } 38 | 39 | - (void)describeTo:(id)description 40 | { 41 | [description appendList:matchers start:@"(" separator:@" or " end:@")"]; 42 | } 43 | 44 | @end 45 | 46 | 47 | id HC_anyOf(id match, ...) 48 | { 49 | va_list args; 50 | va_start(args, match); 51 | NSArray *matcherList = HCCollectMatchers(match, args); 52 | va_end(args); 53 | 54 | return [HCAnyOf anyOf:matcherList]; 55 | } 56 | -------------------------------------------------------------------------------- /Example/Pods/OCHamcrest/Source/Library/Logical/HCIsNot.m: -------------------------------------------------------------------------------- 1 | // 2 | // OCHamcrest - HCIsNot.m 3 | // Copyright 2013 hamcrest.org. See LICENSE.txt 4 | // 5 | // Created by: Jon Reid, http://qualitycoding.org/ 6 | // Docs: http://hamcrest.github.com/OCHamcrest/ 7 | // Source: https://github.com/hamcrest/OCHamcrest 8 | // 9 | 10 | #import "HCIsNot.h" 11 | 12 | #import "HCDescription.h" 13 | #import "HCWrapInMatcher.h" 14 | 15 | 16 | @implementation HCIsNot 17 | 18 | + (instancetype)isNot:(id )aMatcher 19 | { 20 | return [[self alloc] initNot:aMatcher]; 21 | } 22 | 23 | - (instancetype)initNot:(id )aMatcher 24 | { 25 | self = [super init]; 26 | if (self) 27 | matcher = aMatcher; 28 | return self; 29 | } 30 | 31 | - (BOOL)matches:(id)item 32 | { 33 | return ![matcher matches:item]; 34 | } 35 | 36 | - (void)describeTo:(id)description 37 | { 38 | [[description appendText:@"not "] appendDescriptionOf:matcher]; 39 | } 40 | 41 | - (void)describeMismatchOf:(id)item to:(id)mismatchDescription 42 | { 43 | [matcher describeMismatchOf:item to:mismatchDescription]; 44 | } 45 | @end 46 | 47 | 48 | id HC_isNot(id aMatcher) 49 | { 50 | return [HCIsNot isNot:HCWrapInMatcher(aMatcher)]; 51 | } 52 | -------------------------------------------------------------------------------- /Example/Pods/OCHamcrest/Source/Library/Object/HCClassMatcher.h: -------------------------------------------------------------------------------- 1 | // 2 | // OCHamcrest - HCClassMatcher.h 3 | // Copyright 2013 hamcrest.org. See LICENSE.txt 4 | // 5 | // Created by: Jon Reid, http://qualitycoding.org/ 6 | // Docs: http://hamcrest.github.com/OCHamcrest/ 7 | // Source: https://github.com/hamcrest/OCHamcrest 8 | // 9 | 10 | #import 11 | 12 | 13 | @interface HCClassMatcher : HCBaseMatcher 14 | { 15 | Class theClass; 16 | } 17 | 18 | - (instancetype)initWithType:(Class)type; 19 | 20 | @end 21 | -------------------------------------------------------------------------------- /Example/Pods/OCHamcrest/Source/Library/Object/HCClassMatcher.m: -------------------------------------------------------------------------------- 1 | // 2 | // OCHamcrest - HCClassMatcher.m 3 | // Copyright 2013 hamcrest.org. See LICENSE.txt 4 | // 5 | // Created by: Jon Reid, http://qualitycoding.org/ 6 | // Docs: http://hamcrest.github.com/OCHamcrest/ 7 | // Source: https://github.com/hamcrest/OCHamcrest 8 | // 9 | 10 | #import "HCClassMatcher.h" 11 | 12 | #import "HCDescription.h" 13 | #import "HCRequireNonNilObject.h" 14 | 15 | 16 | @interface HCClassMatcher (SubclassResponsibility) 17 | - (NSString *)expectation; 18 | @end 19 | 20 | 21 | @implementation HCClassMatcher 22 | 23 | - (instancetype)initWithType:(Class)aClass 24 | { 25 | HCRequireNonNilObject(aClass); 26 | 27 | self = [super init]; 28 | if (self) 29 | theClass = aClass; 30 | return self; 31 | } 32 | 33 | - (void)describeTo:(id)description 34 | { 35 | [[description appendText:[self expectation]] 36 | appendText:NSStringFromClass(theClass)]; 37 | } 38 | 39 | - (void)describeMismatchOf:(id)item to:(id)mismatchDescription 40 | { 41 | [mismatchDescription appendText:@"was "]; 42 | if (item != nil) 43 | { 44 | [[mismatchDescription appendText:NSStringFromClass([item class])] 45 | appendText:@" instance "]; 46 | } 47 | [mismatchDescription appendDescriptionOf:item]; 48 | } 49 | 50 | @end 51 | -------------------------------------------------------------------------------- /Example/Pods/OCHamcrest/Source/Library/Object/HCConformsToProtocol.h: -------------------------------------------------------------------------------- 1 | // 2 | // OCHamcrest - HCConformsToProtocol.h 3 | // Copyright 2013 hamcrest.org. See LICENSE.txt 4 | // 5 | // Created by: Todd Farrell 6 | // 7 | 8 | #import 9 | 10 | 11 | @interface HCConformsToProtocol : HCBaseMatcher 12 | { 13 | Protocol *theProtocol; 14 | } 15 | 16 | + (instancetype)conformsTo:(Protocol *)protocol; 17 | - (instancetype)initWithProtocol:(Protocol *)protocol; 18 | 19 | @end 20 | 21 | 22 | OBJC_EXPORT id HC_conformsTo(Protocol *aProtocol); 23 | 24 | /** 25 | conformsTo(aProtocol) - 26 | Matches if object conforms to a given protocol. 27 | 28 | @param aProtocol The protocol to compare against as the expected protocol. 29 | 30 | This matcher checks whether the evaluated object conforms to @a aProtocol. 31 | 32 | Example: 33 | @li @ref conformsTo(\@protocol(NSObject)) 34 | 35 | (In the event of a name clash, don't \#define @c HC_SHORTHAND and use the synonym 36 | @c HC_conformsTo instead.) 37 | 38 | @ingroup object_matchers 39 | */ 40 | #ifdef HC_SHORTHAND 41 | #define conformsTo HC_conformsTo 42 | #endif 43 | -------------------------------------------------------------------------------- /Example/Pods/OCHamcrest/Source/Library/Object/HCConformsToProtocol.m: -------------------------------------------------------------------------------- 1 | // 2 | // OCHamcrest - HCConformsToProtocol.m 3 | // Copyright 2013 hamcrest.org. See LICENSE.txt 4 | // 5 | // Created by: Todd Farrell 6 | // 7 | 8 | #import "HCConformsToProtocol.h" 9 | 10 | #import "HCDescription.h" 11 | #import "HCRequireNonNilObject.h" 12 | 13 | 14 | @implementation HCConformsToProtocol 15 | 16 | + (instancetype)conformsTo:(Protocol *)protocol 17 | { 18 | return [[self alloc] initWithProtocol:protocol]; 19 | } 20 | 21 | - (instancetype)initWithProtocol:(Protocol *)aProtocol 22 | { 23 | HCRequireNonNilObject(aProtocol); 24 | 25 | self = [super init]; 26 | if (self) 27 | theProtocol = aProtocol; 28 | return self; 29 | } 30 | 31 | - (BOOL)matches:(id)item 32 | { 33 | return [item conformsToProtocol:theProtocol]; 34 | } 35 | 36 | - (void)describeTo:(id)description 37 | { 38 | [[description appendText:@"an object that conforms to "] 39 | appendText:NSStringFromProtocol(theProtocol)]; 40 | } 41 | 42 | @end 43 | 44 | 45 | id HC_conformsTo(Protocol *aProtocol) 46 | { 47 | return [HCConformsToProtocol conformsTo:aProtocol]; 48 | } 49 | -------------------------------------------------------------------------------- /Example/Pods/OCHamcrest/Source/Library/Object/HCHasDescription.m: -------------------------------------------------------------------------------- 1 | // 2 | // OCHamcrest - HCHasDescription.m 3 | // Copyright 2013 hamcrest.org. See LICENSE.txt 4 | // 5 | // Created by: Jon Reid, http://qualitycoding.org/ 6 | // Docs: http://hamcrest.github.com/OCHamcrest/ 7 | // Source: https://github.com/hamcrest/OCHamcrest 8 | // 9 | 10 | #import "HCHasDescription.h" 11 | 12 | #import "HCWrapInMatcher.h" 13 | 14 | 15 | @implementation HCHasDescription 16 | 17 | + (instancetype)hasDescription:(id )descriptionMatcher 18 | { 19 | return [[self alloc] initWithDescription:descriptionMatcher]; 20 | } 21 | 22 | - (instancetype)initWithDescription:(id )descriptionMatcher 23 | { 24 | NSInvocation *anInvocation = [HCInvocationMatcher invocationForSelector:@selector(description) 25 | onClass:[NSObject class]]; 26 | self = [super initWithInvocation:anInvocation matching:descriptionMatcher]; 27 | self.shortMismatchDescription = YES; 28 | return self; 29 | } 30 | 31 | @end 32 | 33 | 34 | id HC_hasDescription(id match) 35 | { 36 | return [HCHasDescription hasDescription:HCWrapInMatcher(match)]; 37 | } 38 | -------------------------------------------------------------------------------- /Example/Pods/OCHamcrest/Source/Library/Object/HCIsEqual.h: -------------------------------------------------------------------------------- 1 | // 2 | // OCHamcrest - HCIsEqual.h 3 | // Copyright 2013 hamcrest.org. See LICENSE.txt 4 | // 5 | // Created by: Jon Reid, http://qualitycoding.org/ 6 | // Docs: http://hamcrest.github.com/OCHamcrest/ 7 | // Source: https://github.com/hamcrest/OCHamcrest 8 | // 9 | 10 | #import 11 | 12 | 13 | @interface HCIsEqual : HCBaseMatcher 14 | { 15 | id object; 16 | } 17 | 18 | + (instancetype)isEqualTo:(id)anObject; 19 | - (instancetype)initEqualTo:(id)anObject; 20 | 21 | @end 22 | 23 | 24 | OBJC_EXPORT id HC_equalTo(id object); 25 | 26 | /** 27 | equalTo(anObject) - 28 | Matches if object is equal to a given object. 29 | 30 | @param anObject The object to compare against as the expected value. 31 | 32 | This matcher compares the evaluated object to @a anObject for equality, as determined by the 33 | @c -isEqual: method. 34 | 35 | If @a anObject is @c nil, the matcher will successfully match @c nil. 36 | 37 | (In the event of a name clash, don't \#define @c HC_SHORTHAND and use the synonym 38 | @c HC_equalTo instead.) 39 | 40 | @ingroup object_matchers 41 | */ 42 | #ifdef HC_SHORTHAND 43 | #define equalTo HC_equalTo 44 | #endif 45 | -------------------------------------------------------------------------------- /Example/Pods/OCHamcrest/Source/Library/Object/HCIsEqual.m: -------------------------------------------------------------------------------- 1 | // 2 | // OCHamcrest - HCIsEqual.m 3 | // Copyright 2013 hamcrest.org. See LICENSE.txt 4 | // 5 | // Created by: Jon Reid, http://qualitycoding.org/ 6 | // Docs: http://hamcrest.github.com/OCHamcrest/ 7 | // Source: https://github.com/hamcrest/OCHamcrest 8 | // 9 | 10 | #import "HCIsEqual.h" 11 | 12 | #import "HCDescription.h" 13 | 14 | 15 | @implementation HCIsEqual 16 | 17 | + (instancetype)isEqualTo:(id)anObject 18 | { 19 | return [[self alloc] initEqualTo:anObject]; 20 | } 21 | 22 | - (instancetype)initEqualTo:(id)anObject 23 | { 24 | self = [super init]; 25 | if (self) 26 | object = anObject; 27 | return self; 28 | } 29 | 30 | - (BOOL)matches:(id)item 31 | { 32 | if (item == nil) 33 | return object == nil; 34 | else 35 | return [item isEqual:object]; 36 | } 37 | 38 | - (void)describeTo:(id)description 39 | { 40 | if ([object conformsToProtocol:@protocol(HCMatcher)]) 41 | { 42 | [[[description appendText:@"<"] 43 | appendDescriptionOf:object] 44 | appendText:@">"]; 45 | } 46 | else 47 | [description appendDescriptionOf:object]; 48 | } 49 | 50 | @end 51 | 52 | 53 | id HC_equalTo(id object) 54 | { 55 | return [HCIsEqual isEqualTo:object]; 56 | } 57 | -------------------------------------------------------------------------------- /Example/Pods/OCHamcrest/Source/Library/Object/HCIsInstanceOf.h: -------------------------------------------------------------------------------- 1 | // 2 | // OCHamcrest - HCIsInstanceOf.h 3 | // Copyright 2013 hamcrest.org. See LICENSE.txt 4 | // 5 | // Created by: Jon Reid, http://qualitycoding.org/ 6 | // Docs: http://hamcrest.github.com/OCHamcrest/ 7 | // Source: https://github.com/hamcrest/OCHamcrest 8 | // 9 | 10 | #import 11 | 12 | 13 | @interface HCIsInstanceOf : HCClassMatcher 14 | 15 | + (id)isInstanceOf:(Class)type; 16 | 17 | @end 18 | 19 | 20 | OBJC_EXPORT id HC_instanceOf(Class aClass); 21 | 22 | /** 23 | instanceOf(aClass) - 24 | Matches if object is an instance of, or inherits from, a given class. 25 | 26 | @param aClass The class to compare against as the expected class. 27 | 28 | This matcher checks whether the evaluated object is an instance of @a aClass or an instance of 29 | any class that inherits from @a aClass. 30 | 31 | Example: 32 | @li @ref instanceOf([NSString class]) 33 | 34 | (In the event of a name clash, don't \#define @c HC_SHORTHAND and use the synonym 35 | @c HC_instanceOf instead.) 36 | 37 | @ingroup object_matchers 38 | */ 39 | #ifdef HC_SHORTHAND 40 | #define instanceOf HC_instanceOf 41 | #endif 42 | -------------------------------------------------------------------------------- /Example/Pods/OCHamcrest/Source/Library/Object/HCIsInstanceOf.m: -------------------------------------------------------------------------------- 1 | // 2 | // OCHamcrest - HCIsInstanceOf.m 3 | // Copyright 2013 hamcrest.org. See LICENSE.txt 4 | // 5 | // Created by: Jon Reid, http://qualitycoding.org/ 6 | // Docs: http://hamcrest.github.com/OCHamcrest/ 7 | // Source: https://github.com/hamcrest/OCHamcrest 8 | // 9 | 10 | #import "HCIsInstanceOf.h" 11 | 12 | #import "HCDescription.h" 13 | #import "HCRequireNonNilObject.h" 14 | 15 | 16 | @implementation HCIsInstanceOf 17 | 18 | + (instancetype)isInstanceOf:(Class)type 19 | { 20 | return [[self alloc] initWithType:type]; 21 | } 22 | 23 | - (BOOL)matches:(id)item 24 | { 25 | return [item isKindOfClass:theClass]; 26 | } 27 | 28 | - (NSString *)expectation 29 | { 30 | return @"an instance of "; 31 | } 32 | 33 | @end 34 | 35 | 36 | id HC_instanceOf(Class aClass) 37 | { 38 | return [HCIsInstanceOf isInstanceOf:aClass]; 39 | } 40 | -------------------------------------------------------------------------------- /Example/Pods/OCHamcrest/Source/Library/Object/HCIsNil.h: -------------------------------------------------------------------------------- 1 | // 2 | // OCHamcrest - HCIsNil.h 3 | // Copyright 2013 hamcrest.org. See LICENSE.txt 4 | // 5 | // Created by: Jon Reid, http://qualitycoding.org/ 6 | // Docs: http://hamcrest.github.com/OCHamcrest/ 7 | // Source: https://github.com/hamcrest/OCHamcrest 8 | // 9 | 10 | #import 11 | 12 | 13 | @interface HCIsNil : HCBaseMatcher 14 | 15 | + (id)isNil; 16 | 17 | @end 18 | 19 | 20 | OBJC_EXPORT id HC_nilValue(void); 21 | 22 | /** 23 | Matches if object is @c nil. 24 | 25 | (In the event of a name clash, don't \#define @c HC_SHORTHAND and use the synonym 26 | @c HC_nilValue instead.) 27 | 28 | @ingroup object_matchers 29 | */ 30 | #ifdef HC_SHORTHAND 31 | #define nilValue() HC_nilValue() 32 | #endif 33 | 34 | 35 | OBJC_EXPORT id HC_notNilValue(void); 36 | 37 | /** 38 | Matches if object is not @c nil. 39 | 40 | (In the event of a name clash, don't \#define @c HC_SHORTHAND and use the synonym 41 | @c HC_notNilValue instead.) 42 | 43 | @ingroup object_matchers 44 | */ 45 | #ifdef HC_SHORTHAND 46 | #define notNilValue() HC_notNilValue() 47 | #endif 48 | -------------------------------------------------------------------------------- /Example/Pods/OCHamcrest/Source/Library/Object/HCIsNil.m: -------------------------------------------------------------------------------- 1 | // 2 | // OCHamcrest - HCIsNil.m 3 | // Copyright 2013 hamcrest.org. See LICENSE.txt 4 | // 5 | // Created by: Jon Reid, http://qualitycoding.org/ 6 | // Docs: http://hamcrest.github.com/OCHamcrest/ 7 | // Source: https://github.com/hamcrest/OCHamcrest 8 | // 9 | 10 | #import "HCIsNil.h" 11 | 12 | #import "HCDescription.h" 13 | #import "HCIsNot.h" 14 | 15 | 16 | @implementation HCIsNil 17 | 18 | + (instancetype)isNil 19 | { 20 | return [[self alloc] init]; 21 | } 22 | 23 | - (BOOL)matches:(id)item 24 | { 25 | return item == nil; 26 | } 27 | 28 | - (void)describeTo:(id)description 29 | { 30 | [description appendText:@"nil"]; 31 | } 32 | 33 | @end 34 | 35 | 36 | id HC_nilValue() 37 | { 38 | return [HCIsNil isNil]; 39 | } 40 | 41 | id HC_notNilValue() 42 | { 43 | return HC_isNot([HCIsNil isNil]); 44 | } 45 | -------------------------------------------------------------------------------- /Example/Pods/OCHamcrest/Source/Library/Object/HCIsSame.h: -------------------------------------------------------------------------------- 1 | // 2 | // OCHamcrest - HCIsSame.h 3 | // Copyright 2013 hamcrest.org. See LICENSE.txt 4 | // 5 | // Created by: Jon Reid, http://qualitycoding.org/ 6 | // Docs: http://hamcrest.github.com/OCHamcrest/ 7 | // Source: https://github.com/hamcrest/OCHamcrest 8 | // 9 | 10 | #import 11 | 12 | 13 | @interface HCIsSame : HCBaseMatcher 14 | { 15 | id object; 16 | } 17 | 18 | + (instancetype)isSameAs:(id)anObject; 19 | - (instancetype)initSameAs:(id)anObject; 20 | 21 | @end 22 | 23 | 24 | OBJC_EXPORT id HC_sameInstance(id object); 25 | 26 | /** 27 | sameInstance(anObject) - 28 | Matches if evaluated object is the same instance as a given object. 29 | 30 | @param anObject The object to compare against as the expected value. 31 | 32 | This matcher compares the address of the evaluated object to determine if it is the same object 33 | as @a anObject. 34 | 35 | (In the event of a name clash, don't \#define @c HC_SHORTHAND and use the synonym 36 | @c HC_sameInstance instead.) 37 | 38 | @ingroup object_matchers 39 | */ 40 | #ifdef HC_SHORTHAND 41 | #define sameInstance HC_sameInstance 42 | #endif 43 | -------------------------------------------------------------------------------- /Example/Pods/OCHamcrest/Source/Library/Object/HCIsTypeOf.h: -------------------------------------------------------------------------------- 1 | // 2 | // OCHamcrest - HCIsTypeOf.h 3 | // Copyright 2013 hamcrest.org. See LICENSE.txt 4 | // 5 | // Created by: Jon Reid, http://qualitycoding.org/ 6 | // Docs: http://hamcrest.github.com/OCHamcrest/ 7 | // Source: https://github.com/hamcrest/OCHamcrest 8 | // 9 | 10 | #import 11 | 12 | 13 | @interface HCIsTypeOf : HCClassMatcher 14 | 15 | + (id)isTypeOf:(Class)type; 16 | 17 | @end 18 | 19 | 20 | OBJC_EXPORT id HC_isA(Class aClass); 21 | 22 | /** 23 | isA(aClass) - 24 | Matches if object is an instance of a given class (but not of a subclass). 25 | 26 | @param aClass The class to compare against as the expected class. 27 | 28 | This matcher checks whether the evaluated object is an instance of @a aClass. 29 | 30 | Example: 31 | @li @ref isA([Foo class]) 32 | 33 | (In the event of a name clash, don't \#define @c HC_SHORTHAND and use the synonym 34 | @c HC_isA instead.) 35 | 36 | @ingroup object_matchers 37 | */ 38 | #ifdef HC_SHORTHAND 39 | #define isA HC_isA 40 | #endif 41 | -------------------------------------------------------------------------------- /Example/Pods/OCHamcrest/Source/Library/Object/HCIsTypeOf.m: -------------------------------------------------------------------------------- 1 | // 2 | // OCHamcrest - HCIsTypeOf.m 3 | // Copyright 2013 hamcrest.org. See LICENSE.txt 4 | // 5 | // Created by: Jon Reid, http://qualitycoding.org/ 6 | // Docs: http://hamcrest.github.com/OCHamcrest/ 7 | // Source: https://github.com/hamcrest/OCHamcrest 8 | // 9 | 10 | #import "HCIsTypeOf.h" 11 | 12 | #import "HCDescription.h" 13 | #import "HCRequireNonNilObject.h" 14 | 15 | 16 | @implementation HCIsTypeOf 17 | 18 | + (instancetype)isTypeOf:(Class)type 19 | { 20 | return [[self alloc] initWithType:type]; 21 | } 22 | 23 | - (BOOL)matches:(id)item 24 | { 25 | return [item isMemberOfClass:theClass]; 26 | } 27 | 28 | - (NSString *)expectation 29 | { 30 | return @"an exact instance of "; 31 | } 32 | 33 | @end 34 | 35 | 36 | id HC_isA(Class aClass) 37 | { 38 | return [HCIsTypeOf isTypeOf:aClass]; 39 | } 40 | -------------------------------------------------------------------------------- /Example/Pods/OCHamcrest/Source/Library/Text/HCIsEqualIgnoringCase.m: -------------------------------------------------------------------------------- 1 | // 2 | // OCHamcrest - HCIsEqualIgnoringCase.m 3 | // Copyright 2013 hamcrest.org. See LICENSE.txt 4 | // 5 | // Created by: Jon Reid, http://qualitycoding.org/ 6 | // Docs: http://hamcrest.github.com/OCHamcrest/ 7 | // Source: https://github.com/hamcrest/OCHamcrest 8 | // 9 | 10 | #import "HCIsEqualIgnoringCase.h" 11 | 12 | #import "HCDescription.h" 13 | #import "HCRequireNonNilObject.h" 14 | 15 | 16 | @implementation HCIsEqualIgnoringCase 17 | 18 | + (instancetype)isEqualIgnoringCase:(NSString *)aString 19 | { 20 | return [[self alloc] initWithString:aString]; 21 | } 22 | 23 | - (instancetype)initWithString:(NSString *)aString 24 | { 25 | HCRequireNonNilObject(aString); 26 | 27 | self = [super init]; 28 | if (self) 29 | string = [aString copy]; 30 | return self; 31 | } 32 | 33 | - (BOOL)matches:(id)item 34 | { 35 | if (![item isKindOfClass:[NSString class]]) 36 | return NO; 37 | 38 | return [string caseInsensitiveCompare:item] == NSOrderedSame; 39 | } 40 | 41 | - (void)describeTo:(id)description 42 | { 43 | [[description appendDescriptionOf:string] 44 | appendText:@" ignoring case"]; 45 | } 46 | 47 | @end 48 | 49 | 50 | id HC_equalToIgnoringCase(NSString *aString) 51 | { 52 | return [HCIsEqualIgnoringCase isEqualIgnoringCase:aString]; 53 | } 54 | -------------------------------------------------------------------------------- /Example/Pods/OCHamcrest/Source/Library/Text/HCStringContains.h: -------------------------------------------------------------------------------- 1 | // 2 | // OCHamcrest - HCStringContains.h 3 | // Copyright 2013 hamcrest.org. See LICENSE.txt 4 | // 5 | // Created by: Jon Reid, http://qualitycoding.org/ 6 | // Docs: http://hamcrest.github.com/OCHamcrest/ 7 | // Source: https://github.com/hamcrest/OCHamcrest 8 | // 9 | 10 | #import 11 | 12 | 13 | @interface HCStringContains : HCSubstringMatcher 14 | 15 | + (id)stringContains:(NSString *)aSubstring; 16 | 17 | @end 18 | 19 | 20 | OBJC_EXPORT id HC_containsString(NSString *aSubstring); 21 | 22 | /** 23 | containsString(aString) - 24 | Matches if object is a string containing a given string. 25 | 26 | @param aString The string to search for. This value must not be @c nil. 27 | 28 | This matcher first checks whether the evaluated object is a string. If so, it checks whether it 29 | contains @a aString. 30 | 31 | Example: 32 | 33 | @par 34 | @ref containsString(@"def") 35 | 36 | will match "abcdefg". 37 | 38 | (In the event of a name clash, don't \#define @c HC_SHORTHAND and use the synonym 39 | @c HC_containsString instead.) 40 | 41 | @ingroup text_matchers 42 | */ 43 | #ifdef HC_SHORTHAND 44 | #define containsString HC_containsString 45 | #endif 46 | -------------------------------------------------------------------------------- /Example/Pods/OCHamcrest/Source/Library/Text/HCStringContains.m: -------------------------------------------------------------------------------- 1 | // 2 | // OCHamcrest - HCStringContains.m 3 | // Copyright 2013 hamcrest.org. See LICENSE.txt 4 | // 5 | // Created by: Jon Reid, http://qualitycoding.org/ 6 | // Docs: http://hamcrest.github.com/OCHamcrest/ 7 | // Source: https://github.com/hamcrest/OCHamcrest 8 | // 9 | 10 | #import "HCStringContains.h" 11 | 12 | 13 | @implementation HCStringContains 14 | 15 | + (instancetype)stringContains:(NSString *)aString 16 | { 17 | return [[self alloc] initWithSubstring:aString]; 18 | } 19 | 20 | - (BOOL)matches:(id)item 21 | { 22 | if (![item respondsToSelector:@selector(rangeOfString:)]) 23 | return NO; 24 | 25 | return [item rangeOfString:substring].location != NSNotFound; 26 | } 27 | 28 | - (NSString *)relationship 29 | { 30 | return @"containing"; 31 | } 32 | 33 | @end 34 | 35 | 36 | id HC_containsString(NSString *aString) 37 | { 38 | return [HCStringContains stringContains:aString]; 39 | } 40 | -------------------------------------------------------------------------------- /Example/Pods/OCHamcrest/Source/Library/Text/HCStringEndsWith.h: -------------------------------------------------------------------------------- 1 | // 2 | // OCHamcrest - HCStringEndsWith.h 3 | // Copyright 2013 hamcrest.org. See LICENSE.txt 4 | // 5 | // Created by: Jon Reid, http://qualitycoding.org/ 6 | // Docs: http://hamcrest.github.com/OCHamcrest/ 7 | // Source: https://github.com/hamcrest/OCHamcrest 8 | // 9 | 10 | #import 11 | 12 | 13 | @interface HCStringEndsWith : HCSubstringMatcher 14 | 15 | + (id)stringEndsWith:(NSString *)aSubstring; 16 | 17 | @end 18 | 19 | 20 | OBJC_EXPORT id HC_endsWith(NSString *aSubstring); 21 | 22 | /** 23 | endsWith(aString) - 24 | Matches if object is a string ending with a given string. 25 | 26 | @param aString The string to search for. This value must not be @c nil. 27 | 28 | This matcher first checks whether the evaluated object is a string. If so, it checks if 29 | @a aString matches the ending characters of the evaluated object. 30 | 31 | Example: 32 | 33 | @par 34 | @ref endsWith(@"bar") 35 | 36 | will match "foobar". 37 | 38 | (In the event of a name clash, don't \#define @c HC_SHORTHAND and use the synonym 39 | @c HC_endsWith instead.) 40 | 41 | @ingroup text_matchers 42 | */ 43 | #ifdef HC_SHORTHAND 44 | #define endsWith HC_endsWith 45 | #endif 46 | -------------------------------------------------------------------------------- /Example/Pods/OCHamcrest/Source/Library/Text/HCStringEndsWith.m: -------------------------------------------------------------------------------- 1 | // 2 | // OCHamcrest - HCStringEndsWith.m 3 | // Copyright 2013 hamcrest.org. See LICENSE.txt 4 | // 5 | // Created by: Jon Reid, http://qualitycoding.org/ 6 | // Docs: http://hamcrest.github.com/OCHamcrest/ 7 | // Source: https://github.com/hamcrest/OCHamcrest 8 | // 9 | 10 | #import "HCStringEndsWith.h" 11 | 12 | 13 | @implementation HCStringEndsWith 14 | 15 | + (instancetype)stringEndsWith:(NSString *)aString 16 | { 17 | return [[self alloc] initWithSubstring:aString]; 18 | } 19 | 20 | - (BOOL)matches:(id)item 21 | { 22 | if (![item respondsToSelector:@selector(hasSuffix:)]) 23 | return NO; 24 | 25 | return [item hasSuffix:substring]; 26 | } 27 | 28 | - (NSString *)relationship 29 | { 30 | return @"ending with"; 31 | } 32 | 33 | @end 34 | 35 | 36 | id HC_endsWith(NSString *aString) 37 | { 38 | return [HCStringEndsWith stringEndsWith:aString]; 39 | } 40 | -------------------------------------------------------------------------------- /Example/Pods/OCHamcrest/Source/Library/Text/HCStringStartsWith.h: -------------------------------------------------------------------------------- 1 | // 2 | // OCHamcrest - HCStringStartsWith.h 3 | // Copyright 2013 hamcrest.org. See LICENSE.txt 4 | // 5 | // Created by: Jon Reid, http://qualitycoding.org/ 6 | // Docs: http://hamcrest.github.com/OCHamcrest/ 7 | // Source: https://github.com/hamcrest/OCHamcrest 8 | // 9 | 10 | #import 11 | 12 | 13 | @interface HCStringStartsWith : HCSubstringMatcher 14 | 15 | + (id)stringStartsWith:(NSString *)aSubstring; 16 | 17 | @end 18 | 19 | 20 | OBJC_EXPORT id HC_startsWith(NSString *aSubstring); 21 | 22 | /** 23 | startsWith(aString) - 24 | Matches if object is a string starting with a given string. 25 | 26 | @param aString The string to search for. This value must not be @c nil. 27 | 28 | This matcher first checks whether the evaluated object is a string. If so, it checks if 29 | @a aString matches the beginning characters of the evaluated object. 30 | 31 | Example: 32 | 33 | @par 34 | @ref endsWith(@"foo") 35 | 36 | will match "foobar". 37 | 38 | (In the event of a name clash, don't \#define @c HC_SHORTHAND and use the synonym 39 | @c HC_startsWith instead.) 40 | 41 | @ingroup text_matchers 42 | */ 43 | #ifdef HC_SHORTHAND 44 | #define startsWith HC_startsWith 45 | #endif 46 | -------------------------------------------------------------------------------- /Example/Pods/OCHamcrest/Source/Library/Text/HCStringStartsWith.m: -------------------------------------------------------------------------------- 1 | // 2 | // OCHamcrest - HCStringStartsWith.m 3 | // Copyright 2013 hamcrest.org. See LICENSE.txt 4 | // 5 | // Created by: Jon Reid, http://qualitycoding.org/ 6 | // Docs: http://hamcrest.github.com/OCHamcrest/ 7 | // Source: https://github.com/hamcrest/OCHamcrest 8 | // 9 | 10 | #import "HCStringStartsWith.h" 11 | 12 | 13 | @implementation HCStringStartsWith 14 | 15 | + (instancetype)stringStartsWith:(NSString *)aSubstring 16 | { 17 | return [[self alloc] initWithSubstring:aSubstring]; 18 | } 19 | 20 | - (BOOL)matches:(id)item 21 | { 22 | if (![item respondsToSelector:@selector(hasPrefix:)]) 23 | return NO; 24 | 25 | return [item hasPrefix:substring]; 26 | } 27 | 28 | - (NSString *)relationship 29 | { 30 | return @"starting with"; 31 | } 32 | 33 | @end 34 | 35 | 36 | id HC_startsWith(NSString *aString) 37 | { 38 | return [HCStringStartsWith stringStartsWith:aString]; 39 | } 40 | -------------------------------------------------------------------------------- /Example/Pods/OCHamcrest/Source/Library/Text/HCSubstringMatcher.h: -------------------------------------------------------------------------------- 1 | // 2 | // OCHamcrest - HCSubstringMatcher.h 3 | // Copyright 2013 hamcrest.org. See LICENSE.txt 4 | // 5 | // Created by: Jon Reid, http://qualitycoding.org/ 6 | // Docs: http://hamcrest.github.com/OCHamcrest/ 7 | // Source: https://github.com/hamcrest/OCHamcrest 8 | // 9 | 10 | #import 11 | 12 | 13 | @interface HCSubstringMatcher : HCBaseMatcher 14 | { 15 | NSString *substring; 16 | } 17 | 18 | - (instancetype)initWithSubstring:(NSString *)aString; 19 | 20 | @end 21 | -------------------------------------------------------------------------------- /Example/Pods/OCHamcrest/Source/Library/Text/HCSubstringMatcher.m: -------------------------------------------------------------------------------- 1 | // 2 | // OCHamcrest - HCSubstringMatcher.m 3 | // Copyright 2013 hamcrest.org. See LICENSE.txt 4 | // 5 | // Created by: Jon Reid, http://qualitycoding.org/ 6 | // Docs: http://hamcrest.github.com/OCHamcrest/ 7 | // Source: https://github.com/hamcrest/OCHamcrest 8 | // 9 | 10 | #import "HCSubstringMatcher.h" 11 | 12 | #import "HCDescription.h" 13 | #import "HCRequireNonNilObject.h" 14 | 15 | 16 | @interface HCSubstringMatcher (SubclassResponsibility) 17 | - (NSString *)relationship; 18 | @end 19 | 20 | 21 | @implementation HCSubstringMatcher 22 | 23 | - (instancetype)initWithSubstring:(NSString *)aString 24 | { 25 | HCRequireNonNilObject(aString); 26 | 27 | self = [super init]; 28 | if (self) 29 | substring = [aString copy]; 30 | return self; 31 | } 32 | 33 | - (void)describeTo:(id)description 34 | { 35 | [[[[description appendText:@"a string "] 36 | appendText:[self relationship]] 37 | appendText:@" "] 38 | appendDescriptionOf:substring]; 39 | } 40 | 41 | @end 42 | -------------------------------------------------------------------------------- /Example/Pods/OCMockito/LICENSE.txt: -------------------------------------------------------------------------------- 1 | Copyright 2013 Jonathan M. Reid 2 | All rights reserved. 3 | 4 | Permission is hereby granted, free of charge, to any person obtaining a copy of 5 | this software and associated documentation files (the "Software"), to deal in 6 | the Software without restriction, including without limitation the rights to 7 | use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of 8 | the Software, and to permit persons to whom the Software is furnished to do so, 9 | subject to the following conditions: 10 | 11 | The above copyright notice and this permission notice shall be included in all 12 | copies or substantial portions of the Software. 13 | 14 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 15 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS 16 | FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR 17 | COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER 18 | IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN 19 | CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 20 | 21 | (MIT License) 22 | -------------------------------------------------------------------------------- /Example/Pods/OCMockito/Source/OCMockito/MKTArgumentCaptor.h: -------------------------------------------------------------------------------- 1 | // 2 | // OCMockito - MKTArgumentCaptor.h 3 | // Copyright 2013 Jonathan M. Reid. See LICENSE.txt 4 | // 5 | // Created by: Jon Reid, http://qualitycoding.org/ 6 | // Source: https://github.com/jonreid/OCMockito 7 | // 8 | 9 | #import 10 | 11 | 12 | @interface MKTArgumentCaptor : NSObject 13 | 14 | - (id)capture; 15 | - (id)value; 16 | - (NSArray *)allValues; 17 | 18 | @end 19 | -------------------------------------------------------------------------------- /Example/Pods/OCMockito/Source/OCMockito/MKTArgumentCaptor.m: -------------------------------------------------------------------------------- 1 | // 2 | // OCMockito - MKTArgumentCaptor.m 3 | // Copyright 2013 Jonathan M. Reid. See LICENSE.txt 4 | // 5 | // Created by: Jon Reid, http://qualitycoding.org/ 6 | // Source: https://github.com/jonreid/OCMockito 7 | // 8 | 9 | #import "MKTArgumentCaptor.h" 10 | 11 | #import "MKTCapturingMatcher.h" 12 | 13 | 14 | @implementation MKTArgumentCaptor 15 | { 16 | MKTCapturingMatcher *_matcher; 17 | } 18 | 19 | - (instancetype)init 20 | { 21 | self = [super init]; 22 | if (self) 23 | _matcher = [[MKTCapturingMatcher alloc] init]; 24 | return self; 25 | } 26 | 27 | - (id)capture 28 | { 29 | return _matcher; 30 | } 31 | 32 | - (id)value 33 | { 34 | return [_matcher lastValue]; 35 | } 36 | 37 | - (NSArray *)allValues 38 | { 39 | return [_matcher allValues]; 40 | } 41 | 42 | @end 43 | -------------------------------------------------------------------------------- /Example/Pods/OCMockito/Source/OCMockito/MKTAtLeastTimes.h: -------------------------------------------------------------------------------- 1 | // 2 | // OCMockito - MKTAtLeastTimes.h 3 | // Copyright 2013 Jonathan M. Reid. See LICENSE.txt 4 | // 5 | // Created by Markus Gasser on 18.04.12. 6 | // Source: https://github.com/jonreid/OCMockito 7 | // 8 | 9 | #import 10 | #import "MKTVerificationMode.h" 11 | 12 | 13 | @interface MKTAtLeastTimes : NSObject 14 | 15 | - (instancetype)initWithMinimumCount:(NSUInteger)minimumExpectedNumberOfInvocations; 16 | 17 | @end 18 | -------------------------------------------------------------------------------- /Example/Pods/OCMockito/Source/OCMockito/MKTBaseMockObject.h: -------------------------------------------------------------------------------- 1 | // 2 | // OCMockito - MKTBaseMockObject.h 3 | // Copyright 2013 Jonathan M. Reid. See LICENSE.txt 4 | // 5 | // Created by: Jon Reid, http://qualitycoding.org/ 6 | // Source: https://github.com/jonreid/OCMockito 7 | // 8 | 9 | #import 10 | #import "MKTPrimitiveArgumentMatching.h" 11 | 12 | 13 | @interface MKTBaseMockObject : NSProxy 14 | 15 | - (instancetype)init; 16 | 17 | @end 18 | -------------------------------------------------------------------------------- /Example/Pods/OCMockito/Source/OCMockito/MKTCapturingMatcher.h: -------------------------------------------------------------------------------- 1 | // 2 | // OCMockito - MKTCapturingMatcher.h 3 | // Copyright 2013 Jonathan M. Reid. See LICENSE.txt 4 | // 5 | // Created by: Jon Reid, http://qualitycoding.org/ 6 | // Source: https://github.com/jonreid/OCMockito 7 | // 8 | 9 | #if TARGET_OS_MAC 10 | #import 11 | #else 12 | #import 13 | #endif 14 | 15 | 16 | @interface MKTCapturingMatcher : HCIsAnything 17 | 18 | - (void)captureArgument:(id)arg; 19 | - (NSArray *)allValues; 20 | - (id)lastValue; 21 | 22 | @end 23 | -------------------------------------------------------------------------------- /Example/Pods/OCMockito/Source/OCMockito/MKTClassObjectMock.h: -------------------------------------------------------------------------------- 1 | // 2 | // OCMockito - MKTClassObjectMock.h 3 | // Copyright 2013 Jonathan M. Reid. See LICENSE.txt 4 | // 5 | // Created by: Jon Reid, http://qualitycoding.org/ 6 | // Source: https://github.com/jonreid/OCMockito 7 | // 8 | // Created by: David Hart 9 | // 10 | 11 | #import "MKTBaseMockObject.h" 12 | 13 | 14 | /** 15 | Mock object of a given class object. 16 | */ 17 | @interface MKTClassObjectMock : MKTBaseMockObject 18 | 19 | + (instancetype)mockForClass:(Class)aClass; 20 | - (instancetype)initWithClass:(Class)aClass; 21 | 22 | @end 23 | -------------------------------------------------------------------------------- /Example/Pods/OCMockito/Source/OCMockito/MKTClassObjectMock.m: -------------------------------------------------------------------------------- 1 | // 2 | // OCMockito - MKTClassObjectMock.m 3 | // Copyright 2013 Jonathan M. Reid. See LICENSE.txt 4 | // 5 | // Created by: David Hart 6 | // Source: https://github.com/jonreid/OCMockito 7 | // 8 | 9 | #import "MKTClassObjectMock.h" 10 | 11 | 12 | @implementation MKTClassObjectMock 13 | { 14 | Class _mockedClass; 15 | } 16 | 17 | + (instancetype)mockForClass:(Class)aClass 18 | { 19 | return [[self alloc] initWithClass:aClass]; 20 | } 21 | 22 | - (instancetype)initWithClass:(Class)aClass 23 | { 24 | self = [super init]; 25 | if (self) 26 | _mockedClass = aClass; 27 | return self; 28 | } 29 | 30 | - (NSString *)description 31 | { 32 | return [@"mock class of " stringByAppendingString:NSStringFromClass(_mockedClass)]; 33 | } 34 | 35 | - (NSMethodSignature *)methodSignatureForSelector:(SEL)aSelector 36 | { 37 | return [_mockedClass methodSignatureForSelector:aSelector]; 38 | } 39 | 40 | 41 | #pragma mark NSObject protocol 42 | 43 | - (BOOL)respondsToSelector:(SEL)aSelector 44 | { 45 | return [_mockedClass respondsToSelector:aSelector]; 46 | } 47 | 48 | @end 49 | -------------------------------------------------------------------------------- /Example/Pods/OCMockito/Source/OCMockito/MKTExactTimes.h: -------------------------------------------------------------------------------- 1 | // 2 | // OCMockito - MKTExactTimes.h 3 | // Copyright 2013 Jonathan M. Reid. See LICENSE.txt 4 | // 5 | // Created by: Jon Reid, http://qualitycoding.org/ 6 | // Source: https://github.com/jonreid/OCMockito 7 | // 8 | 9 | #import 10 | #import "MKTVerificationMode.h" 11 | 12 | 13 | @interface MKTExactTimes : NSObject 14 | 15 | - (instancetype)initWithCount:(NSUInteger)expectedNumberOfInvocations; 16 | 17 | @end 18 | -------------------------------------------------------------------------------- /Example/Pods/OCMockito/Source/OCMockito/MKTExactTimes.m: -------------------------------------------------------------------------------- 1 | // 2 | // OCMockito - MKTExactTimes.m 3 | // Copyright 2013 Jonathan M. Reid. See LICENSE.txt 4 | // 5 | // Created by: Jon Reid, http://qualitycoding.org/ 6 | // Source: https://github.com/jonreid/OCMockito 7 | // 8 | 9 | #import "MKTExactTimes.h" 10 | 11 | #import "MKTInvocationContainer.h" 12 | #import "MKTInvocationMatcher.h" 13 | #import "MKTTestLocation.h" 14 | #import "MKTVerificationData.h" 15 | 16 | 17 | @implementation MKTExactTimes 18 | { 19 | NSUInteger _expectedCount; 20 | } 21 | 22 | - (instancetype)initWithCount:(NSUInteger)expectedNumberOfInvocations 23 | { 24 | self = [super init]; 25 | if (self) 26 | _expectedCount = expectedNumberOfInvocations; 27 | return self; 28 | } 29 | 30 | 31 | #pragma mark MKTVerificationMode 32 | 33 | - (void)verifyData:(MKTVerificationData *)data 34 | { 35 | NSUInteger matchingCount = [data numberOfMatchingInvocations]; 36 | if (matchingCount != _expectedCount) 37 | { 38 | NSString *plural = (_expectedCount == 1) ? @"" : @"s"; 39 | NSString *description = [NSString stringWithFormat:@"Expected %u matching invocation%@, but received %u", 40 | (unsigned)_expectedCount, plural, (unsigned)matchingCount]; 41 | MKTFailTestLocation(data.testLocation, description); 42 | } 43 | } 44 | 45 | @end 46 | -------------------------------------------------------------------------------- /Example/Pods/OCMockito/Source/OCMockito/MKTInvocationContainer.h: -------------------------------------------------------------------------------- 1 | // 2 | // OCMockito - MKTInvocationContainer.h 3 | // Copyright 2013 Jonathan M. Reid. See LICENSE.txt 4 | // 5 | // Created by: Jon Reid, http://qualitycoding.org/ 6 | // Source: https://github.com/jonreid/OCMockito 7 | // 8 | 9 | #import 10 | 11 | @class MKTInvocationMatcher; 12 | @class MKTStubbedInvocationMatcher; 13 | @protocol HCMatcher; 14 | 15 | 16 | @interface MKTInvocationContainer : NSObject 17 | 18 | @property (nonatomic, strong, readonly) NSMutableArray *registeredInvocations; 19 | 20 | - (instancetype)init; 21 | - (void)setInvocationForPotentialStubbing:(NSInvocation *)invocation; 22 | - (void)setMatcher:(id )matcher atIndex:(NSUInteger)argumentIndex; 23 | - (void)addAnswer:(id)answer; 24 | - (MKTStubbedInvocationMatcher *)findAnswerFor:(NSInvocation *)invocation; 25 | @end 26 | -------------------------------------------------------------------------------- /Example/Pods/OCMockito/Source/OCMockito/MKTInvocationMatcher.h: -------------------------------------------------------------------------------- 1 | // 2 | // OCMockito - MKTInvocationMatcher.h 3 | // Copyright 2013 Jonathan M. Reid. See LICENSE.txt 4 | // 5 | // Created by: Jon Reid, http://qualitycoding.org/ 6 | // Source: https://github.com/jonreid/OCMockito 7 | // 8 | 9 | #import 10 | 11 | @protocol HCMatcher; 12 | 13 | 14 | @interface MKTInvocationMatcher : NSObject 15 | 16 | @property (nonatomic, strong) NSInvocation *expected; 17 | @property (nonatomic) NSUInteger numberOfArguments; 18 | @property (nonatomic, strong) NSMutableArray *argumentMatchers; 19 | 20 | - (instancetype)init; 21 | - (void)setMatcher:(id )matcher atIndex:(NSUInteger)index; 22 | - (NSUInteger)argumentMatchersCount; 23 | - (void)setExpectedInvocation:(NSInvocation *)expectedInvocation; 24 | - (BOOL)matches:(NSInvocation *)actual; 25 | - (void)captureArgumentsFromInvocations:(NSArray *)invocations; 26 | 27 | @end 28 | -------------------------------------------------------------------------------- /Example/Pods/OCMockito/Source/OCMockito/MKTMockingProgress.h: -------------------------------------------------------------------------------- 1 | // 2 | // OCMockito - MKTMockingProgress.h 3 | // Copyright 2013 Jonathan M. Reid. See LICENSE.txt 4 | // 5 | // Created by: Jon Reid, http://qualitycoding.org/ 6 | // Source: https://github.com/jonreid/OCMockito 7 | // 8 | 9 | #import 10 | 11 | #import "MKTTestLocation.h" 12 | 13 | @class MKTInvocationMatcher; 14 | @class MKTOngoingStubbing; 15 | @protocol HCMatcher; 16 | @protocol MKTVerificationMode; 17 | 18 | 19 | @interface MKTMockingProgress : NSObject 20 | 21 | @property (nonatomic, assign) MKTTestLocation testLocation; 22 | 23 | + (instancetype)sharedProgress; 24 | 25 | - (void)stubbingStartedAtLocation:(MKTTestLocation)location; 26 | - (void)reportOngoingStubbing:(MKTOngoingStubbing *)ongoingStubbing; 27 | - (MKTOngoingStubbing *)pullOngoingStubbing; 28 | 29 | - (void)verificationStarted:(id )mode atLocation:(MKTTestLocation)location; 30 | - (id )pullVerificationMode; 31 | 32 | - (void)setMatcher:(id )matcher forArgument:(NSUInteger)index; 33 | - (MKTInvocationMatcher *)pullInvocationMatcher; 34 | 35 | @end 36 | -------------------------------------------------------------------------------- /Example/Pods/OCMockito/Source/OCMockito/MKTMockitoCore.h: -------------------------------------------------------------------------------- 1 | // 2 | // OCMockito - MKTMockitoCore.h 3 | // Copyright 2013 Jonathan M. Reid. See LICENSE.txt 4 | // 5 | // Created by: Jon Reid, http://qualitycoding.org/ 6 | // Source: https://github.com/jonreid/OCMockito 7 | // 8 | 9 | #import 10 | 11 | #import "MKTTestLocation.h" 12 | 13 | @class MKTObjectMock; 14 | @class MKTOngoingStubbing; 15 | @protocol MKTVerificationMode; 16 | 17 | 18 | @interface MKTMockitoCore : NSObject 19 | 20 | + (instancetype)sharedCore; 21 | 22 | - (MKTOngoingStubbing *)stubAtLocation:(MKTTestLocation)location; 23 | 24 | - (id)verifyMock:(MKTObjectMock *)mock 25 | withMode:(id )mode 26 | atLocation:(MKTTestLocation)location; 27 | 28 | @end 29 | -------------------------------------------------------------------------------- /Example/Pods/OCMockito/Source/OCMockito/MKTObjectAndProtocolMock.h: -------------------------------------------------------------------------------- 1 | // 2 | // OCMockito - MKTObjectAndProtocolMock.h 3 | // Copyright 2013 Jonathan M. Reid. See LICENSE.txt 4 | // 5 | // Created by: Kevin Lundberg 6 | // Source: https://github.com/jonreid/OCMockito 7 | // 8 | 9 | #import "MKTProtocolMock.h" 10 | 11 | 12 | /** 13 | Mock object of a given class that also implements a given protocol. 14 | */ 15 | @interface MKTObjectAndProtocolMock : MKTProtocolMock 16 | 17 | + (instancetype)mockForClass:(Class)aClass protocol:(Protocol *)protocol; 18 | - (instancetype)initWithClass:(Class)aClass protocol:(Protocol *)protocol; 19 | 20 | @end 21 | -------------------------------------------------------------------------------- /Example/Pods/OCMockito/Source/OCMockito/MKTObjectMock.h: -------------------------------------------------------------------------------- 1 | // 2 | // OCMockito - MKTObjectMock.h 3 | // Copyright 2013 Jonathan M. Reid. See LICENSE.txt 4 | // 5 | // Created by: Jon Reid, http://qualitycoding.org/ 6 | // Source: https://github.com/jonreid/OCMockito 7 | // 8 | 9 | #import "MKTBaseMockObject.h" 10 | 11 | 12 | /** 13 | Mock object of a given class. 14 | */ 15 | @interface MKTObjectMock : MKTBaseMockObject 16 | 17 | + (instancetype)mockForClass:(Class)aClass; 18 | - (instancetype)initWithClass:(Class)aClass; 19 | 20 | @end 21 | -------------------------------------------------------------------------------- /Example/Pods/OCMockito/Source/OCMockito/MKTObjectMock.m: -------------------------------------------------------------------------------- 1 | // 2 | // OCMockito - MKTObjectMock.m 3 | // Copyright 2013 Jonathan M. Reid. See LICENSE.txt 4 | // 5 | // Created by: Jon Reid, http://qualitycoding.org/ 6 | // Source: https://github.com/jonreid/OCMockito 7 | // 8 | 9 | #import "MKTObjectMock.h" 10 | 11 | 12 | @implementation MKTObjectMock 13 | { 14 | Class _mockedClass; 15 | } 16 | 17 | + (instancetype)mockForClass:(Class)aClass 18 | { 19 | return [[self alloc] initWithClass:aClass]; 20 | } 21 | 22 | - (instancetype)initWithClass:(Class)aClass 23 | { 24 | self = [super init]; 25 | if (self) 26 | _mockedClass = aClass; 27 | return self; 28 | } 29 | 30 | - (NSString *)description 31 | { 32 | return [@"mock object of " stringByAppendingString:NSStringFromClass(_mockedClass)]; 33 | } 34 | 35 | - (NSMethodSignature *)methodSignatureForSelector:(SEL)aSelector 36 | { 37 | return [_mockedClass instanceMethodSignatureForSelector:aSelector]; 38 | } 39 | 40 | 41 | #pragma mark NSObject protocol 42 | 43 | - (BOOL)isKindOfClass:(Class)aClass 44 | { 45 | return [_mockedClass isSubclassOfClass:aClass]; 46 | } 47 | 48 | - (BOOL)respondsToSelector:(SEL)aSelector 49 | { 50 | return [_mockedClass instancesRespondToSelector:aSelector]; 51 | } 52 | 53 | @end 54 | -------------------------------------------------------------------------------- /Example/Pods/OCMockito/Source/OCMockito/MKTProtocolMock.h: -------------------------------------------------------------------------------- 1 | // 2 | // OCMockito - MKTProtocolMock.h 3 | // Copyright 2013 Jonathan M. Reid. See LICENSE.txt 4 | // 5 | // Created by: Jon Reid, http://qualitycoding.org/ 6 | // Source: https://github.com/jonreid/OCMockito 7 | // 8 | 9 | #import "MKTBaseMockObject.h" 10 | 11 | 12 | /** 13 | Mock object implementing a given protocol. 14 | */ 15 | @interface MKTProtocolMock : MKTBaseMockObject 16 | { 17 | Protocol *_mockedProtocol; 18 | } 19 | 20 | + (instancetype)mockForProtocol:(Protocol *)aProtocol; 21 | - (instancetype)initWithProtocol:(Protocol *)aProtocol; 22 | 23 | @end 24 | -------------------------------------------------------------------------------- /Example/Pods/OCMockito/Source/OCMockito/MKTStubbedInvocationMatcher.h: -------------------------------------------------------------------------------- 1 | // 2 | // OCMockito - MKTStubbedInvocationMatcher.h 3 | // Copyright 2013 Jonathan M. Reid. See LICENSE.txt 4 | // 5 | // Created by: Jon Reid, http://qualitycoding.org/ 6 | // Source: https://github.com/jonreid/OCMockito 7 | // 8 | 9 | #import "MKTInvocationMatcher.h" 10 | 11 | 12 | @interface MKTStubbedInvocationMatcher : MKTInvocationMatcher 13 | 14 | @property (nonatomic, strong) id answer; 15 | 16 | @end 17 | -------------------------------------------------------------------------------- /Example/Pods/OCMockito/Source/OCMockito/MKTStubbedInvocationMatcher.m: -------------------------------------------------------------------------------- 1 | // 2 | // OCMockito - MKTStubbedInvocationMatcher.m 3 | // Copyright 2013 Jonathan M. Reid. See LICENSE.txt 4 | // 5 | // Created by: Jon Reid, http://qualitycoding.org/ 6 | // Source: https://github.com/jonreid/OCMockito 7 | // 8 | 9 | #import "MKTInvocationMatcher.h" 10 | 11 | #import "MKTCapturingMatcher.h" 12 | #import "MKTStubbedInvocationMatcher.h" 13 | 14 | 15 | @implementation MKTStubbedInvocationMatcher 16 | @end 17 | -------------------------------------------------------------------------------- /Example/Pods/OCMockito/Source/OCMockito/MKTTestLocation.h: -------------------------------------------------------------------------------- 1 | // 2 | // OCMockito - MKTTestLocation.h 3 | // Copyright 2013 Jonathan M. Reid. See LICENSE.txt 4 | // 5 | // Created by: Jon Reid, http://qualitycoding.org/ 6 | // Source: https://github.com/jonreid/OCMockito 7 | // 8 | 9 | #import 10 | 11 | 12 | typedef struct 13 | { 14 | __unsafe_unretained id testCase; 15 | const char *fileName; 16 | int lineNumber; 17 | } MKTTestLocation; 18 | 19 | 20 | static inline MKTTestLocation MKTTestLocationMake(id test, const char *file, int line) 21 | { 22 | MKTTestLocation location; 23 | location.testCase = test; 24 | location.fileName = file; 25 | location.lineNumber = line; 26 | return location; 27 | } 28 | 29 | void MKTFailTest(id testCase, const char *fileName, int lineNumber, NSString *description); 30 | void MKTFailTestLocation(MKTTestLocation testLocation, NSString *description); 31 | -------------------------------------------------------------------------------- /Example/Pods/OCMockito/Source/OCMockito/MKTTestLocation.m: -------------------------------------------------------------------------------- 1 | // 2 | // OCMockito - MKTTestLocation.m 3 | // Copyright 2013 Jonathan M. Reid. See LICENSE.txt 4 | // 5 | // Created by: Jon Reid, http://qualitycoding.org/ 6 | // Source: https://github.com/jonreid/OCMockito 7 | // 8 | 9 | #import "MKTTestLocation.h" 10 | 11 | #import 12 | #import 13 | #import 14 | 15 | void MKTFailTest(id testCase, const char *fileName, int lineNumber, NSString *description) 16 | { 17 | HCTestFailure *failure = [[HCTestFailure alloc] initWithTestCase:testCase 18 | fileName:[NSString stringWithUTF8String:fileName] 19 | lineNumber:(NSUInteger)lineNumber 20 | reason:description]; 21 | id chain = HC_testFailureHandlerChain(); 22 | [chain handleFailure:failure]; 23 | } 24 | 25 | void MKTFailTestLocation(MKTTestLocation testLocation, NSString *description) 26 | { 27 | MKTFailTest(testLocation.testCase, testLocation.fileName, testLocation.lineNumber, description); 28 | } 29 | -------------------------------------------------------------------------------- /Example/Pods/OCMockito/Source/OCMockito/MKTVerificationData.h: -------------------------------------------------------------------------------- 1 | // 2 | // OCMockito - MKTVerificationData.h 3 | // Copyright 2013 Jonathan M. Reid. See LICENSE.txt 4 | // 5 | // Created by: Jon Reid, http://qualitycoding.org/ 6 | // Source: https://github.com/jonreid/OCMockito 7 | // 8 | 9 | #import 10 | 11 | #import "MKTTestLocation.h" 12 | 13 | @class MKTInvocationContainer; 14 | @class MKTInvocationMatcher; 15 | 16 | 17 | @interface MKTVerificationData : NSObject 18 | 19 | @property (nonatomic, strong) MKTInvocationContainer *invocations; 20 | @property (nonatomic, strong) MKTInvocationMatcher *wanted; 21 | @property (nonatomic, assign) MKTTestLocation testLocation; 22 | 23 | - (NSUInteger)numberOfMatchingInvocations; 24 | - (void)captureArguments; 25 | 26 | @end 27 | -------------------------------------------------------------------------------- /Example/Pods/OCMockito/Source/OCMockito/MKTVerificationData.m: -------------------------------------------------------------------------------- 1 | // 2 | // OCMockito - MKTVerificationData.m 3 | // Copyright 2013 Jonathan M. Reid. See LICENSE.txt 4 | // 5 | // Created by: Jon Reid, http://qualitycoding.org/ 6 | // Source: https://github.com/jonreid/OCMockito 7 | // 8 | 9 | #import "MKTVerificationData.h" 10 | 11 | #import "MKTInvocationContainer.h" 12 | #import "MKTInvocationMatcher.h" 13 | 14 | 15 | @implementation MKTVerificationData 16 | 17 | - (NSUInteger)numberOfMatchingInvocations 18 | { 19 | NSUInteger count = 0; 20 | for (NSInvocation *invocation in self.invocations.registeredInvocations) 21 | { 22 | if ([self.wanted matches:invocation]) 23 | ++count; 24 | } 25 | return count; 26 | } 27 | 28 | - (void)captureArguments 29 | { 30 | [self.wanted captureArgumentsFromInvocations:self.invocations.registeredInvocations]; 31 | } 32 | 33 | @end 34 | -------------------------------------------------------------------------------- /Example/Pods/OCMockito/Source/OCMockito/MKTVerificationMode.h: -------------------------------------------------------------------------------- 1 | // 2 | // OCMockito - MKTVerificationMode.h 3 | // Copyright 2013 Jonathan M. Reid. See LICENSE.txt 4 | // 5 | // Created by: Jon Reid, http://qualitycoding.org/ 6 | // Source: https://github.com/jonreid/OCMockito 7 | // 8 | 9 | #import 10 | 11 | @class MKTVerificationData; 12 | 13 | 14 | @protocol MKTVerificationMode 15 | 16 | - (void)verifyData:(MKTVerificationData *)data; 17 | 18 | @end 19 | -------------------------------------------------------------------------------- /Example/Pods/OCMockito/Source/OCMockito/NSInvocation+TKAdditions.h: -------------------------------------------------------------------------------- 1 | // 2 | // NSInvocation+TKAdditions.h 3 | // 4 | // Created by Taras Kalapun 5 | // 6 | 7 | #import 8 | 9 | 10 | NSArray *TKArrayArgumentsForInvocation(NSInvocation *invocation); 11 | void MKTSetReturnValueForInvocation(NSInvocation *invocation, id returnValue); 12 | -------------------------------------------------------------------------------- /Example/Pods/Pods-ASCScreenBrightnessDetector-Private.xcconfig: -------------------------------------------------------------------------------- 1 | #include "Pods-ASCScreenBrightnessDetector.xcconfig" 2 | GCC_PREPROCESSOR_DEFINITIONS = COCOAPODS=1 3 | HEADER_SEARCH_PATHS = "${PODS_ROOT}/BuildHeaders" "${PODS_ROOT}/BuildHeaders/ASCScreenBrightnessDetector" "${PODS_ROOT}/Headers" "${PODS_ROOT}/Headers/ASCScreenBrightnessDetector" "${PODS_ROOT}/Headers/Expecta" "${PODS_ROOT}/Headers/OCHamcrest" "${PODS_ROOT}/Headers/OCMockito" "${PODS_ROOT}/Headers/Specta" 4 | OTHER_LDFLAGS = -ObjC 5 | PODS_ROOT = ${SRCROOT} -------------------------------------------------------------------------------- /Example/Pods/Pods-ASCScreenBrightnessDetector-dummy.m: -------------------------------------------------------------------------------- 1 | #import 2 | @interface PodsDummy_Pods_ASCScreenBrightnessDetector : NSObject 3 | @end 4 | @implementation PodsDummy_Pods_ASCScreenBrightnessDetector 5 | @end 6 | -------------------------------------------------------------------------------- /Example/Pods/Pods-ASCScreenBrightnessDetector-prefix.pch: -------------------------------------------------------------------------------- 1 | #ifdef __OBJC__ 2 | #import 3 | #endif 4 | 5 | #import "Pods-environment.h" 6 | -------------------------------------------------------------------------------- /Example/Pods/Pods-ASCScreenBrightnessDetector.xcconfig: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/schneiderandre/ASCScreenBrightnessDetector/da86afac0f1dba05884e1509d7558134a10b728c/Example/Pods/Pods-ASCScreenBrightnessDetector.xcconfig -------------------------------------------------------------------------------- /Example/Pods/Pods-ASCScreenBrightnessDetectorExampleTests-ASCScreenBrightnessDetector-Private.xcconfig: -------------------------------------------------------------------------------- 1 | #include "Pods-ASCScreenBrightnessDetectorExampleTests-ASCScreenBrightnessDetector.xcconfig" 2 | GCC_PREPROCESSOR_DEFINITIONS = COCOAPODS=1 3 | HEADER_SEARCH_PATHS = "${PODS_ROOT}/BuildHeaders" "${PODS_ROOT}/BuildHeaders/ASCScreenBrightnessDetector" "${PODS_ROOT}/Headers" "${PODS_ROOT}/Headers/ASCScreenBrightnessDetector" "${PODS_ROOT}/Headers/Expecta" "${PODS_ROOT}/Headers/OCHamcrest" "${PODS_ROOT}/Headers/OCMockito" "${PODS_ROOT}/Headers/Specta" 4 | OTHER_LDFLAGS = -ObjC 5 | PODS_ROOT = ${SRCROOT} -------------------------------------------------------------------------------- /Example/Pods/Pods-ASCScreenBrightnessDetectorExampleTests-ASCScreenBrightnessDetector-dummy.m: -------------------------------------------------------------------------------- 1 | #import 2 | @interface PodsDummy_Pods_ASCScreenBrightnessDetectorExampleTests_ASCScreenBrightnessDetector : NSObject 3 | @end 4 | @implementation PodsDummy_Pods_ASCScreenBrightnessDetectorExampleTests_ASCScreenBrightnessDetector 5 | @end 6 | -------------------------------------------------------------------------------- /Example/Pods/Pods-ASCScreenBrightnessDetectorExampleTests-ASCScreenBrightnessDetector-prefix.pch: -------------------------------------------------------------------------------- 1 | #ifdef __OBJC__ 2 | #import 3 | #endif 4 | 5 | #import "Pods-ASCScreenBrightnessDetectorExampleTests-environment.h" 6 | -------------------------------------------------------------------------------- /Example/Pods/Pods-ASCScreenBrightnessDetectorExampleTests-ASCScreenBrightnessDetector.xcconfig: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/schneiderandre/ASCScreenBrightnessDetector/da86afac0f1dba05884e1509d7558134a10b728c/Example/Pods/Pods-ASCScreenBrightnessDetectorExampleTests-ASCScreenBrightnessDetector.xcconfig -------------------------------------------------------------------------------- /Example/Pods/Pods-ASCScreenBrightnessDetectorExampleTests-Expecta-Private.xcconfig: -------------------------------------------------------------------------------- 1 | #include "Pods-ASCScreenBrightnessDetectorExampleTests-Expecta.xcconfig" 2 | GCC_PREPROCESSOR_DEFINITIONS = COCOAPODS=1 3 | HEADER_SEARCH_PATHS = "${PODS_ROOT}/BuildHeaders" "${PODS_ROOT}/BuildHeaders/Expecta" "${PODS_ROOT}/Headers" "${PODS_ROOT}/Headers/ASCScreenBrightnessDetector" "${PODS_ROOT}/Headers/Expecta" "${PODS_ROOT}/Headers/OCHamcrest" "${PODS_ROOT}/Headers/OCMockito" "${PODS_ROOT}/Headers/Specta" 4 | OTHER_LDFLAGS = -ObjC ${PODS_ASCSCREENBRIGHTNESSDETECTOREXAMPLETESTS_EXPECTA_OTHER_LDFLAGS} 5 | PODS_ROOT = ${SRCROOT} -------------------------------------------------------------------------------- /Example/Pods/Pods-ASCScreenBrightnessDetectorExampleTests-Expecta-dummy.m: -------------------------------------------------------------------------------- 1 | #import 2 | @interface PodsDummy_Pods_ASCScreenBrightnessDetectorExampleTests_Expecta : NSObject 3 | @end 4 | @implementation PodsDummy_Pods_ASCScreenBrightnessDetectorExampleTests_Expecta 5 | @end 6 | -------------------------------------------------------------------------------- /Example/Pods/Pods-ASCScreenBrightnessDetectorExampleTests-Expecta-prefix.pch: -------------------------------------------------------------------------------- 1 | #ifdef __OBJC__ 2 | #import 3 | #endif 4 | 5 | #import "Pods-ASCScreenBrightnessDetectorExampleTests-environment.h" 6 | -------------------------------------------------------------------------------- /Example/Pods/Pods-ASCScreenBrightnessDetectorExampleTests-Expecta.xcconfig: -------------------------------------------------------------------------------- 1 | PODS_ASCSCREENBRIGHTNESSDETECTOREXAMPLETESTS_EXPECTA_OTHER_LDFLAGS = -framework Foundation -------------------------------------------------------------------------------- /Example/Pods/Pods-ASCScreenBrightnessDetectorExampleTests-OCHamcrest-Private.xcconfig: -------------------------------------------------------------------------------- 1 | #include "Pods-ASCScreenBrightnessDetectorExampleTests-OCHamcrest.xcconfig" 2 | GCC_PREPROCESSOR_DEFINITIONS = COCOAPODS=1 3 | HEADER_SEARCH_PATHS = "${PODS_ROOT}/BuildHeaders" "${PODS_ROOT}/BuildHeaders/OCHamcrest" "${PODS_ROOT}/Headers" "${PODS_ROOT}/Headers/ASCScreenBrightnessDetector" "${PODS_ROOT}/Headers/Expecta" "${PODS_ROOT}/Headers/OCHamcrest" "${PODS_ROOT}/Headers/OCMockito" "${PODS_ROOT}/Headers/Specta" 4 | OTHER_LDFLAGS = -ObjC 5 | PODS_ROOT = ${SRCROOT} -------------------------------------------------------------------------------- /Example/Pods/Pods-ASCScreenBrightnessDetectorExampleTests-OCHamcrest-dummy.m: -------------------------------------------------------------------------------- 1 | #import 2 | @interface PodsDummy_Pods_ASCScreenBrightnessDetectorExampleTests_OCHamcrest : NSObject 3 | @end 4 | @implementation PodsDummy_Pods_ASCScreenBrightnessDetectorExampleTests_OCHamcrest 5 | @end 6 | -------------------------------------------------------------------------------- /Example/Pods/Pods-ASCScreenBrightnessDetectorExampleTests-OCHamcrest-prefix.pch: -------------------------------------------------------------------------------- 1 | #ifdef __OBJC__ 2 | #import 3 | #endif 4 | 5 | #import "Pods-ASCScreenBrightnessDetectorExampleTests-environment.h" 6 | -------------------------------------------------------------------------------- /Example/Pods/Pods-ASCScreenBrightnessDetectorExampleTests-OCHamcrest.xcconfig: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/schneiderandre/ASCScreenBrightnessDetector/da86afac0f1dba05884e1509d7558134a10b728c/Example/Pods/Pods-ASCScreenBrightnessDetectorExampleTests-OCHamcrest.xcconfig -------------------------------------------------------------------------------- /Example/Pods/Pods-ASCScreenBrightnessDetectorExampleTests-OCMockito-Private.xcconfig: -------------------------------------------------------------------------------- 1 | #include "Pods-ASCScreenBrightnessDetectorExampleTests-OCMockito.xcconfig" 2 | GCC_PREPROCESSOR_DEFINITIONS = COCOAPODS=1 3 | HEADER_SEARCH_PATHS = "${PODS_ROOT}/BuildHeaders" "${PODS_ROOT}/BuildHeaders/OCMockito" "${PODS_ROOT}/Headers" "${PODS_ROOT}/Headers/ASCScreenBrightnessDetector" "${PODS_ROOT}/Headers/Expecta" "${PODS_ROOT}/Headers/OCHamcrest" "${PODS_ROOT}/Headers/OCMockito" "${PODS_ROOT}/Headers/Specta" 4 | OTHER_LDFLAGS = -ObjC 5 | PODS_ROOT = ${SRCROOT} -------------------------------------------------------------------------------- /Example/Pods/Pods-ASCScreenBrightnessDetectorExampleTests-OCMockito-dummy.m: -------------------------------------------------------------------------------- 1 | #import 2 | @interface PodsDummy_Pods_ASCScreenBrightnessDetectorExampleTests_OCMockito : NSObject 3 | @end 4 | @implementation PodsDummy_Pods_ASCScreenBrightnessDetectorExampleTests_OCMockito 5 | @end 6 | -------------------------------------------------------------------------------- /Example/Pods/Pods-ASCScreenBrightnessDetectorExampleTests-OCMockito-prefix.pch: -------------------------------------------------------------------------------- 1 | #ifdef __OBJC__ 2 | #import 3 | #endif 4 | 5 | #import "Pods-ASCScreenBrightnessDetectorExampleTests-environment.h" 6 | -------------------------------------------------------------------------------- /Example/Pods/Pods-ASCScreenBrightnessDetectorExampleTests-OCMockito.xcconfig: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/schneiderandre/ASCScreenBrightnessDetector/da86afac0f1dba05884e1509d7558134a10b728c/Example/Pods/Pods-ASCScreenBrightnessDetectorExampleTests-OCMockito.xcconfig -------------------------------------------------------------------------------- /Example/Pods/Pods-ASCScreenBrightnessDetectorExampleTests-Specta-Private.xcconfig: -------------------------------------------------------------------------------- 1 | #include "Pods-ASCScreenBrightnessDetectorExampleTests-Specta.xcconfig" 2 | FRAMEWORK_SEARCH_PATHS = ${PODS_ASCSCREENBRIGHTNESSDETECTOREXAMPLETESTS_SPECTA_FRAMEWORK_SEARCH_PATHS} 3 | GCC_PREPROCESSOR_DEFINITIONS = COCOAPODS=1 4 | HEADER_SEARCH_PATHS = "${PODS_ROOT}/BuildHeaders" "${PODS_ROOT}/BuildHeaders/Specta" "${PODS_ROOT}/Headers" "${PODS_ROOT}/Headers/ASCScreenBrightnessDetector" "${PODS_ROOT}/Headers/Expecta" "${PODS_ROOT}/Headers/OCHamcrest" "${PODS_ROOT}/Headers/OCMockito" "${PODS_ROOT}/Headers/Specta" 5 | OTHER_LDFLAGS = -ObjC ${PODS_ASCSCREENBRIGHTNESSDETECTOREXAMPLETESTS_SPECTA_OTHER_LDFLAGS} 6 | PODS_ROOT = ${SRCROOT} -------------------------------------------------------------------------------- /Example/Pods/Pods-ASCScreenBrightnessDetectorExampleTests-Specta-dummy.m: -------------------------------------------------------------------------------- 1 | #import 2 | @interface PodsDummy_Pods_ASCScreenBrightnessDetectorExampleTests_Specta : NSObject 3 | @end 4 | @implementation PodsDummy_Pods_ASCScreenBrightnessDetectorExampleTests_Specta 5 | @end 6 | -------------------------------------------------------------------------------- /Example/Pods/Pods-ASCScreenBrightnessDetectorExampleTests-Specta-prefix.pch: -------------------------------------------------------------------------------- 1 | #ifdef __OBJC__ 2 | #import 3 | #endif 4 | 5 | #import "Pods-ASCScreenBrightnessDetectorExampleTests-environment.h" 6 | -------------------------------------------------------------------------------- /Example/Pods/Pods-ASCScreenBrightnessDetectorExampleTests-Specta.xcconfig: -------------------------------------------------------------------------------- 1 | PODS_ASCSCREENBRIGHTNESSDETECTOREXAMPLETESTS_SPECTA_FRAMEWORK_SEARCH_PATHS = $(inherited) "$(SDKROOT)/Developer/Library/Frameworks" "$(DEVELOPER_LIBRARY_DIR)/Frameworks" 2 | PODS_ASCSCREENBRIGHTNESSDETECTOREXAMPLETESTS_SPECTA_OTHER_LDFLAGS = -framework Foundation -framework XCTest -------------------------------------------------------------------------------- /Example/Pods/Pods-ASCScreenBrightnessDetectorExampleTests-dummy.m: -------------------------------------------------------------------------------- 1 | #import 2 | @interface PodsDummy_Pods_ASCScreenBrightnessDetectorExampleTests : NSObject 3 | @end 4 | @implementation PodsDummy_Pods_ASCScreenBrightnessDetectorExampleTests 5 | @end 6 | -------------------------------------------------------------------------------- /Example/Pods/Pods-ASCScreenBrightnessDetectorExampleTests.xcconfig: -------------------------------------------------------------------------------- 1 | FRAMEWORK_SEARCH_PATHS = $(inherited) "$(SDKROOT)/Developer/Library/Frameworks" "$(DEVELOPER_LIBRARY_DIR)/Frameworks" 2 | GCC_PREPROCESSOR_DEFINITIONS = $(inherited) COCOAPODS=1 3 | HEADER_SEARCH_PATHS = "${PODS_ROOT}/Headers" "${PODS_ROOT}/Headers/ASCScreenBrightnessDetector" "${PODS_ROOT}/Headers/Expecta" "${PODS_ROOT}/Headers/OCHamcrest" "${PODS_ROOT}/Headers/OCMockito" "${PODS_ROOT}/Headers/Specta" 4 | OTHER_CFLAGS = $(inherited) "-isystem${PODS_ROOT}/Headers" "-isystem${PODS_ROOT}/Headers/ASCScreenBrightnessDetector" "-isystem${PODS_ROOT}/Headers/Expecta" "-isystem${PODS_ROOT}/Headers/OCHamcrest" "-isystem${PODS_ROOT}/Headers/OCMockito" "-isystem${PODS_ROOT}/Headers/Specta" 5 | OTHER_LDFLAGS = -ObjC -framework Foundation -framework XCTest 6 | PODS_ROOT = ${SRCROOT}/Pods -------------------------------------------------------------------------------- /Example/Pods/Pods-acknowledgements.markdown: -------------------------------------------------------------------------------- 1 | # Acknowledgements 2 | This application makes use of the following third party libraries: 3 | 4 | ## ASCScreenBrightnessDetector 5 | 6 | Copyright (c) 2014 André Schneider 7 | 8 | Permission is hereby granted, free of charge, to any person obtaining a copy 9 | of this software and associated documentation files (the "Software"), to deal 10 | in the Software without restriction, including without limitation the rights 11 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 12 | copies of the Software, and to permit persons to whom the Software is 13 | furnished to do so, subject to the following conditions: 14 | 15 | The above copyright notice and this permission notice shall be included in 16 | all copies or substantial portions of the Software. 17 | 18 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 19 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 20 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 21 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 22 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 23 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 24 | THE SOFTWARE. 25 | 26 | Generated by CocoaPods - http://cocoapods.org 27 | -------------------------------------------------------------------------------- /Example/Pods/Pods-dummy.m: -------------------------------------------------------------------------------- 1 | #import 2 | @interface PodsDummy_Pods : NSObject 3 | @end 4 | @implementation PodsDummy_Pods 5 | @end 6 | -------------------------------------------------------------------------------- /Example/Pods/Pods-environment.h: -------------------------------------------------------------------------------- 1 | 2 | // To check if a library is compiled with CocoaPods you 3 | // can use the `COCOAPODS` macro definition which is 4 | // defined in the xcconfigs so it is available in 5 | // headers also when they are imported in the client 6 | // project. 7 | 8 | 9 | // ASCScreenBrightnessDetector 10 | #define COCOAPODS_POD_AVAILABLE_ASCScreenBrightnessDetector 11 | #define COCOAPODS_VERSION_MAJOR_ASCScreenBrightnessDetector 1 12 | #define COCOAPODS_VERSION_MINOR_ASCScreenBrightnessDetector 0 13 | #define COCOAPODS_VERSION_PATCH_ASCScreenBrightnessDetector 0 14 | 15 | -------------------------------------------------------------------------------- /Example/Pods/Pods.xcconfig: -------------------------------------------------------------------------------- 1 | GCC_PREPROCESSOR_DEFINITIONS = $(inherited) COCOAPODS=1 2 | HEADER_SEARCH_PATHS = "${PODS_ROOT}/Headers" "${PODS_ROOT}/Headers/ASCScreenBrightnessDetector" "${PODS_ROOT}/Headers/Expecta" "${PODS_ROOT}/Headers/OCHamcrest" "${PODS_ROOT}/Headers/OCMockito" "${PODS_ROOT}/Headers/Specta" 3 | OTHER_CFLAGS = $(inherited) "-isystem${PODS_ROOT}/Headers" "-isystem${PODS_ROOT}/Headers/ASCScreenBrightnessDetector" "-isystem${PODS_ROOT}/Headers/Expecta" "-isystem${PODS_ROOT}/Headers/OCHamcrest" "-isystem${PODS_ROOT}/Headers/OCMockito" "-isystem${PODS_ROOT}/Headers/Specta" 4 | OTHER_LDFLAGS = -ObjC 5 | PODS_ROOT = ${SRCROOT}/Pods -------------------------------------------------------------------------------- /Example/Pods/Specta/LICENSE: -------------------------------------------------------------------------------- 1 | Copyright (c) 2012-2013 Specta Team. 2 | 3 | Permission is hereby granted, free of charge, to any person obtaining a copy 4 | of this software and associated documentation files (the "Software"), to deal 5 | in the Software without restriction, including without limitation the rights 6 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 7 | copies of the Software, and to permit persons to whom the Software is 8 | furnished to do so, subject to the following conditions: 9 | 10 | The above copyright notice and this permission notice shall be included in 11 | all copies or substantial portions of the Software. 12 | 13 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 14 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 15 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 16 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 17 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 18 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 19 | THE SOFTWARE. 20 | 21 | -------------------------------------------------------------------------------- /Example/Pods/Specta/src/SPTExample.h: -------------------------------------------------------------------------------- 1 | #import 2 | #import "SpectaTypes.h" 3 | 4 | @interface SPTExample : NSObject 5 | 6 | @property (nonatomic, copy) NSString *name; 7 | @property (nonatomic, copy) id block; 8 | @property (nonatomic) BOOL pending; 9 | @property (nonatomic, getter = isFocused) BOOL focused; 10 | 11 | - (id)initWithName:(NSString *)name block:(id)block; 12 | 13 | @end 14 | 15 | -------------------------------------------------------------------------------- /Example/Pods/Specta/src/SPTExample.m: -------------------------------------------------------------------------------- 1 | #import "SPTExample.h" 2 | 3 | @implementation SPTExample 4 | 5 | - (id)initWithName:(NSString *)name block:(id)block { 6 | self = [super init]; 7 | if (self) { 8 | self.name = name; 9 | self.block = block; 10 | self.pending = block == nil; 11 | } 12 | return self; 13 | } 14 | 15 | @end 16 | 17 | -------------------------------------------------------------------------------- /Example/Pods/Specta/src/SPTNestedReporter.h: -------------------------------------------------------------------------------- 1 | #import "SPTReporter.h" 2 | 3 | @interface SPTNestedReporter : SPTReporter 4 | 5 | @end 6 | -------------------------------------------------------------------------------- /Example/Pods/Specta/src/SPTReporter.h: -------------------------------------------------------------------------------- 1 | #import 2 | 3 | @interface SPTReporter : XCTestLog 4 | 5 | /* 6 | * Returns a singleton reporter used to generate Specta's test output. 7 | * The type of reporter can be customized by subclassing and setting the 8 | * SPECTA_REPORTER_CLASS environment variable. 9 | * 10 | * Subclasses may override methods from XCTestObserver to change test output. 11 | * Initialization shuld be performed in the -startObserving / -stopObserving methods, 12 | * and MUST invoke the super class implementation. 13 | */ 14 | + (instancetype)sharedReporter; 15 | 16 | #pragma mark - Run Stack 17 | 18 | @property (nonatomic, strong, readonly) NSArray *runStack; 19 | @property (nonatomic, assign, readonly) NSUInteger runStackCount; 20 | 21 | @property (nonatomic, assign, readonly) NSInteger numberOfTestCases; 22 | @property (nonatomic, assign, readonly) NSInteger numberOfCompletedTestCases; 23 | 24 | #pragma mark - Printing 25 | 26 | - (void)printString:(NSString *)string; 27 | - (void)printStringWithFormat:(NSString *)formatString, ... NS_FORMAT_FUNCTION(1,2); 28 | 29 | - (void)printLine; 30 | - (void)printLine:(NSString *)line; 31 | - (void)printLineWithFormat:(NSString *)formatString, ... NS_FORMAT_FUNCTION(1,2); 32 | 33 | @end 34 | -------------------------------------------------------------------------------- /Example/Pods/Specta/src/SPTSharedExampleGroups.h: -------------------------------------------------------------------------------- 1 | #import 2 | #import "SpectaTypes.h" 3 | 4 | @class 5 | SPTExampleGroup 6 | ; 7 | 8 | @interface SPTSharedExampleGroups : NSObject 9 | 10 | + (void)addSharedExampleGroupWithName:(NSString *)name block:(SPTDictionaryBlock)block exampleGroup:(SPTExampleGroup *)exampleGroup; 11 | + (SPTDictionaryBlock)sharedExampleGroupWithName:(NSString *)name exampleGroup:(SPTExampleGroup *)exampleGroup; 12 | + (void)defineSharedExampleGroups; 13 | 14 | + (void)recordFailureWithDescription:(NSString *)description inFile:(NSString *)filename atLine:(NSUInteger)lineNumber expected:(BOOL)expected; 15 | 16 | @end 17 | 18 | -------------------------------------------------------------------------------- /Example/Pods/Specta/src/SPTSpec.h: -------------------------------------------------------------------------------- 1 | #import 2 | 3 | @class 4 | SPTExample 5 | , SPTExampleGroup 6 | ; 7 | 8 | @interface SPTSpec : NSObject 9 | 10 | @property (nonatomic, strong) SPTExampleGroup *rootGroup; 11 | @property (nonatomic, strong) NSMutableArray *groupStack; 12 | @property (nonatomic, strong) NSArray *compiledExamples; 13 | @property (nonatomic, strong) NSString *fileName; 14 | @property (nonatomic) NSUInteger lineNumber; 15 | @property (nonatomic, getter = isDisabled) BOOL disabled; 16 | @property (nonatomic) BOOL hasFocusedExamples; 17 | 18 | - (SPTExampleGroup *)currentGroup; 19 | - (void)compile; 20 | 21 | @end 22 | -------------------------------------------------------------------------------- /Example/Pods/Specta/src/SPTSpec.m: -------------------------------------------------------------------------------- 1 | #import "SPTSpec.h" 2 | #import "SPTExampleGroup.h" 3 | #import "SPTExample.h" 4 | 5 | @implementation SPTSpec 6 | 7 | - (id)init { 8 | self = [super init]; 9 | if (self) { 10 | self.rootGroup = [[SPTExampleGroup alloc] init]; 11 | self.rootGroup.root = self.rootGroup; 12 | self.groupStack = [NSMutableArray arrayWithObject:self.rootGroup]; 13 | } 14 | return self; 15 | } 16 | 17 | - (SPTExampleGroup *)currentGroup { 18 | return [self.groupStack lastObject]; 19 | } 20 | 21 | - (void)compile { 22 | self.compiledExamples = [self.rootGroup compileExamplesWithNameStack:@[]]; 23 | for (SPTExample *example in self.compiledExamples) { 24 | if (example.focused) { 25 | self.hasFocusedExamples = YES; 26 | break; 27 | } 28 | } 29 | } 30 | 31 | @end 32 | -------------------------------------------------------------------------------- /Example/Pods/Specta/src/SPTXCTestCase.h: -------------------------------------------------------------------------------- 1 | #import 2 | #import "XCTestCase+Specta.h" 3 | 4 | @class 5 | SPTSpec 6 | , SPTExample 7 | ; 8 | 9 | @interface SPTXCTestCase : XCTestCase 10 | 11 | @property (nonatomic, strong) NSInvocation *spt_invocation; 12 | @property (nonatomic, strong) XCTestCaseRun *spt_run; 13 | @property (nonatomic, assign) BOOL spt_skipped; 14 | @property (nonatomic, assign, readonly, getter = spt_isPending) BOOL spt_pending; 15 | 16 | + (BOOL)spt_isDisabled; 17 | + (void)spt_setDisabled:(BOOL)disabled; 18 | + (BOOL)spt_focusedExamplesExist; 19 | 20 | + (SPTSpec *)spt_spec; 21 | - (void)spt_setCurrentSpecWithFileName:(const char *)fileName lineNumber:(NSUInteger)lineNumber; 22 | - (void)spt_defineSpec; 23 | - (void)spt_unsetCurrentSpec; 24 | - (void)spt_runExampleAtIndex:(NSUInteger)index; 25 | - (SPTExample *)spt_getCurrentExample; 26 | 27 | @end 28 | -------------------------------------------------------------------------------- /Example/Pods/Specta/src/SPTXCTestReporter.h: -------------------------------------------------------------------------------- 1 | #import "SPTReporter.h" 2 | 3 | /** 4 | * Reporter that produces output identical to XCode's default output. Useful when integrating with 3rd-party tools that 5 | * may not like SPTNestedReporter's indented output. 6 | */ 7 | @interface SPTXCTestReporter : SPTReporter 8 | 9 | @end 10 | -------------------------------------------------------------------------------- /Example/Pods/Specta/src/SPTXCTestReporter.m: -------------------------------------------------------------------------------- 1 | #import "SPTXCTestReporter.h" 2 | 3 | @implementation SPTXCTestReporter 4 | 5 | /* 6 | * Intentionally left blank. 7 | * This class is included for future-compatibility just in case we need to 8 | * weak reporter output for users who want test output idential to XCTestLog. 9 | */ 10 | 11 | @end 12 | -------------------------------------------------------------------------------- /Example/Pods/Specta/src/SpectaTypes.h: -------------------------------------------------------------------------------- 1 | typedef void (^SPTVoidBlock)(); 2 | typedef void (^SPTAsyncBlock)(void (^)()); 3 | typedef void (^SPTDictionaryBlock)(NSDictionary *dictionary); 4 | -------------------------------------------------------------------------------- /Example/Pods/Specta/src/SpectaUtility.h: -------------------------------------------------------------------------------- 1 | #import 2 | extern NSString * const SPTCurrentSpecKey; 3 | extern NSString * const SPTCurrentTestCaseKey; 4 | 5 | #define SPTCurrentSpec [[NSThread currentThread] threadDictionary][SPTCurrentSpecKey] 6 | #define SPTCurrentTestCase [[NSThread currentThread] threadDictionary][SPTCurrentTestCaseKey] 7 | #define SPTCurrentGroup [SPTCurrentSpec currentGroup] 8 | #define SPTGroupStack [SPTCurrentSpec groupStack] 9 | 10 | #define SPTReturnUnlessBlockOrNil(block) if ((block) && !SPTIsBlock((block))) return; 11 | #define SPTIsBlock(obj) [(obj) isKindOfClass:NSClassFromString(@"NSBlock")] 12 | 13 | const char *SPTGetBlockSignature(id blockObject); 14 | BOOL SPTIsSpecClass(Class aClass); -------------------------------------------------------------------------------- /Example/Pods/Specta/src/XCTestCase+Specta.h: -------------------------------------------------------------------------------- 1 | #import 2 | 3 | @interface XCTestCase (Specta) 4 | @end -------------------------------------------------------------------------------- /Example/Pods/Specta/src/XCTestCase+Specta.m: -------------------------------------------------------------------------------- 1 | #import "XCTestCase+Specta.h" 2 | #import "SPTXCTestCase.h" 3 | #import "SPTExample.h" 4 | #import 5 | 6 | @interface XCTestCase (xct_allSubclasses) 7 | 8 | - (NSArray *)xct_allSubclasses; 9 | 10 | @end 11 | 12 | @implementation XCTestCase (Specta) 13 | 14 | + (void)load { 15 | Method xct_allSubclasses = class_getClassMethod(self, @selector(xct_allSubclasses)); 16 | Method xct_allSubclasses_swizzle = class_getClassMethod(self, @selector(xct_allSubclasses_swizzle)); 17 | method_exchangeImplementations(xct_allSubclasses, xct_allSubclasses_swizzle); 18 | } 19 | 20 | + (NSArray *)xct_allSubclasses_swizzle { 21 | NSMutableArray *subclasses = [[self xct_allSubclasses_swizzle] mutableCopy]; // call original 22 | [subclasses removeObject:[SPTXCTestCase class]]; 23 | return subclasses; 24 | } 25 | 26 | @end -------------------------------------------------------------------------------- /Example/Pods/Specta/src/XCTestLog+Specta.h: -------------------------------------------------------------------------------- 1 | #import 2 | 3 | @interface XCTestLog (Specta) 4 | 5 | - (void)spt_pauseObservationInBlock:(void (^)(void))block; 6 | 7 | @end 8 | -------------------------------------------------------------------------------- /Example/Pods/Specta/src/XCTestRun+Specta.h: -------------------------------------------------------------------------------- 1 | #import 2 | 3 | @interface XCTestRun (Specta) 4 | 5 | - (NSUInteger)spt_pendingTestCaseCount; 6 | - (NSUInteger)spt_skippedTestCaseCount; 7 | 8 | @end 9 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | Copyright (c) 2014 André Schneider 2 | 3 | Permission is hereby granted, free of charge, to any person obtaining a copy 4 | of this software and associated documentation files (the "Software"), to deal 5 | in the Software without restriction, including without limitation the rights 6 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 7 | copies of the Software, and to permit persons to whom the Software is 8 | furnished to do so, subject to the following conditions: 9 | 10 | The above copyright notice and this permission notice shall be included in 11 | all copies or substantial portions of the Software. 12 | 13 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 14 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 15 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 16 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 17 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 18 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 19 | THE SOFTWARE. 20 | --------------------------------------------------------------------------------