Adds cocoapods for libraries.
Adds OCMockito and OCHamcrest libs.
This commit is contained in:
40
iOS/Pods/OCHamcrest/Source/Library/Text/HCStringEndsWith.h
generated
Normal file
40
iOS/Pods/OCHamcrest/Source/Library/Text/HCStringEndsWith.h
generated
Normal file
@@ -0,0 +1,40 @@
|
||||
// OCHamcrest by Jon Reid, https://qualitycoding.org/
|
||||
// Copyright 2019 hamcrest.org. See LICENSE.txt
|
||||
|
||||
#import <OCHamcrest/HCSubstringMatcher.h>
|
||||
|
||||
|
||||
NS_ASSUME_NONNULL_BEGIN
|
||||
|
||||
/*!
|
||||
* @abstract Tests if string ends with a substring.
|
||||
*/
|
||||
@interface HCStringEndsWith : HCSubstringMatcher
|
||||
@end
|
||||
|
||||
|
||||
FOUNDATION_EXPORT id HC_endsWith(NSString *suffix);
|
||||
|
||||
#ifndef HC_DISABLE_SHORT_SYNTAX
|
||||
/*!
|
||||
* @abstract Creates a matcher that matches when the examined object is a string that ends with the
|
||||
* specified string.
|
||||
* @param suffix The substring that the returned matcher will expect at the end of any examined
|
||||
* string. (Must not be <code>nil</code>.)
|
||||
* @discussion The matcher invokes <code>-hasSuffix:</code> on the examined object, passing the
|
||||
* specified <em>suffix</em>.
|
||||
*
|
||||
* <b>Example</b><br />
|
||||
* <pre>assertThat(\@"myStringOfNote", endsWith(\@"Note"))</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_endsWith instead.
|
||||
*/
|
||||
static inline id endsWith(NSString *suffix)
|
||||
{
|
||||
return HC_endsWith(suffix);
|
||||
}
|
||||
#endif
|
||||
|
||||
NS_ASSUME_NONNULL_END
|
||||
Reference in New Issue
Block a user