mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-08-29 09:01:05 +00:00
38 lines
887 B
Objective-C
38 lines
887 B
Objective-C
//
|
|
// OCHamcrest - HCIsEmptyCollection.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/HCHasCount.h>
|
|
|
|
|
|
@interface HCIsEmptyCollection : HCHasCount
|
|
|
|
+ (instancetype)isEmptyCollection;
|
|
- (instancetype)init;
|
|
|
|
@end
|
|
|
|
|
|
OBJC_EXPORT __attribute__((deprecated)) id<HCMatcher> HC_empty(void);
|
|
OBJC_EXPORT id<HCMatcher> HC_isEmpty(void);
|
|
|
|
/**
|
|
Matches empty collection.
|
|
|
|
This matcher invokes @c -count on the evaluated object to determine if the number of elements it
|
|
contains is zero.
|
|
|
|
(In the event of a name clash, don't \#define @c HC_SHORTHAND and use the synonym
|
|
@c HC_isEmpty instead.)
|
|
|
|
@ingroup collection_matchers
|
|
*/
|
|
#ifdef HC_SHORTHAND
|
|
#define isEmpty() HC_isEmpty()
|
|
#endif
|