Adds cocoapods for libraries.
Adds OCMockito and OCHamcrest libs.
This commit is contained in:
45
iOS/Pods/OCHamcrest/Source/Library/Object/HCHasDescription.h
generated
Normal file
45
iOS/Pods/OCHamcrest/Source/Library/Object/HCHasDescription.h
generated
Normal file
@@ -0,0 +1,45 @@
|
||||
// OCHamcrest by Jon Reid, https://qualitycoding.org/
|
||||
// Copyright 2019 hamcrest.org. See LICENSE.txt
|
||||
|
||||
#import <OCHamcrest/HCInvocationMatcher.h>
|
||||
|
||||
|
||||
NS_ASSUME_NONNULL_BEGIN
|
||||
|
||||
/*!
|
||||
* @abstract Matches objects whose description satisfies a nested matcher.
|
||||
*/
|
||||
@interface HCHasDescription : HCInvocationMatcher
|
||||
|
||||
- (instancetype)initWithDescription:(id <HCMatcher>)descriptionMatcher NS_DESIGNATED_INITIALIZER;
|
||||
- (instancetype)initWithInvocation:(NSInvocation *)anInvocation matching:(id <HCMatcher>)aMatcher NS_UNAVAILABLE;
|
||||
|
||||
@end
|
||||
|
||||
|
||||
FOUNDATION_EXPORT id HC_hasDescription(id descriptionMatcher);
|
||||
|
||||
#ifndef HC_DISABLE_SHORT_SYNTAX
|
||||
/*!
|
||||
* @abstract Creates a matcher that matches when the examined object's <code>-description</code>
|
||||
* satisfies the specified matcher.
|
||||
* @param descriptionMatcher The matcher used to verify the description result, or an expected value
|
||||
* for <em>equalTo</em> matching.
|
||||
* @discussion If <em>descriptionMatcher</em> is not a matcher, it is implicitly wrapped in
|
||||
* an <em>equalTo</em> matcher to check for equality.
|
||||
*
|
||||
* <b>Examples</b><br />
|
||||
* <pre>assertThat(myObject, hasDescription(equalTo(\@"foo"))</pre>
|
||||
* <pre>assertThat(myObject, hasDescription(\@"foo"))</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_hasDescription instead.
|
||||
*/
|
||||
static inline id hasDescription(id descriptionMatcher)
|
||||
{
|
||||
return HC_hasDescription(descriptionMatcher);
|
||||
}
|
||||
#endif
|
||||
|
||||
NS_ASSUME_NONNULL_END
|
||||
Reference in New Issue
Block a user