Adds cocoapods for libraries.
Adds OCMockito and OCHamcrest libs.
This commit is contained in:
42
iOS/Pods/OCHamcrest/Source/Library/Object/HCConformsToProtocol.h
generated
Normal file
42
iOS/Pods/OCHamcrest/Source/Library/Object/HCConformsToProtocol.h
generated
Normal file
@@ -0,0 +1,42 @@
|
||||
// OCHamcrest by Jon Reid, https://qualitycoding.org/
|
||||
// Copyright 2019 hamcrest.org. See LICENSE.txt
|
||||
// Contribution by Todd Farrell
|
||||
|
||||
#import <OCHamcrest/HCBaseMatcher.h>
|
||||
|
||||
|
||||
NS_ASSUME_NONNULL_BEGIN
|
||||
|
||||
/*!
|
||||
* @abstract Matches objects that conform to specified protocol.
|
||||
*/
|
||||
@interface HCConformsToProtocol : HCBaseMatcher
|
||||
|
||||
- (instancetype)initWithProtocol:(Protocol *)protocol NS_DESIGNATED_INITIALIZER;
|
||||
- (instancetype)init NS_UNAVAILABLE;
|
||||
|
||||
@end
|
||||
|
||||
|
||||
FOUNDATION_EXPORT id HC_conformsTo(Protocol *aProtocol);
|
||||
|
||||
#ifndef HC_DISABLE_SHORT_SYNTAX
|
||||
/*!
|
||||
* @abstract Creates a matcher that matches when the examined object conforms to the specified
|
||||
* protocol.
|
||||
* @param aProtocol The protocol to compare against as the expected protocol.
|
||||
* @discussion
|
||||
* <b>Example</b><br />
|
||||
* <pre>assertThat(myObject, conformsTo(\@protocol(NSCoding))</pre>
|
||||
*
|
||||
* <b>Name Clash</b><br />
|
||||
* In the event of a name clash, <code>#define HC_DISABLE_SHORT_SYNTAX</code> and use the synonym
|
||||
* HC_conformsTo instead.
|
||||
*/
|
||||
static inline id conformsTo(Protocol *aProtocol)
|
||||
{
|
||||
return HC_conformsTo(aProtocol);
|
||||
}
|
||||
#endif
|
||||
|
||||
NS_ASSUME_NONNULL_END
|
||||
Reference in New Issue
Block a user