Permalink
Browse files

Add docs.

  • Loading branch information...
1 parent 1e24860 commit eae183e4d851caff7d5204ba3385189ec2372406 @jasperblues jasperblues committed Feb 25, 2012
Showing with 13,391 additions and 0 deletions.
  1. BIN Dependencies/.DS_Store
  2. BIN Dependencies/External/.DS_Store
  3. +132 −0 Dependencies/External/Objective-Loggerheads/Logging.h
  4. BIN Dependencies/Libraries/.DS_Store
  5. BIN Dependencies/Libraries/Kiwi/.DS_Store
  6. +18 −0 Dependencies/Libraries/Kiwi/KWAfterAllNode.h
  7. +18 −0 Dependencies/Libraries/Kiwi/KWAfterEachNode.h
  8. +36 −0 Dependencies/Libraries/Kiwi/KWAsyncVerifier.h
  9. +24 −0 Dependencies/Libraries/Kiwi/KWBeBetweenMatcher.h
  10. +20 −0 Dependencies/Libraries/Kiwi/KWBeEmptyMatcher.h
  11. +20 −0 Dependencies/Libraries/Kiwi/KWBeIdenticalToMatcher.h
  12. +20 −0 Dependencies/Libraries/Kiwi/KWBeKindOfClassMatcher.h
  13. +20 −0 Dependencies/Libraries/Kiwi/KWBeMemberOfClassMatcher.h
  14. +16 −0 Dependencies/Libraries/Kiwi/KWBeNilMatcher.h
  15. +16 −0 Dependencies/Libraries/Kiwi/KWBeNonNilMatcher.h
  16. +26 −0 Dependencies/Libraries/Kiwi/KWBeTrueMatcher.h
  17. +23 −0 Dependencies/Libraries/Kiwi/KWBeWithinMatcher.h
  18. +17 −0 Dependencies/Libraries/Kiwi/KWBeZeroMatcher.h
  19. +18 −0 Dependencies/Libraries/Kiwi/KWBeforeAllNode.h
  20. +18 −0 Dependencies/Libraries/Kiwi/KWBeforeEachNode.h
  21. +33 −0 Dependencies/Libraries/Kiwi/KWBlock.h
  22. +44 −0 Dependencies/Libraries/Kiwi/KWBlockNode.h
  23. +27 −0 Dependencies/Libraries/Kiwi/KWBlockRaiseMatcher.h
  24. +33 −0 Dependencies/Libraries/Kiwi/KWCallSite.h
  25. +20 −0 Dependencies/Libraries/Kiwi/KWConformToProtocolMatcher.h
  26. +32 −0 Dependencies/Libraries/Kiwi/KWContainMatcher.h
  27. +76 −0 Dependencies/Libraries/Kiwi/KWContextNode.h
  28. +15 −0 Dependencies/Libraries/Kiwi/KWCountType.h
  29. +18 −0 Dependencies/Libraries/Kiwi/KWDeviceInfo.h
  30. +20 −0 Dependencies/Libraries/Kiwi/KWEqualMatcher.h
  31. +99 −0 Dependencies/Libraries/Kiwi/KWExample.h
  32. +54 −0 Dependencies/Libraries/Kiwi/KWExampleGroupBuilder.h
  33. +18 −0 Dependencies/Libraries/Kiwi/KWExampleGroupDelegate.h
  34. +23 −0 Dependencies/Libraries/Kiwi/KWExampleNode.h
  35. +41 −0 Dependencies/Libraries/Kiwi/KWExampleNodeVisitor.h
  36. +33 −0 Dependencies/Libraries/Kiwi/KWExampleSuite.h
  37. +35 −0 Dependencies/Libraries/Kiwi/KWExistVerifier.h
  38. +15 −0 Dependencies/Libraries/Kiwi/KWExpectationType.h
  39. +39 −0 Dependencies/Libraries/Kiwi/KWFailure.h
  40. +16 −0 Dependencies/Libraries/Kiwi/KWFormatter.h
  41. +23 −0 Dependencies/Libraries/Kiwi/KWFutureObject.h
  42. +12 −0 Dependencies/Libraries/Kiwi/KWHCMatcher.h
  43. +23 −0 Dependencies/Libraries/Kiwi/KWHamcrestMatcher.h
  44. +26 −0 Dependencies/Libraries/Kiwi/KWHamrestMatchingAdditions.h
  45. +63 −0 Dependencies/Libraries/Kiwi/KWHaveMatcher.h
  46. +31 −0 Dependencies/Libraries/Kiwi/KWHaveValueMatcher.h
  47. +36 −0 Dependencies/Libraries/Kiwi/KWInequalityMatcher.h
  48. +58 −0 Dependencies/Libraries/Kiwi/KWIntercept.h
  49. +47 −0 Dependencies/Libraries/Kiwi/KWInvocationCapturer.h
  50. +28 −0 Dependencies/Libraries/Kiwi/KWItNode.h
  51. +51 −0 Dependencies/Libraries/Kiwi/KWMatchVerifier.h
  52. +49 −0 Dependencies/Libraries/Kiwi/KWMatcher.h
  53. +52 −0 Dependencies/Libraries/Kiwi/KWMatcherFactory.h
  54. +37 −0 Dependencies/Libraries/Kiwi/KWMatchers.h
  55. +48 −0 Dependencies/Libraries/Kiwi/KWMatching.h
  56. +54 −0 Dependencies/Libraries/Kiwi/KWMessagePattern.h
  57. +16 −0 Dependencies/Libraries/Kiwi/KWMessageSpying.h
  58. +56 −0 Dependencies/Libraries/Kiwi/KWMessageTracker.h
  59. +106 −0 Dependencies/Libraries/Kiwi/KWMock.h
  60. +19 −0 Dependencies/Libraries/Kiwi/KWNull.h
  61. +43 −0 Dependencies/Libraries/Kiwi/KWObjCUtilities.h
  62. +38 −0 Dependencies/Libraries/Kiwi/KWPendingNode.h
  63. +15 −0 Dependencies/Libraries/Kiwi/KWProbe.h
  64. +21 −0 Dependencies/Libraries/Kiwi/KWProbePoller.h
  65. +28 −0 Dependencies/Libraries/Kiwi/KWRaiseMatcher.h
  66. +90 −0 Dependencies/Libraries/Kiwi/KWReceiveMatcher.h
  67. +35 −0 Dependencies/Libraries/Kiwi/KWRegisterMatchersNode.h
  68. +18 −0 Dependencies/Libraries/Kiwi/KWReporting.h
  69. +20 −0 Dependencies/Libraries/Kiwi/KWRespondToSelectorMatcher.h
  70. +35 −0 Dependencies/Libraries/Kiwi/KWSpec.h
  71. +23 −0 Dependencies/Libraries/Kiwi/KWStringUtilities.h
  72. +39 −0 Dependencies/Libraries/Kiwi/KWStub.h
  73. +45 −0 Dependencies/Libraries/Kiwi/KWTestCase.h
  74. +67 −0 Dependencies/Libraries/Kiwi/KWUserDefinedMatcher.h
  75. +144 −0 Dependencies/Libraries/Kiwi/KWValue.h
  76. +23 −0 Dependencies/Libraries/Kiwi/KWVerifying.h
  77. +18 −0 Dependencies/Libraries/Kiwi/KWWorkarounds.h
  78. +92 −0 Dependencies/Libraries/Kiwi/Kiwi.h
  79. +16 −0 Dependencies/Libraries/Kiwi/KiwiBlockMacros.h
  80. +28 −0 Dependencies/Libraries/Kiwi/KiwiConfiguration.h
  81. +61 −0 Dependencies/Libraries/Kiwi/KiwiMacros.h
  82. +10 −0 Dependencies/Libraries/Kiwi/KiwiNewMacros.h
  83. +33 −0 Dependencies/Libraries/Kiwi/NSInvocation+KiwiAdditions.h
  84. +17 −0 Dependencies/Libraries/Kiwi/NSMethodSignature+KiwiAdditions.h
  85. +46 −0 Dependencies/Libraries/Kiwi/NSNumber+KiwiAdditions.h
  86. +22 −0 Dependencies/Libraries/Kiwi/NSObject+KiwiMockAdditions.h
  87. +41 −0 Dependencies/Libraries/Kiwi/NSObject+KiwiStubAdditions.h
  88. +20 −0 Dependencies/Libraries/Kiwi/NSObject+KiwiVerifierAdditions.h
  89. +16 −0 Dependencies/Libraries/Kiwi/NSValue+KiwiAdditions.h
  90. BIN Dependencies/Libraries/libKiwi.a
  91. +284 −0 Docs/api/Categories/NSString+ProjectNodeType.html
  92. +284 −0 Docs/api/Categories/NSString+XCodeProjectFileType.html
  93. +477 −0 Docs/api/Classes/xcode_ClassDefinition.html
  94. +435 −0 Docs/api/Classes/xcode_FileResource.html
  95. +292 −0 Docs/api/Classes/xcode_FileWriteQueue.html
  96. +389 −0 Docs/api/Classes/xcode_Group.html
  97. +305 −0 Docs/api/Classes/xcode_KeyBuilder.html
  98. +887 −0 Docs/api/Classes/xcode_Project.html
  99. +371 −0 Docs/api/Classes/xcode_Target.html
  100. +562 −0 Docs/api/css/styles.css
  101. +22 −0 Docs/api/css/stylesPrint.css
  102. +96 −0 Docs/api/hierarchy.html
  103. BIN Docs/api/img/button_bar_background.png
  104. BIN Docs/api/img/disclosure.png
  105. BIN Docs/api/img/disclosure_open.png
  106. BIN Docs/api/img/library_background.png
  107. BIN Docs/api/img/title_background.png
  108. +90 −0 Docs/api/index.html
  109. +124 −0 Docs/coverage/Users/jblues/ExpanzProjects/xcode-editor1/Source/Main/XcodeProjectFileType.m.gcov.html
  110. +131 −0 Docs/coverage/Users/jblues/ExpanzProjects/xcode-editor1/Source/Main/XcodeProjectNodeType.m.gcov.html
  111. +148 −0 Docs/coverage/Users/jblues/ExpanzProjects/xcode-editor1/Source/Main/index-sort-l.html
  112. +148 −0 Docs/coverage/Users/jblues/ExpanzProjects/xcode-editor1/Source/Main/index.html
  113. +139 −0 .../coverage/Users/jblues/ExpanzProjects/xcode-editor1/Source/Main/xcode_ClassDefinition.m.gcov.html
  114. +167 −0 Docs/coverage/Users/jblues/ExpanzProjects/xcode-editor1/Source/Main/xcode_FileResource.m.gcov.html
  115. +117 −0 Docs/coverage/Users/jblues/ExpanzProjects/xcode-editor1/Source/Main/xcode_FileWriteQueue.m.gcov.html
  116. +183 −0 Docs/coverage/Users/jblues/ExpanzProjects/xcode-editor1/Source/Main/xcode_Group.m.gcov.html
  117. +115 −0 Docs/coverage/Users/jblues/ExpanzProjects/xcode-editor1/Source/Main/xcode_KeyBuilder.m.gcov.html
  118. +269 −0 Docs/coverage/Users/jblues/ExpanzProjects/xcode-editor1/Source/Main/xcode_Project.m.gcov.html
  119. +134 −0 Docs/coverage/Users/jblues/ExpanzProjects/xcode-editor1/Source/Main/xcode_Target.m.gcov.html
  120. BIN Docs/coverage/amber.png
  121. BIN Docs/coverage/emerald.png
  122. +519 −0 Docs/coverage/gcov.css
  123. BIN Docs/coverage/glass.png
  124. +84 −0 Docs/coverage/index-sort-l.html
  125. +84 −0 Docs/coverage/index.html
  126. BIN Docs/coverage/ruby.png
  127. BIN Docs/coverage/snow.png
  128. BIN Docs/coverage/updown.png
  129. BIN Source/.DS_Store
  130. BIN Source/Main/.DS_Store
  131. +30 −0 Source/Main/Resources/XcodeEditor-Info.plist
  132. +9 −0 Source/Main/Resources/XcodeEditor-Prefix.pch
  133. +2 −0 Source/Main/Resources/en.lproj/InfoPlist.strings
  134. +26 −0 Source/Main/XcodeProjectFileType.h
  135. +52 −0 Source/Main/XcodeProjectFileType.m
  136. +38 −0 Source/Main/XcodeProjectNodeType.h
  137. +59 −0 Source/Main/XcodeProjectNodeType.m
  138. +50 −0 Source/Main/xcode_ClassDefinition.h
  139. +67 −0 Source/Main/xcode_ClassDefinition.m
  140. +47 −0 Source/Main/xcode_FileResource.h
  141. +95 −0 Source/Main/xcode_FileResource.m
  142. +31 −0 Source/Main/xcode_FileWriteQueue.h
  143. +45 −0 Source/Main/xcode_FileWriteQueue.m
  144. +39 −0 Source/Main/xcode_Group.h
  145. +111 −0 Source/Main/xcode_Group.m
  146. +35 −0 Source/Main/xcode_KeyBuilder.h
  147. +43 −0 Source/Main/xcode_KeyBuilder.m
  148. +94 −0 Source/Main/xcode_Project.h
  149. +197 −0 Source/Main/xcode_Project.m
  150. +34 −0 Source/Main/xcode_Target.h
  151. +62 −0 Source/Main/xcode_Target.m
  152. BIN Source/Tests/.DS_Store
  153. +86 −0 Source/Tests/ClassDefinitionSpec.m
  154. +84 −0 Source/Tests/GroupSpec.m
  155. +34 −0 Source/Tests/KeyBuilderSpec.m
  156. +70 −0 Source/Tests/ProjectSpec.m
  157. BIN Source/Tests/Resources/.DS_Store
  158. +34 −0 Source/Tests/Resources/ESA_Sales_Foobar_ViewController.header
  159. +48 −0 Source/Tests/Resources/ESA_Sales_Foobar_ViewController.impl
  160. +752 −0 Source/Tests/Resources/project.pbxproj
  161. +22 −0 Source/Tests/Tests-Info.plist
  162. +13 −0 Source/Tests/Tests-Prefix.pch
  163. +17 −0 Source/Tests/Utils/NSString+TestResource.h
  164. +27 −0 Source/Tests/Utils/NSString+TestResource.m
  165. +29 −0 Source/Tests/XcodeFileReferenceTypeSpec.m
  166. BIN Source/Tests/en.lproj/.DS_Store
  167. +2 −0 Source/Tests/en.lproj/InfoPlist.strings
  168. +17 −0 build-configuration.properties
  169. +157 −0 build.xml
  170. +711 −0 xcode-editor.xcodeproj/project.pbxproj
  171. +7 −0 xcode-editor.xcodeproj/project.xcworkspace/contents.xcworkspacedata
  172. BIN ...editor.xcodeproj/project.xcworkspace/xcuserdata/jblues.xcuserdatad/UserInterfaceState.xcuserstate
  173. +10 −0 ...e-editor.xcodeproj/project.xcworkspace/xcuserdata/jblues.xcuserdatad/WorkspaceSettings.xcsettings
  174. +37 −0 xcode-editor.xcodeproj/xcuserdata/jblues.xcuserdatad/xcschemes/Tests.xcscheme
  175. +33 −0 xcode-editor.xcodeproj/xcuserdata/jblues.xcuserdatad/xcschemes/XcodeEditor.xcscheme
  176. +107 −0 xcode-editor.xcodeproj/xcuserdata/jblues.xcuserdatad/xcschemes/xcschememanagement.plist
View
Binary file not shown.
Binary file not shown.
@@ -0,0 +1,132 @@
+/* ================================================================================================================== */
+#pragma mark Logging
+
+/**
+ * For Objective-C code, this library adds flexible, non-intrusive logging capabilities
+ * that can be efficiently enabled or disabled via compile switches.
+ *
+ * There are four levels of logging: Trace, Info, Error and Debug, and each can be enabled
+ * independently via the LOGGING_LEVEL_TRACE, LOGGING_LEVEL_INFO, LOGGING_LEVEL_ERROR and
+ * LOGGING_LEVEL_DEBUG switches, respectively.
+ *
+ * In addition, ALL logging can be enabled or disabled via the LOGGING_ENABLED switch.
+ *
+ * Logging functions are implemented here via macros. Disabling logging, either entirely, or
+ * at a specific level, completely removes the corresponding log invocations from the compiled
+ * code, thus eliminating both the memory and CPU overhead that the logging calls would add.
+ * You might choose, for example, to completely remove all logging from production release code,
+ * by setting LOGGING_ENABLED off in your production builds settings. Or, as another example,
+ * you might choose to include Error logging in your production builds by turning only
+ * LOGGING_ENABLED and LOGGING_LEVEL_ERROR on, and turning the others off.
+ *
+ * To perform logging, use any of the following function calls in your code:
+ *
+ * LogTrace(fmt, ...) - recommended for detailed tracing of program flow
+ * - will print if LOGGING_LEVEL_TRACE is set on.
+ *
+ * LogInfo(fmt, ...) - recommended for general, infrequent, information messages
+ * - will print if LOGGING_LEVEL_INFO is set on.
+ *
+ * LogError(fmt, ...) - recommended for use only when there is an error to be logged
+ * - will print if LOGGING_LEVEL_ERROR is set on.
+ *
+ * LogDebug(fmt, ...) - recommended for temporary use during debugging
+ * - will print if LOGGING_LEVEL_DEBUG is set on.
+ *
+ * In each case, the functions follow the general NSLog/printf template, where the first argument
+ * "fmt" is an NSString that optionally includes embedded Format Specifiers, and subsequent optional
+ * arguments indicate data to be formatted and inserted into the string. As with NSLog, the number
+ * of optional arguments must match the number of embedded Format Specifiers. For more info, see the
+ * core documentation for NSLog and String Format Specifiers.
+ *
+ * You can choose to have each logging entry automatically include class, method and line information
+ * by enabling the LOGGING_INCLUDE_CODE_LOCATION switch.
+ *
+ * Although you can directly edit this file to turn on or off the switches below, the preferred
+ * technique is to set these switches via the compiler build setting GCC_PREPROCESSOR_DEFINITIONS
+ * in your build configuration.
+ */
+
+/**
+ * Set this switch to enable or disable logging capabilities.
+ * This can be set either here or via the compiler build setting GCC_PREPROCESSOR_DEFINITIONS
+ * in your build configuration. Using the compiler build setting is preferred for this to
+ * ensure that logging is not accidentally left enabled by accident in release builds.
+ */
+#ifndef LOGGING_ENABLED
+# define LOGGING_ENABLED 1
+#endif
+
+/**
+ * Set any or all of these switches to enable or disable logging at specific levels.
+ * These can be set either here or as a compiler build settings.
+ * For these settings to be effective, LOGGING_ENABLED must also be defined and non-zero.
+ */
+#ifndef LOGGING_LEVEL_TRACE
+# define LOGGING_LEVEL_TRACE 0
+#endif
+#ifndef LOGGING_LEVEL_INFO
+# define LOGGING_LEVEL_INFO 1
+#endif
+#ifndef LOGGING_LEVEL_ERROR
+# define LOGGING_LEVEL_ERROR 1
+#endif
+#ifndef LOGGING_LEVEL_DEBUG
+# define LOGGING_LEVEL_DEBUG 1
+#endif
+
+/**
+ * Set this switch to indicate whether or not to include class, method and line information
+ * in the log entries. This can be set either here or as a compiler build setting.
+ */
+#ifndef LOGGING_INCLUDE_CODE_LOCATION
+#define LOGGING_INCLUDE_CODE_LOCATION 1
+#endif
+
+// *********** END OF USER SETTINGS - Do not change anything below this line ***********
+
+
+#if !(defined(LOGGING_ENABLED) && LOGGING_ENABLED)
+#undef LOGGING_LEVEL_TRACE
+#undef LOGGING_LEVEL_INFO
+#undef LOGGING_LEVEL_ERROR
+#undef LOGGING_LEVEL_DEBUG
+#endif
+
+// Logging format
+#define LOG_FORMAT_NO_LOCATION(fmt, lvl, ...) NSLog((@"[%@] " fmt), lvl, ##__VA_ARGS__)
+#define LOG_FORMAT_WITH_LOCATION(fmt, lvl, ...) NSLog((@"%s[Line %d] [%@] " fmt), __PRETTY_FUNCTION__, __LINE__, lvl, ##__VA_ARGS__)
+
+#if defined(LOGGING_INCLUDE_CODE_LOCATION) && LOGGING_INCLUDE_CODE_LOCATION
+#define LOG_FORMAT(fmt, lvl, ...) LOG_FORMAT_WITH_LOCATION(fmt, lvl, ##__VA_ARGS__)
+#else
+#define LOG_FORMAT(fmt, lvl, ...) LOG_FORMAT_NO_LOCATION(fmt, lvl, ##__VA_ARGS__)
+#endif
+
+// Trace logging - for detailed tracing
+#if defined(LOGGING_LEVEL_TRACE) && LOGGING_LEVEL_TRACE
+#define LogTrace(fmt, ...) LOG_FORMAT(fmt, @"trace", ##__VA_ARGS__)
+#else
+#define LogTrace(...)
+#endif
+
+// Info logging - for general, non-performance affecting information messages
+#if defined(LOGGING_LEVEL_INFO) && LOGGING_LEVEL_INFO
+#define LogInfo(fmt, ...) LOG_FORMAT(fmt, @"info", ##__VA_ARGS__)
+#else
+#define LogInfo(...)
+#endif
+
+// Error logging - only when there is an error to be logged
+#if defined(LOGGING_LEVEL_ERROR) && LOGGING_LEVEL_ERROR
+#define LogError(fmt, ...) LOG_FORMAT(fmt, @"***ERROR***", ##__VA_ARGS__)
+#else
+#define LogError(...)
+#endif
+
+// Debug logging - use only temporarily for highlighting and tracking down problems
+#if defined(LOGGING_LEVEL_DEBUG) && LOGGING_LEVEL_DEBUG
+#define LogDebug(fmt, ...) LOG_FORMAT(fmt, @"DEBUG", ##__VA_ARGS__)
+#else
+#define LogDebug(...)
+#endif
Binary file not shown.
Binary file not shown.
@@ -0,0 +1,18 @@
+//
+// Licensed under the terms in License.txt
+//
+// Copyright 2010 Allen Ding. All rights reserved.
+//
+
+#import "KiwiConfiguration.h"
+#import "KWBlockNode.h"
+#import "KWExampleNode.h"
+
+@interface KWAfterAllNode : KWBlockNode<KWExampleNode>
+
+#pragma mark -
+#pragma mark Initializing
+
++ (id) afterAllNodeWithCallSite:(KWCallSite*)aCallSite block:(KWVoidBlock)aBlock;
+
+@end
@@ -0,0 +1,18 @@
+//
+// Licensed under the terms in License.txt
+//
+// Copyright 2010 Allen Ding. All rights reserved.
+//
+
+#import "KiwiConfiguration.h"
+#import "KWBlockNode.h"
+#import "KWExampleNode.h"
+
+@interface KWAfterEachNode : KWBlockNode<KWExampleNode>
+
+#pragma mark -
+#pragma mark Initializing
+
++ (id) afterEachNodeWithCallSite:(KWCallSite*)aCallSite block:(KWVoidBlock)aBlock;
+
+@end
@@ -0,0 +1,36 @@
+//
+// KWAsyncVerifier.h
+// iOSFalconCore
+//
+// Created by Luke Redpath on 13/01/2011.
+// Copyright 2011 LJR Software Limited. All rights reserved.
+//
+
+#import <Foundation/Foundation.h>
+#import "KWMatchVerifier.h"
+#import "KWProbe.h"
+
+#define kKW_DEFAULT_PROBE_TIMEOUT 1.0
+
+@class KWAsyncMatcherProbe;
+
+@interface KWAsyncVerifier : KWMatchVerifier {
+ NSTimeInterval timeout;
+}
+@property(nonatomic, assign) NSTimeInterval timeout;
+
++ (id) asyncVerifierWithExpectationType:(KWExpectationType)anExpectationType callSite:(KWCallSite*)aCallSite
+ matcherFactory:(KWMatcherFactory*)aMatcherFactory reporter:(id<KWReporting>)aReporter
+ probeTimeout:(NSTimeInterval)probeTimeout;
+
+- (void) verifyWithProbe:(KWAsyncMatcherProbe*)aProbe;
+@end
+
+@interface KWAsyncMatcherProbe : NSObject<KWProbe> {
+ id<KWMatching> matcher;
+ BOOL matchResult;
+}
+@property(nonatomic, readonly) id<KWMatching> matcher;
+
+- (id) initWithMatcher:(id<KWMatching>)aMatcher;
+@end
@@ -0,0 +1,24 @@
+//
+// Licensed under the terms in License.txt
+//
+// Copyright 2010 Allen Ding. All rights reserved.
+//
+
+#import "KiwiConfiguration.h"
+#import "KWMatcher.h"
+
+@interface KWBeBetweenMatcher : KWMatcher {
+@private
+ id lowerEndpoint;
+ id upperEndpoint;
+}
+
+#pragma mark -
+#pragma mark Configuring Matchers
+
+// TODO: 'and' below is a reserved word in C++
+- (void) beBetween:(id)aLowerEndpoint and:(id)anUpperEndpoint;
+
+- (void) beInTheIntervalFrom:(id)aLowerEndpoint to:(id)anUpperEndpoint;
+
+@end
@@ -0,0 +1,20 @@
+//
+// Licensed under the terms in License.txt
+//
+// Copyright 2010 Allen Ding. All rights reserved.
+//
+
+#import "KiwiConfiguration.h"
+#import "KWMatcher.h"
+
+@interface KWBeEmptyMatcher : KWMatcher {
+@private
+ NSUInteger count;
+}
+
+#pragma mark -
+#pragma mark Configuring Matchers
+
+- (void) beEmpty;
+
+@end
@@ -0,0 +1,20 @@
+//
+// Licensed under the terms in License.txt
+//
+// Copyright 2010 Allen Ding. All rights reserved.
+//
+
+#import "KiwiConfiguration.h"
+#import "KWMatcher.h"
+
+@interface KWBeIdenticalToMatcher : KWMatcher {
+@private
+ id otherSubject;
+}
+
+#pragma mark -
+#pragma mark Configuring Matchers
+
+- (void) beIdenticalTo:(id)anObject;
+
+@end
@@ -0,0 +1,20 @@
+//
+// Licensed under the terms in License.txt
+//
+// Copyright 2010 Allen Ding. All rights reserved.
+//
+
+#import "KiwiConfiguration.h"
+#import "KWMatcher.h"
+
+@interface KWBeKindOfClassMatcher : KWMatcher {
+@private
+ Class targetClass;
+}
+
+#pragma mark -
+#pragma mark Configuring Matchers
+
+- (void) beKindOfClass:(Class)aClass;
+
+@end
@@ -0,0 +1,20 @@
+//
+// Licensed under the terms in License.txt
+//
+// Copyright 2010 Allen Ding. All rights reserved.
+//
+
+#import "KiwiConfiguration.h"
+#import "KWMatcher.h"
+
+@interface KWBeMemberOfClassMatcher : KWMatcher {
+@private
+ Class targetClass;
+}
+
+#pragma mark -
+#pragma mark Configuring Matchers
+
+- (void) beMemberOfClass:(Class)aClass;
+
+@end
@@ -0,0 +1,16 @@
+//
+// KWBeNilMatcher.h
+// iOSFalconCore
+//
+// Created by Luke Redpath on 14/01/2011.
+// Copyright 2011 LJR Software Limited. All rights reserved.
+//
+
+#import <Foundation/Foundation.h>
+#import "KWMatcher.h"
+
+@interface KWBeNilMatcher : KWMatcher {
+
+}
+- (void) beNil;
+@end
@@ -0,0 +1,16 @@
+//
+// KWBeNotNilMatcher.h
+// Kiwi
+//
+// Created by Luke Redpath on 17/01/2011.
+// Copyright 2011 Allen Ding. All rights reserved.
+//
+
+#import <Foundation/Foundation.h>
+#import "KWMatcher.h"
+
+@interface KWBeNonNilMatcher : KWMatcher {
+
+}
+- (void) beNonNil;
+@end
@@ -0,0 +1,26 @@
+//
+// Licensed under the terms in License.txt
+//
+// Copyright 2010 Allen Ding. All rights reserved.
+//
+
+#import "KiwiConfiguration.h"
+#import "KWMatcher.h"
+
+@interface KWBeTrueMatcher : KWMatcher {
+@private
+ BOOL expectedValue;
+}
+
+#pragma mark -
+#pragma mark Configuring Matchers
+
+- (void) beTrue;
+
+- (void) beFalse;
+
+- (void) beYes;
+
+- (void) beNo;
+
+@end
Oops, something went wrong.

0 comments on commit eae183e

Please sign in to comment.