-
Notifications
You must be signed in to change notification settings - Fork 39
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
Jens Meder
committed
Nov 26, 2015
1 parent
0a26641
commit 43ab656
Showing
179 changed files
with
5,197 additions
and
5 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
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
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Binary file not shown.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
17 changes: 17 additions & 0 deletions
17
Libraries/Kiwi/Kiwi.framework/Versions/Current/Headers/KWAfterAllNode.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,17 @@ | ||
// | ||
// 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 - Initializing | ||
|
||
+ (id)afterAllNodeWithCallSite:(KWCallSite *)aCallSite block:(void (^)(void))block; | ||
|
||
@end |
17 changes: 17 additions & 0 deletions
17
Libraries/Kiwi/Kiwi.framework/Versions/Current/Headers/KWAfterEachNode.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,17 @@ | ||
// | ||
// 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 - Initializing | ||
|
||
+ (id)afterEachNodeWithCallSite:(KWCallSite *)aCallSite block:(void (^)(void))block; | ||
|
||
@end |
17 changes: 17 additions & 0 deletions
17
Libraries/Kiwi/Kiwi.framework/Versions/Current/Headers/KWAny.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,17 @@ | ||
// | ||
// Licensed under the terms in License.txt | ||
// | ||
// Copyright 2010 Allen Ding. All rights reserved. | ||
// | ||
|
||
#import "KiwiConfiguration.h" | ||
|
||
// KWAny exists to determine arguments in a message pattern that should | ||
// match any value. Used for pointers as well as for scalar values. | ||
@interface KWAny : NSObject | ||
|
||
#pragma mark - Initializing | ||
|
||
+ (id)any; | ||
|
||
@end |
35 changes: 35 additions & 0 deletions
35
Libraries/Kiwi/Kiwi.framework/Versions/Current/Headers/KWAsyncVerifier.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,35 @@ | ||
// | ||
// 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 | ||
|
||
@property (nonatomic, assign) NSTimeInterval timeout; | ||
@property (nonatomic, assign) BOOL shouldWait; | ||
|
||
+ (id)asyncVerifierWithExpectationType:(KWExpectationType)anExpectationType callSite:(KWCallSite *)aCallSite matcherFactory:(KWMatcherFactory *)aMatcherFactory reporter:(id<KWReporting>)aReporter probeTimeout:(NSTimeInterval)probeTimeout shouldWait:(BOOL)shouldWait; | ||
- (void)verifyWithProbe:(KWAsyncMatcherProbe *)aProbe; | ||
|
||
@end | ||
|
||
|
||
@interface KWAsyncMatcherProbe : NSObject <KWProbe> | ||
|
||
@property (nonatomic, assign) BOOL matchResult; | ||
@property (nonatomic, readonly) id<KWMatching> matcher; | ||
|
||
- (id)initWithMatcher:(id<KWMatching>)aMatcher; | ||
|
||
@end |
18 changes: 18 additions & 0 deletions
18
Libraries/Kiwi/Kiwi.framework/Versions/Current/Headers/KWBeBetweenMatcher.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,18 @@ | ||
// | ||
// Licensed under the terms in License.txt | ||
// | ||
// Copyright 2010 Allen Ding. All rights reserved. | ||
// | ||
|
||
#import "KiwiConfiguration.h" | ||
#import "KWMatcher.h" | ||
|
||
@interface KWBeBetweenMatcher : KWMatcher | ||
|
||
#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 |
16 changes: 16 additions & 0 deletions
16
Libraries/Kiwi/Kiwi.framework/Versions/Current/Headers/KWBeEmptyMatcher.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,16 @@ | ||
// | ||
// Licensed under the terms in License.txt | ||
// | ||
// Copyright 2010 Allen Ding. All rights reserved. | ||
// | ||
|
||
#import "KiwiConfiguration.h" | ||
#import "KWMatcher.h" | ||
|
||
@interface KWBeEmptyMatcher : KWMatcher | ||
|
||
#pragma mark - Configuring Matchers | ||
|
||
- (void)beEmpty; | ||
|
||
@end |
16 changes: 16 additions & 0 deletions
16
Libraries/Kiwi/Kiwi.framework/Versions/Current/Headers/KWBeIdenticalToMatcher.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,16 @@ | ||
// | ||
// Licensed under the terms in License.txt | ||
// | ||
// Copyright 2010 Allen Ding. All rights reserved. | ||
// | ||
|
||
#import "KiwiConfiguration.h" | ||
#import "KWMatcher.h" | ||
|
||
@interface KWBeIdenticalToMatcher : KWMatcher | ||
|
||
#pragma mark - Configuring Matchers | ||
|
||
- (void)beIdenticalTo:(id)anObject; | ||
|
||
@end |
16 changes: 16 additions & 0 deletions
16
Libraries/Kiwi/Kiwi.framework/Versions/Current/Headers/KWBeKindOfClassMatcher.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,16 @@ | ||
// | ||
// Licensed under the terms in License.txt | ||
// | ||
// Copyright 2010 Allen Ding. All rights reserved. | ||
// | ||
|
||
#import "KiwiConfiguration.h" | ||
#import "KWMatcher.h" | ||
|
||
@interface KWBeKindOfClassMatcher : KWMatcher | ||
|
||
#pragma mark - Configuring Matchers | ||
|
||
- (void)beKindOfClass:(Class)aClass; | ||
|
||
@end |
16 changes: 16 additions & 0 deletions
16
Libraries/Kiwi/Kiwi.framework/Versions/Current/Headers/KWBeMemberOfClassMatcher.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,16 @@ | ||
// | ||
// Licensed under the terms in License.txt | ||
// | ||
// Copyright 2010 Allen Ding. All rights reserved. | ||
// | ||
|
||
#import "KiwiConfiguration.h" | ||
#import "KWMatcher.h" | ||
|
||
@interface KWBeMemberOfClassMatcher : KWMatcher | ||
|
||
#pragma mark - Configuring Matchers | ||
|
||
- (void)beMemberOfClass:(Class)aClass; | ||
|
||
@end |
16 changes: 16 additions & 0 deletions
16
Libraries/Kiwi/Kiwi.framework/Versions/Current/Headers/KWBeSubclassOfClassMatcher.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,16 @@ | ||
// | ||
// Licensed under the terms in License.txt | ||
// | ||
// Copyright 2010 Allen Ding. All rights reserved. | ||
// | ||
|
||
#import "KiwiConfiguration.h" | ||
#import "KWMatcher.h" | ||
|
||
@interface KWBeSubclassOfClassMatcher : KWMatcher | ||
|
||
#pragma mark - Configuring Matchers | ||
|
||
- (void)beSubclassOfClass:(Class)aClass; | ||
|
||
@end |
19 changes: 19 additions & 0 deletions
19
Libraries/Kiwi/Kiwi.framework/Versions/Current/Headers/KWBeTrueMatcher.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,19 @@ | ||
// | ||
// Licensed under the terms in License.txt | ||
// | ||
// Copyright 2010 Allen Ding. All rights reserved. | ||
// | ||
|
||
#import "KiwiConfiguration.h" | ||
#import "KWMatcher.h" | ||
|
||
@interface KWBeTrueMatcher : KWMatcher | ||
|
||
#pragma mark - Configuring Matchers | ||
|
||
- (void)beTrue; | ||
- (void)beFalse; | ||
- (void)beYes; | ||
- (void)beNo; | ||
|
||
@end |
17 changes: 17 additions & 0 deletions
17
Libraries/Kiwi/Kiwi.framework/Versions/Current/Headers/KWBeWithinMatcher.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,17 @@ | ||
// | ||
// Licensed under the terms in License.txt | ||
// | ||
// Copyright 2010 Allen Ding. All rights reserved. | ||
// | ||
|
||
#import "KiwiConfiguration.h" | ||
#import "KWMatcher.h" | ||
|
||
@interface KWBeWithinMatcher : KWMatcher | ||
|
||
#pragma mark - Configuring Matchers | ||
|
||
- (void)beWithin:(id)aDistance of:(id)aValue; | ||
- (void)equal:(double)aValue withDelta:(double)aDelta; | ||
|
||
@end |
16 changes: 16 additions & 0 deletions
16
Libraries/Kiwi/Kiwi.framework/Versions/Current/Headers/KWBeZeroMatcher.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,16 @@ | ||
// | ||
// Licensed under the terms in License.txt | ||
// | ||
// Copyright 2010 Allen Ding. All rights reserved. | ||
// | ||
|
||
#import "KiwiConfiguration.h" | ||
#import "KWMatcher.h" | ||
|
||
@interface KWBeZeroMatcher : KWMatcher | ||
|
||
#pragma mark - Configuring Matchers | ||
|
||
- (void)beZero; | ||
|
||
@end |
17 changes: 17 additions & 0 deletions
17
Libraries/Kiwi/Kiwi.framework/Versions/Current/Headers/KWBeforeAllNode.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,17 @@ | ||
// | ||
// Licensed under the terms in License.txt | ||
// | ||
// Copyright 2010 Allen Ding. All rights reserved. | ||
// | ||
|
||
#import "KiwiConfiguration.h" | ||
#import "KWBlockNode.h" | ||
#import "KWExampleNode.h" | ||
|
||
@interface KWBeforeAllNode : KWBlockNode<KWExampleNode> | ||
|
||
#pragma mark - Initializing | ||
|
||
+ (id)beforeAllNodeWithCallSite:(KWCallSite *)aCallSite block:(void (^)(void))block; | ||
|
||
@end |
17 changes: 17 additions & 0 deletions
17
Libraries/Kiwi/Kiwi.framework/Versions/Current/Headers/KWBeforeEachNode.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,17 @@ | ||
// | ||
// Licensed under the terms in License.txt | ||
// | ||
// Copyright 2010 Allen Ding. All rights reserved. | ||
// | ||
|
||
#import "KiwiConfiguration.h" | ||
#import "KWBlockNode.h" | ||
#import "KWExampleNode.h" | ||
|
||
@interface KWBeforeEachNode : KWBlockNode<KWExampleNode> | ||
|
||
#pragma mark - Initializing | ||
|
||
+ (id)beforeEachNodeWithCallSite:(KWCallSite *)aCallSite block:(void (^)(void))block; | ||
|
||
@end |
25 changes: 25 additions & 0 deletions
25
Libraries/Kiwi/Kiwi.framework/Versions/Current/Headers/KWBlock.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,25 @@ | ||
// | ||
// Licensed under the terms in License.txt | ||
// | ||
// Copyright 2010 Allen Ding. All rights reserved. | ||
// | ||
|
||
#import "KiwiConfiguration.h" | ||
|
||
@interface KWBlock : NSObject | ||
|
||
#pragma mark - Initializing | ||
- (id)initWithBlock:(void (^)(void))block; | ||
|
||
+ (id)blockWithBlock:(void (^)(void))block; | ||
|
||
#pragma mark - Calling Blocks | ||
|
||
- (void)call; | ||
|
||
@end | ||
|
||
#pragma mark - Creating Blocks | ||
|
||
KWBlock *theBlock(void (^block)(void)); | ||
KWBlock *lambda(void (^block)(void)); |
34 changes: 34 additions & 0 deletions
34
Libraries/Kiwi/Kiwi.framework/Versions/Current/Headers/KWBlockNode.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,34 @@ | ||
// | ||
// Licensed under the terms in License.txt | ||
// | ||
// Copyright 2010 Allen Ding. All rights reserved. | ||
// | ||
|
||
#import "KiwiConfiguration.h" | ||
#import "KWBlock.h" | ||
|
||
@class KWCallSite; | ||
|
||
@interface KWBlockNode : NSObject | ||
|
||
#pragma mark - Initializing | ||
|
||
- (id)initWithCallSite:(KWCallSite *)aCallSite description:(NSString *)aDescription block:(void (^)(void))block; | ||
|
||
#pragma mark - Getting Call Sites | ||
|
||
@property (nonatomic, strong, readonly) KWCallSite *callSite; | ||
|
||
#pragma mark - Getting Descriptions | ||
|
||
@property (nonatomic, copy) NSString *description; | ||
|
||
#pragma mark - Getting Blocks | ||
|
||
@property (nonatomic, copy, readonly) void (^block)(void); | ||
|
||
#pragma mark - Performing blocks | ||
|
||
- (void)performBlock; | ||
|
||
@end |
Oops, something went wrong.