// OCHamcrest by Jon Reid, https://qualitycoding.org/ // Copyright 2019 hamcrest.org. See LICENSE.txt #import NS_ASSUME_NONNULL_BEGIN /*! * @abstract Matches anything. */ @interface HCIsAnything : HCBaseMatcher - (instancetype)init; - (instancetype)initWithDescription:(NSString *)description NS_DESIGNATED_INITIALIZER; @end FOUNDATION_EXPORT id HC_anything(void); #ifndef HC_DISABLE_SHORT_SYNTAX /*! * @abstract Creates a matcher that always matches, regardless of the examined object. * @discussion * Name Clash
* In the event of a name clash, #define HC_DISABLE_SHORT_SYNTAX and use the synonym * HC_anything instead. */ static inline id anything(void) { return HC_anything(); } #endif FOUNDATION_EXPORT id HC_anythingWithDescription(NSString *description); #ifndef HC_DISABLE_SHORT_SYNTAX /*! * @abstract Creates a matcher that matches anything, regardless of the examined object, but * describes itself with the specified NSString. * @param description A meaningful string used to describe this matcher. * @discussion * Name Clash
* In the event of a name clash, #define HC_DISABLE_SHORT_SYNTAX and use the synonym * HC_anything instead. */ static inline id anythingWithDescription(NSString *description) { return HC_anythingWithDescription(description); } #endif NS_ASSUME_NONNULL_END