Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

46 lines (35 sloc) 1.567 kb
//
// Licensed under the terms in License.txt
//
// Copyright 2010 Allen Ding. All rights reserved.
//
#import "KiwiConfiguration.h"
#import "KWBlock.h"
@class KWCallSite;
@class KWExample;
@class KWExampleSuite;
@interface KWExampleGroupBuilder : NSObject {
@private
NSMutableArray *contextNodeStack;
NSMutableSet *suites;
}
#pragma mark -
#pragma mark Initializing
+ (id)sharedExampleGroupBuilder;
#pragma mark -
#pragma mark Building Example Groups
@property (nonatomic, readonly) BOOL isBuildingExampleGroup;
@property (nonatomic, retain, readonly) KWExampleSuite *exampleSuite;
@property (nonatomic, retain) KWExample *currentExample;
- (KWExampleSuite *)buildExampleGroups:(void (^)(void))buildingBlock;
- (KWExample *)currentExample;
- (void)pushContextNodeWithCallSite:(KWCallSite *)aCallSite description:(NSString *)aDescription;
- (void)popContextNode;
- (void)setRegisterMatchersNodeWithCallSite:(KWCallSite *)aCallSite namespacePrefix:(NSString *)aNamespacePrefix;
- (void)setBeforeAllNodeWithCallSite:(KWCallSite *)aCallSite block:(KWVoidBlock)aBlock;
- (void)setAfterAllNodeWithCallSite:(KWCallSite *)aCallSite block:(KWVoidBlock)aBlock;
- (void)setBeforeEachNodeWithCallSite:(KWCallSite *)aCallSite block:(KWVoidBlock)aBlock;
- (void)setAfterEachNodeWithCallSite:(KWCallSite *)aCallSite block:(KWVoidBlock)aBlock;
- (void)addItNodeWithCallSite:(KWCallSite *)aCallSite description:(NSString *)aDescription block:(KWVoidBlock)aBlock;
- (void)addPendingNodeWithCallSite:(KWCallSite *)aCallSite description:(NSString *)aDescription;
@end
Jump to Line
Something went wrong with that request. Please try again.