// OCHamcrest by Jon Reid, https://qualitycoding.org/ // Copyright 2019 hamcrest.org. See LICENSE.txt #import NS_ASSUME_NONNULL_BEGIN /*! * @abstract Is the value nil? */ @interface HCIsNil : HCBaseMatcher @end FOUNDATION_EXPORT id HC_nilValue(void); #ifndef HC_DISABLE_SHORT_SYNTAX /*! * @abstract Creates a matcher that matches when the examined object is nil. * @discussion * Example
*
assertThat(myObject, nilValue())
* * Name Clash
* In the event of a name clash, #define HC_DISABLE_SHORT_SYNTAX and use the synonym * HC_nilValue instead. */ static inline id nilValue(void) { return HC_nilValue(); } #endif FOUNDATION_EXPORT id HC_notNilValue(void); #ifndef HC_DISABLE_SHORT_SYNTAX /*! * @abstract Creates a matcher that matches when the examined object is not nil. * @discussion * Example
*
assertThat(myObject, notNilValue())
* * Name Clash
* In the event of a name clash, #define HC_DISABLE_SHORT_SYNTAX and use the synonym * HC_notNilValue instead. */ static inline id notNilValue(void) { return HC_notNilValue(); } #endif NS_ASSUME_NONNULL_END