/
GBObjectsAssertor.h
40 lines (31 loc) · 2.24 KB
/
GBObjectsAssertor.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
//
// GBObjectsAssertor.h
// appledoc
//
// Created by Tomaz Kragelj on 27.7.10.
// Copyright (C) 2010, Gentle Bytes. All rights reserved.
//
#import <Foundation/Foundation.h>
@class GBIvarData;
@class GBMethodData;
@class GBCommentParagraph;
#define GBDecorationTypeNone 9999
#define GBNULL [NSNull null]
// Need to derive from GHTestCase otherwise GH macros used wouldn't work...
@interface GBObjectsAssertor : GHTestCase
- (void)assertIvar:(GBIvarData *)ivar matches:(NSString *)firstType,... NS_REQUIRES_NIL_TERMINATION;
- (void)assertMethod:(GBMethodData *)method matchesInstanceComponents:(NSString *)firstItem,... NS_REQUIRES_NIL_TERMINATION;
- (void)assertMethod:(GBMethodData *)method matchesClassComponents:(NSString *)firstItem,... NS_REQUIRES_NIL_TERMINATION;
- (void)assertMethod:(GBMethodData *)method matchesPropertyComponents:(NSString *)firstItem,... NS_REQUIRES_NIL_TERMINATION;
- (void)assertMethod:(GBMethodData *)method matchesType:(GBMethodType)type start:(NSString *)first components:(va_list)args;
- (void)assertFormattedComponents:(NSArray *)components match:(NSString *)first,... NS_REQUIRES_NIL_TERMINATION;
- (void)assertParagraph:(GBCommentParagraph *)paragraph containsItems:(Class)first,... NS_REQUIRES_NIL_TERMINATION;
- (void)assertParagraph:(GBCommentParagraph *)paragraph containsLinks:(NSString *)first,... NS_REQUIRES_NIL_TERMINATION;
- (void)assertParagraph:(GBCommentParagraph *)paragraph containsTexts:(NSString *)first,... NS_REQUIRES_NIL_TERMINATION;
- (void)assertParagraph:(GBCommentParagraph *)paragraph containsDescriptions:(NSString *)first,... NS_REQUIRES_NIL_TERMINATION;
- (void)assertList:(GBParagraphListItem *)list isOrdered:(BOOL)ordered containsParagraphs:(NSString *)first,... NS_REQUIRES_NIL_TERMINATION;
- (void)assertList:(GBParagraphListItem *)list describesHierarchy:(NSString *)first,... NS_REQUIRES_NIL_TERMINATION;
- (void)assertDecoratedItem:(GBParagraphItem *)item describesHierarchy:(Class)first,... NS_REQUIRES_NIL_TERMINATION;
- (void)assertLinkItem:(GBParagraphLinkItem *)item hasLink:(NSString *)link context:(id)context member:(id)member local:(BOOL)local;
- (void)assertArgument:(GBCommentArgument *)argument hasName:(NSString *)name descriptions:(NSString *)first,... NS_REQUIRES_NIL_TERMINATION;
@end