forked from appsquickly/typhoon
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Jasper Blues
authored and
Jasper Blues
committed
Dec 30, 2012
1 parent
a0590a9
commit 0b4d08d
Showing
128 changed files
with
8,465 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
Versions/Current/Headers |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
Versions/Current/OCHamcrest |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
Versions/Current/Resources |
45 changes: 45 additions & 0 deletions
45
External/OCHamcrest.framework/Versions/A/Headers/HCAllOf.h
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
// | ||
// OCHamcrest - HCAllOf.h | ||
// Copyright 2012 hamcrest.org. See LICENSE.txt | ||
// | ||
// Created by: Jon Reid, http://qualitycoding.org/ | ||
// Docs: http://hamcrest.github.com/OCHamcrest/ | ||
// Source: https://github.com/hamcrest/OCHamcrest | ||
// | ||
|
||
#import <OCHamcrest/HCBaseMatcher.h> | ||
|
||
|
||
@interface HCAllOf : HCBaseMatcher | ||
{ | ||
NSArray *matchers; | ||
} | ||
|
||
+ (id)allOf:(NSArray *)theMatchers; | ||
- (id)initWithMatchers:(NSArray *)theMatchers; | ||
|
||
@end | ||
|
||
|
||
OBJC_EXPORT id<HCMatcher> HC_allOf(id match, ...) NS_REQUIRES_NIL_TERMINATION; | ||
|
||
/** | ||
allOf(firstMatcher, ...) - | ||
Matches if all of the given matchers evaluate to @c YES. | ||
@param firstMatcher,... A comma-separated list of matchers ending with @c nil. | ||
The matchers are evaluated from left to right using short-circuit evaluation, so evaluation | ||
stops as soon as a matcher returns @c NO. | ||
Any argument that is not a matcher is implicitly wrapped in an @ref equalTo matcher to check for | ||
equality. | ||
(In the event of a name clash, don't \#define @c HC_SHORTHAND and use the synonym | ||
@c HC_allOf instead.) | ||
@ingroup logical_matchers | ||
*/ | ||
#ifdef HC_SHORTHAND | ||
#define allOf HC_allOf | ||
#endif |
45 changes: 45 additions & 0 deletions
45
External/OCHamcrest.framework/Versions/A/Headers/HCAnyOf.h
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
// | ||
// OCHamcrest - HCAnyOf.h | ||
// Copyright 2012 hamcrest.org. See LICENSE.txt | ||
// | ||
// Created by: Jon Reid, http://qualitycoding.org/ | ||
// Docs: http://hamcrest.github.com/OCHamcrest/ | ||
// Source: https://github.com/hamcrest/OCHamcrest | ||
// | ||
|
||
#import <OCHamcrest/HCBaseMatcher.h> | ||
|
||
|
||
@interface HCAnyOf : HCBaseMatcher | ||
{ | ||
NSArray *matchers; | ||
} | ||
|
||
+ (id)anyOf:(NSArray *)theMatchers; | ||
- (id)initWithMatchers:(NSArray *)theMatchers; | ||
|
||
@end | ||
|
||
|
||
OBJC_EXPORT id<HCMatcher> HC_anyOf(id match, ...) NS_REQUIRES_NIL_TERMINATION; | ||
|
||
/** | ||
anyOf(firstMatcher, ...) - | ||
Matches if any of the given matchers evaluate to @c YES. | ||
@param firstMatcher,... A comma-separated list of matchers ending with @c nil. | ||
The matchers are evaluated from left to right using short-circuit evaluation, so evaluation | ||
stops as soon as a matcher returns @c YES. | ||
Any argument that is not a matcher is implicitly wrapped in an @ref equalTo matcher to check for | ||
equality. | ||
(In the event of a name clash, don't \#define @c HC_SHORTHAND and use the synonym | ||
@c HC_anyOf instead.) | ||
@ingroup logical_matchers | ||
*/ | ||
#ifdef HC_SHORTHAND | ||
#define anyOf HC_anyOf | ||
#endif |
42 changes: 42 additions & 0 deletions
42
External/OCHamcrest.framework/Versions/A/Headers/HCAssertThat.h
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
// | ||
// OCHamcrest - HCAssertThat.h | ||
// Copyright 2012 hamcrest.org. See LICENSE.txt | ||
// | ||
// Created by: Jon Reid, http://qualitycoding.org/ | ||
// Docs: http://hamcrest.github.com/OCHamcrest/ | ||
// Source: https://github.com/hamcrest/OCHamcrest | ||
// | ||
|
||
#import <objc/objc-api.h> | ||
|
||
@protocol HCMatcher; | ||
|
||
|
||
OBJC_EXPORT void HC_assertThatWithLocation(id testCase, id actual, id<HCMatcher> matcher, | ||
const char *fileName, int lineNumber); | ||
|
||
#define HC_assertThat(actual, matcher) \ | ||
HC_assertThatWithLocation(self, actual, matcher, __FILE__, __LINE__) | ||
|
||
/** | ||
assertThat(actual, matcher) - | ||
Asserts that actual value satisfies matcher. | ||
@param actual The object to evaluate as the actual value. | ||
@param matcher The matcher to satisfy as the expected condition. | ||
@c assertThat passes the actual value to the matcher for evaluation. If the matcher is not | ||
satisfied, an exception is thrown describing the mismatch. | ||
@c assertThat is designed to integrate well with OCUnit and other unit testing frameworks. | ||
Unmet assertions are reported as test failures. In Xcode, these failures can be clicked to | ||
reveal the line of the assertion. | ||
In the event of a name clash, don't \#define @c HC_SHORTHAND and use the synonym | ||
@c HC_assertThat instead. | ||
@ingroup integration | ||
*/ | ||
#ifdef HC_SHORTHAND | ||
#define assertThat HC_assertThat | ||
#endif |
33 changes: 33 additions & 0 deletions
33
External/OCHamcrest.framework/Versions/A/Headers/HCBaseDescription.h
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
// | ||
// OCHamcrest - HCBaseDescription.h | ||
// Copyright 2012 hamcrest.org. See LICENSE.txt | ||
// | ||
// Created by: Jon Reid, http://qualitycoding.org/ | ||
// Docs: http://hamcrest.github.com/OCHamcrest/ | ||
// Source: https://github.com/hamcrest/OCHamcrest | ||
// | ||
|
||
#import <Foundation/Foundation.h> | ||
#import <OCHamcrest/HCDescription.h> | ||
|
||
|
||
/** | ||
Base class for all HCDescription implementations. | ||
@ingroup core | ||
*/ | ||
@interface HCBaseDescription : NSObject <HCDescription> | ||
@end | ||
|
||
|
||
/** | ||
Methods that must be provided by subclasses of HCBaseDescription. | ||
*/ | ||
@interface HCBaseDescription (SubclassMustImplement) | ||
|
||
/** | ||
Append the string @a str to the description. | ||
*/ | ||
- (void)append:(NSString *)str; | ||
|
||
@end |
27 changes: 27 additions & 0 deletions
27
External/OCHamcrest.framework/Versions/A/Headers/HCBaseMatcher.h
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
// | ||
// OCHamcrest - HCBaseMatcher.h | ||
// Copyright 2012 hamcrest.org. See LICENSE.txt | ||
// | ||
// Created by: Jon Reid, http://qualitycoding.org/ | ||
// Docs: http://hamcrest.github.com/OCHamcrest/ | ||
// Source: https://github.com/hamcrest/OCHamcrest | ||
// | ||
|
||
#import <Foundation/Foundation.h> | ||
#import <OCHamcrest/HCMatcher.h> | ||
|
||
#import <objc/objc-api.h> // Convenience header, to provide OBJC_EXPORT | ||
|
||
|
||
/** | ||
Base class for all HCMatcher implementations. | ||
Most implementations can just implement @c -matches: and let | ||
<code>-matches:describingMismatchTo:</code> call it. But if it makes more sense to generate the | ||
mismatch description during the matching, override <code>-matches:describingMismatchTo:</code> | ||
and have @c -matches: call it with a @c nil description. | ||
@ingroup core | ||
*/ | ||
@interface HCBaseMatcher : NSObject <HCMatcher> | ||
@end |
93 changes: 93 additions & 0 deletions
93
External/OCHamcrest.framework/Versions/A/Headers/HCBoxNumber.h
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,93 @@ | ||
// | ||
// OCHamcrest - HCBoxNumber.h | ||
// Copyright 2012 hamcrest.org. See LICENSE.txt | ||
// | ||
// Created by: Jon Reid, http://qualitycoding.org/ | ||
// Docs: http://hamcrest.github.com/OCHamcrest/ | ||
// Source: https://github.com/hamcrest/OCHamcrest | ||
// | ||
|
||
#ifdef __cplusplus | ||
|
||
namespace hamcrest { | ||
|
||
/** | ||
Boxes a scalar value in an NSNumber, specialized per type. | ||
@b Deprecated | ||
@ingroup number_matchers | ||
*/ | ||
template <typename T> | ||
inline | ||
NSNumber *boxNumber(T value) __attribute__((deprecated)); | ||
{ return nil; } | ||
|
||
template <> | ||
inline | ||
NSNumber *boxNumber(BOOL value) | ||
{ return [NSNumber numberWithBool:value]; } | ||
|
||
template <> | ||
inline | ||
NSNumber *boxNumber(char value) | ||
{ return [NSNumber numberWithChar:value]; } | ||
|
||
template <> | ||
inline | ||
NSNumber *boxNumber(double value) | ||
{ return [NSNumber numberWithDouble:value]; } | ||
|
||
template <> | ||
inline | ||
NSNumber *boxNumber(float value) | ||
{ return [NSNumber numberWithFloat:value]; } | ||
|
||
template <> | ||
inline | ||
NSNumber *boxNumber(int value) | ||
{ return [NSNumber numberWithInt:value]; } | ||
|
||
template <> | ||
inline | ||
NSNumber *boxNumber(long value) | ||
{ return [NSNumber numberWithLong:value]; } | ||
|
||
template <> | ||
inline | ||
NSNumber *boxNumber(long long value) | ||
{ return [NSNumber numberWithLongLong:value]; } | ||
|
||
template <> | ||
inline | ||
NSNumber *boxNumber(short value) | ||
{ return [NSNumber numberWithShort:value]; } | ||
|
||
template <> | ||
inline | ||
NSNumber *boxNumber(unsigned char value) | ||
{ return [NSNumber numberWithUnsignedChar:value]; } | ||
|
||
template <> | ||
inline | ||
NSNumber *boxNumber(unsigned int value) | ||
{ return [NSNumber numberWithUnsignedInt:value]; } | ||
|
||
template <> | ||
inline | ||
NSNumber *boxNumber(unsigned long value) | ||
{ return [NSNumber numberWithUnsignedLong:value]; } | ||
|
||
template <> | ||
inline | ||
NSNumber *boxNumber(unsigned long long value) | ||
{ return [NSNumber numberWithUnsignedLongLong:value]; } | ||
|
||
template <> | ||
inline | ||
NSNumber *boxNumber(unsigned short value) | ||
{ return [NSNumber numberWithUnsignedShort:value]; } | ||
|
||
} // namespace hamcrest | ||
|
||
#endif // __cplusplus |
23 changes: 23 additions & 0 deletions
23
External/OCHamcrest.framework/Versions/A/Headers/HCCollectMatchers.h
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
// | ||
// OCHamcrest - HCCollectMatchers.h | ||
// Copyright 2012 hamcrest.org. See LICENSE.txt | ||
// | ||
// Created by: Jon Reid, http://qualitycoding.org/ | ||
// Docs: http://hamcrest.github.com/OCHamcrest/ | ||
// Source: https://github.com/hamcrest/OCHamcrest | ||
// | ||
|
||
#import <Foundation/Foundation.h> | ||
#import <objc/objc-api.h> | ||
|
||
#import <stdarg.h> | ||
|
||
@protocol HCMatcher; | ||
|
||
|
||
/** | ||
Returns an array of matchers from a variable-length comma-separated list terminated by @c nil. | ||
@ingroup helpers | ||
*/ | ||
OBJC_EXPORT NSMutableArray *HCCollectMatchers(id item1, va_list args); |
43 changes: 43 additions & 0 deletions
43
External/OCHamcrest.framework/Versions/A/Headers/HCConformsToProtocol.h
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
// | ||
// OCHamcrest - HCConformsToProtocol.h | ||
// Copyright 2012 hamcrest.org. See LICENSE.txt | ||
// | ||
// Created by: Todd Farrell | ||
// | ||
|
||
#import <OCHamcrest/HCBaseMatcher.h> | ||
|
||
|
||
@interface HCConformsToProtocol : HCBaseMatcher | ||
{ | ||
Protocol *theProtocol; | ||
} | ||
|
||
+ (id)conformsToProtocol:(Protocol *)protocol; | ||
- (id)initWithProtocol:(Protocol *)protocol; | ||
|
||
@end | ||
|
||
|
||
OBJC_EXPORT id<HCMatcher> HC_conformsTo(Protocol *aProtocol); | ||
OBJC_EXPORT id<HCMatcher> HC_conformsToProtocol(Protocol *aProtocol) __attribute__((deprecated)); | ||
|
||
/** | ||
conformsTo(aProtocol) - | ||
Matches if object conforms to a given protocol. | ||
@param aProtocol The protocol to compare against as the expected protocol. | ||
This matcher checks whether the evaluated object conforms to @a aProtocol. | ||
Example: | ||
@li @ref conformsTo(\@protocol(NSObject)) | ||
(In the event of a name clash, don't \#define @c HC_SHORTHAND and use the synonym | ||
@c HC_conformsTo instead.) | ||
@ingroup object_matchers | ||
*/ | ||
#ifdef HC_SHORTHAND | ||
#define conformsTo HC_conformsTo | ||
#endif |
Oops, something went wrong.