Permalink
Browse files

Added static iPhone frameworks for OCMock and OCHamcrest to repo to m…

…ake it self-contained.
  • Loading branch information...
1 parent fb06356 commit 01c2c5082016b460461fc2303d3eb80ae68fd705 Adam Milligan committed Jul 1, 2010
Showing with 2,834 additions and 528 deletions.
  1. +3 −9 Info.plist → Cedar-Info.plist
  2. +478 −519 Cedar.xcodeproj/project.pbxproj
  3. +1 −0 OCHamcrest-iPhone.framework/Headers
  4. +1 −0 OCHamcrest-iPhone.framework/OCHamcrest-iPhone
  5. +1 −0 OCHamcrest-iPhone.framework/Resources
  6. +52 −0 OCHamcrest-iPhone.framework/Versions/A/Headers/HCAllOf.h
  7. +52 −0 OCHamcrest-iPhone.framework/Versions/A/Headers/HCAnyOf.h
  8. +30 −0 OCHamcrest-iPhone.framework/Versions/A/Headers/HCBaseDescription.h
  9. +21 −0 OCHamcrest-iPhone.framework/Versions/A/Headers/HCBaseMatcher.h
  10. +87 −0 OCHamcrest-iPhone.framework/Versions/A/Headers/HCBoxNumber.h
  11. +56 −0 OCHamcrest-iPhone.framework/Versions/A/Headers/HCDescribedAs.h
  12. +46 −0 OCHamcrest-iPhone.framework/Versions/A/Headers/HCDescription.h
  13. +48 −0 OCHamcrest-iPhone.framework/Versions/A/Headers/HCHasDescription.h
  14. +37 −0 OCHamcrest-iPhone.framework/Versions/A/Headers/HCInvocationMatcher.h
  15. +66 −0 OCHamcrest-iPhone.framework/Versions/A/Headers/HCIs.h
  16. +61 −0 OCHamcrest-iPhone.framework/Versions/A/Headers/HCIsAnything.h
  17. +48 −0 OCHamcrest-iPhone.framework/Versions/A/Headers/HCIsCloseTo.h
  18. +51 −0 OCHamcrest-iPhone.framework/Versions/A/Headers/HCIsCollectionContaining.h
  19. +60 −0 OCHamcrest-iPhone.framework/Versions/A/Headers/HCIsCollectionOnlyContaining.h
  20. +43 −0 OCHamcrest-iPhone.framework/Versions/A/Headers/HCIsDictionaryContaining.h
  21. +41 −0 OCHamcrest-iPhone.framework/Versions/A/Headers/HCIsDictionaryContainingKey.h
  22. +41 −0 OCHamcrest-iPhone.framework/Versions/A/Headers/HCIsDictionaryContainingValue.h
  23. +47 −0 OCHamcrest-iPhone.framework/Versions/A/Headers/HCIsEqual.h
  24. +44 −0 OCHamcrest-iPhone.framework/Versions/A/Headers/HCIsEqualIgnoringCase.h
  25. +45 −0 OCHamcrest-iPhone.framework/Versions/A/Headers/HCIsEqualIgnoringWhiteSpace.h
  26. +185 −0 OCHamcrest-iPhone.framework/Versions/A/Headers/HCIsEqualToNumber.h
  27. +41 −0 OCHamcrest-iPhone.framework/Versions/A/Headers/HCIsIn.h
  28. +47 −0 OCHamcrest-iPhone.framework/Versions/A/Headers/HCIsInstanceOf.h
  29. +55 −0 OCHamcrest-iPhone.framework/Versions/A/Headers/HCIsNil.h
  30. +56 −0 OCHamcrest-iPhone.framework/Versions/A/Headers/HCIsNot.h
  31. +47 −0 OCHamcrest-iPhone.framework/Versions/A/Headers/HCIsSame.h
  32. +52 −0 OCHamcrest-iPhone.framework/Versions/A/Headers/HCMatcher.h
  33. +36 −0 OCHamcrest-iPhone.framework/Versions/A/Headers/HCMatcherAssert.h
  34. +248 −0 OCHamcrest-iPhone.framework/Versions/A/Headers/HCNumberAssert.h
  35. +80 −0 OCHamcrest-iPhone.framework/Versions/A/Headers/HCOrderingComparison.h
  36. +28 −0 OCHamcrest-iPhone.framework/Versions/A/Headers/HCRequireNonNilString.h
  37. +29 −0 OCHamcrest-iPhone.framework/Versions/A/Headers/HCSelfDescribing.h
  38. +42 −0 OCHamcrest-iPhone.framework/Versions/A/Headers/HCStringContains.h
  39. +40 −0 OCHamcrest-iPhone.framework/Versions/A/Headers/HCStringDescription.h
  40. +42 −0 OCHamcrest-iPhone.framework/Versions/A/Headers/HCStringEndsWith.h
  41. +42 −0 OCHamcrest-iPhone.framework/Versions/A/Headers/HCStringStartsWith.h
  42. +19 −0 OCHamcrest-iPhone.framework/Versions/A/Headers/HCSubstringMatcher.h
  43. +24 −0 OCHamcrest-iPhone.framework/Versions/A/Headers/HCWrapInMatcher.h
  44. +45 −0 OCHamcrest-iPhone.framework/Versions/A/Headers/OCHamcrest.h
  45. BIN OCHamcrest-iPhone.framework/Versions/A/OCHamcrest-iPhone
  46. BIN OCHamcrest-iPhone.framework/Versions/A/Resources/InfoPlist.strings
  47. +1 −0 OCHamcrest-iPhone.framework/Versions/Current
  48. +1 −0 OCMock-iPhone.framework/Headers
  49. +1 −0 OCMock-iPhone.framework/OCMock-iPhone
  50. +1 −0 OCMock-iPhone.framework/Resources
  51. +15 −0 OCMock-iPhone.framework/Versions/A/Headers/NSNotificationCenter+OCMAdditions.h
  52. +33 −0 OCMock-iPhone.framework/Versions/A/Headers/OCMArg.h
  53. +64 −0 OCMock-iPhone.framework/Versions/A/Headers/OCMConstraint.h
  54. +10 −0 OCMock-iPhone.framework/Versions/A/Headers/OCMock.h
  55. +41 −0 OCMock-iPhone.framework/Versions/A/Headers/OCMockObject.h
  56. +31 −0 OCMock-iPhone.framework/Versions/A/Headers/OCMockRecorder.h
  57. BIN OCMock-iPhone.framework/Versions/A/OCMock-iPhone
  58. +15 −0 OCMock-iPhone.framework/Versions/A/Resources/License.txt
  59. +1 −0 OCMock-iPhone.framework/Versions/Current
  60. +2 −0 Source/iPhone/CDRSpecStatusCell.m
@@ -6,23 +6,17 @@
<string>English</string>
<key>CFBundleExecutable</key>
<string>${EXECUTABLE_NAME}</string>
- <key>CFBundleName</key>
- <string>${PRODUCT_NAME}</string>
- <key>CFBundleIconFile</key>
- <string></string>
<key>CFBundleIdentifier</key>
- <string>com.pivotallabs.${PRODUCT_NAME:rfc1034Identifier}</string>
+ <string>com.yourcompany.${PRODUCT_NAME:rfc1034identifier}</string>
<key>CFBundleInfoDictionaryVersion</key>
<string>6.0</string>
<key>CFBundlePackageType</key>
<string>FMWK</string>
+ <key>CFBundleShortVersionString</key>
+ <string>1.0</string>
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleVersion</key>
<string>1</string>
- <key>CFBundleShortVersionString</key>
- <string>1.0</string>
- <key>NSPrincipalClass</key>
- <string></string>
</dict>
</plist>

Large diffs are not rendered by default.

Oops, something went wrong.
@@ -0,0 +1,52 @@
+//
+// OCHamcrest - HCAllOf.h
+// Copyright 2009 www.hamcrest.org. See LICENSE.txt
+//
+// Created by: Jon Reid
+//
+
+ // Inherited
+#import "HCBaseMatcher.h"
+
+
+/**
+ Calculates the logical conjunction of multiple matchers.
+
+ Evaluation is shortcut, so subsequent matchers are not called if an earlier matcher returns
+ @c NO.
+*/
+@interface HCAllOf : HCBaseMatcher
+{
+ NSArray* matchers;
+}
+
++ (HCAllOf*) allOf:(NSArray*)theMatchers;
+- (id) initWithMatchers:(NSArray*)theMatchers;
+
+@end
+
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+/**
+ Evaluates to @c YES only if @b all of the passed in matchers evaluate to @c YES.
+
+ @param matcher Comma-separated list of matchers ending with @c nil.
+*/
+id<HCMatcher> HC_allOf(id<HCMatcher> matcher, ...);
+
+#ifdef __cplusplus
+}
+#endif
+
+
+#ifdef HC_SHORTHAND
+
+/**
+ Shorthand for HC_allOf, available if HC_SHORTHAND is defined.
+*/
+#define allOf HC_allOf
+
+#endif
@@ -0,0 +1,52 @@
+//
+// OCHamcrest - HCAnyOf.h
+// Copyright 2009 www.hamcrest.org. See LICENSE.txt
+//
+// Created by: Jon Reid
+//
+
+ // Inherited
+#import "HCBaseMatcher.h"
+
+
+/**
+ Calculates the logical disjunction of multiple matchers.
+
+ Evaluation is shortcut, so the subsequent matchers are not called if an earlier matcher returns
+ @c YES.
+*/
+@interface HCAnyOf : HCBaseMatcher
+{
+ NSArray* matchers;
+}
+
++ (HCAnyOf*) anyOf:(NSArray*)theMatchers;
+- (id) initWithMatchers:(NSArray*)theMatchers;
+
+@end
+
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+/**
+ Evaluates to @c YES if @b any of the passed in matchers evaluate to @c YES.
+
+ @param matcher Comma-separated list of matchers ending with @c nil.
+*/
+id<HCMatcher> HC_anyOf(id<HCMatcher> matcher, ...);
+
+#ifdef __cplusplus
+}
+#endif
+
+
+#ifdef HC_SHORTHAND
+
+/**
+ Shorthand for HC_anyOf, available if HC_SHORTHAND is defined.
+*/
+#define anyOf HC_anyOf
+
+#endif
@@ -0,0 +1,30 @@
+//
+// OCHamcrest - HCBaseDescription.h
+// Copyright 2009 www.hamcrest.org. See LICENSE.txt
+//
+// Created by: Jon Reid
+//
+
+ // Inherited
+#import <Foundation/Foundation.h>
+#import "HCDescription.h"
+
+
+/**
+ Base class for all HCDescription implementations.
+*/
+@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
@@ -0,0 +1,21 @@
+//
+// OCHamcrest - HCBaseMatcher.h
+// Copyright 2009 www.hamcrest.org. See LICENSE.txt
+//
+// Created by: Jon Reid
+//
+
+ // Inherited
+#import <Foundation/Foundation.h>
+#import "HCMatcher.h"
+
+
+/**
+ Base class for all Matcher implementations.
+
+ Most implementations can just implement matches: and let matches:describingMismatchTo: call
+ it. But if it makes more sense to generate the mismatch description during the matching,
+ override matches:describingMismatchTo: and have matches: call it with a nil description.
+*/
+@interface HCBaseMatcher : NSObject<HCMatcher>
+@end
@@ -0,0 +1,87 @@
+//
+// OCHamcrest - HCBoxNumber.h
+// Copyright 2009 www.hamcrest.org. See LICENSE.txt
+//
+// Created by: Jon Reid
+//
+
+#ifdef __cplusplus
+
+namespace hamcrest {
+
+/**
+ Boxes scalar value in NSNumber, specialized per type.
+*/
+template <typename T>
+inline
+NSNumber* boxNumber(T value)
+ { 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
@@ -0,0 +1,56 @@
+//
+// OCHamcrest - HCDescribedAs.h
+// Copyright 2009 www.hamcrest.org. See LICENSE.txt
+//
+// Created by: Jon Reid
+//
+
+ // Inherited
+#import "HCBaseMatcher.h"
+
+
+/**
+ Provides a custom description to another matcher.
+*/
+@interface HCDescribedAs : HCBaseMatcher
+{
+ NSString* descriptionTemplate;
+ id<HCMatcher> matcher;
+ NSArray* values;
+}
+
++ (HCDescribedAs*) describedAs:(NSString*)description
+ forMatcher:(id<HCMatcher>)aMatcher
+ overValues:(NSArray*)templateValues;
+- (id) initWithDescription:(NSString*)description
+ forMatcher:(id<HCMatcher>)aMatcher
+ overValues:(NSArray*)templateValues;
+
+@end
+
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+/**
+ Wraps an existing matcher and overrides the description when it fails.
+
+ Optional values following the matcher are substituted for \%0, \%1, etc.
+ The last argument must be nil.
+*/
+id<HCMatcher> HC_describedAs(NSString* description, id<HCMatcher> matcher, ...);
+
+#ifdef __cplusplus
+}
+#endif
+
+
+#ifdef HC_SHORTHAND
+
+/**
+ Shorthand for HC_describedAs, available if HC_SHORTHAND is defined.
+*/
+#define describedAs HC_describedAs
+
+#endif
@@ -0,0 +1,46 @@
+//
+// OCHamcrest - HCDescription.h
+// Copyright 2009 www.hamcrest.org. See LICENSE.txt
+//
+// Created by: Jon Reid
+//
+
+ // Mac
+#import <Foundation/Foundation.h>
+
+@protocol HCSelfDescribing;
+
+
+/**
+ A description of an HCMatcher.
+
+ An HCMatcher will describe itself to a description which can later be used for reporting.
+*/
+@protocol HCDescription
+
+/**
+ Appends some plain text to the description.
+
+ @return self
+*/
+- (id<HCDescription>) appendText:(NSString*)text;
+
+/**
+ Appends description of HCSelfDescribing value to self.
+
+ @return self
+*/
+- (id<HCDescription>) appendDescriptionOf:(id<HCSelfDescribing>)value;
+
+/**
+ Appends an arbitary value to the description.
+*/
+- (id<HCDescription>) appendValue:(id)value;
+
+/**
+ Appends a list of objects to the description.
+*/
+- (id<HCDescription>) appendList:(NSArray*)values
+ start:(NSString*)start separator:(NSString*)separator end:(NSString*)end;
+
+@end
Oops, something went wrong.

0 comments on commit 01c2c50

Please sign in to comment.