mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-08-29 09:01:05 +00:00
64 lines
1.6 KiB
Objective-C
64 lines
1.6 KiB
Objective-C
//
|
|
// OCHamcrest - HCIsAnything.h
|
|
// Copyright 2013 hamcrest.org. See LICENSE.txt
|
|
//
|
|
// Created by: Jon Reid, http://qualitycoding.org/
|
|
// Docs: http://hamcrest.github.com/OCHamcrest/
|
|
// Source: https://github.com/hamcrest/OCHamcrest
|
|
//
|
|
|
|
#import <OCHamcrestIOS/HCBaseMatcher.h>
|
|
|
|
|
|
@interface HCIsAnything : HCBaseMatcher
|
|
{
|
|
NSString *description;
|
|
}
|
|
|
|
+ (instancetype)isAnything;
|
|
+ (instancetype)isAnythingWithDescription:(NSString *)aDescription;
|
|
|
|
- (instancetype)init;
|
|
- (instancetype)initWithDescription:(NSString *)aDescription;
|
|
|
|
@end
|
|
|
|
|
|
OBJC_EXPORT id<HCMatcher> HC_anything(void);
|
|
|
|
/**
|
|
Matches anything.
|
|
|
|
This matcher always evaluates to @c YES. Specify this in composite matchers when the value of a
|
|
particular element is unimportant.
|
|
|
|
(In the event of a name clash, don't \#define @c HC_SHORTHAND and use the synonym
|
|
@c HC_anything instead.)
|
|
|
|
@ingroup logical_matchers
|
|
*/
|
|
#ifdef HC_SHORTHAND
|
|
#define anything() HC_anything()
|
|
#endif
|
|
|
|
|
|
OBJC_EXPORT id<HCMatcher> HC_anythingWithDescription(NSString *aDescription);
|
|
|
|
/**
|
|
anythingWithDescription(description) -
|
|
Matches anything.
|
|
|
|
@param description A string used to describe this matcher.
|
|
|
|
This matcher always evaluates to @c YES. Specify this in collection matchers when the value of a
|
|
particular element in a collection is unimportant.
|
|
|
|
(In the event of a name clash, don't \#define @c HC_SHORTHAND and use the synonym
|
|
@c HC_anything instead.)
|
|
|
|
@ingroup logical_matchers
|
|
*/
|
|
#ifdef HC_SHORTHAND
|
|
#define anythingWithDescription HC_anythingWithDescription
|
|
#endif
|