forked from pmougin/F-Script
-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathKTestManager.h
78 lines (65 loc) · 2.65 KB
/
KTestManager.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
/* KTestManager.h Copyright (c) 2001-2009 Philippe Mougin. */
/* This software is open source. See the license. */
#import <Foundation/Foundation.h>
#import "FSArray.h"
@class FSBlock;
@class FSBoolean;
@interface KTestManager : NSObject
{
NSMutableArray *names; // an array of NSString objects
NSMutableArray *times; // an array of Number objects
NSMutableArray *results; // an array of Boolean objects
NSMutableArray *comments; // an array of NSMutableString objects
NSString *currentCategory;
NSDate *startDate;
BOOL shouldLog;
NSInteger assertCount;
}
-(void) addComment:(NSString *)comment;
-(void) assert:(BOOL)b;
-(void) assertError:(FSBlock *)b;
-(void) dealloc;
-(void) finish;
- (id)init;
-(void) setShouldLog:(BOOL)should;
-(void) startCategory:(NSString *)categoryName;
-(void) startTest:(NSString *)testName;
@end
@interface KTestManager(KTestSpecificTests)
- (id *) idPointer ;
- (Class *) ClassPointer ;
- (char *) charPointer ;
- (signed char *) signedCharPointer ;
- (_Bool *) _BoolPointer ;
- (int *) intPointer ;
- (short *) shortPointer ;
- (long *) longPointer ;
- (unsigned char *) unsignedCharPointer ;
- (unsigned int *) unsignedIntPointer ;
- (unsigned short *) unsignedShortPointer ;
- (unsigned long *) unsignedLongPointer ;
- (float *) floatPointer ;
- (double *) doublePointer ;
- (long long *) longLongPointer ;
- (unsigned long long *) unsignedLongLongPointer ;
- (char **) charPointerPointer ;
- (SEL *) SELPointer ;
- (NSRange *) rangePointer ;
- (NSPoint *) pointPointer ;
- (NSSize *) sizePointer ;
- (CGPoint *) CGPointPointer ;
- (CGSize *) CGSizePointer ;
- (CGRect *) CGRectPointer ;
- (int **) intPointerPointer ;
- (void *) voidPointer ;
- (int *) staticIntPointer;
- (CGPoint) CGPointMapping:(CGPoint) a;
- (CGSize) CGSizeMapping:(CGSize) a;
- (CGRect) CGRectMapping:(CGRect) a;
- (FSArray *) duplicateUsingFastEnemeration:(NSArray *)array;
-(unsigned int) getUINT_MAX;
-(BOOL) runsIn64BitsMode;
-(int) sizeofId;
-(BOOL) testFSNSDistantObjectClassOrMetaclass:(id)p;
-(void) testMethodMappingWithFScriptObject:(id)fscriptObject;
@end