Adds cocoapods for libraries.
Adds OCMockito and OCHamcrest libs.
This commit is contained in:
28
iOS/Pods/OCHamcrest/Source/Library/Object/HCHasDescription.m
generated
Normal file
28
iOS/Pods/OCHamcrest/Source/Library/Object/HCHasDescription.m
generated
Normal file
@@ -0,0 +1,28 @@
|
||||
// OCHamcrest by Jon Reid, https://qualitycoding.org/
|
||||
// Copyright 2019 hamcrest.org. See LICENSE.txt
|
||||
|
||||
#import "HCHasDescription.h"
|
||||
|
||||
#import "HCWrapInMatcher.h"
|
||||
#import "NSInvocation+OCHamcrest.h"
|
||||
|
||||
|
||||
@implementation HCHasDescription
|
||||
|
||||
- (instancetype)initWithDescription:(id <HCMatcher>)descriptionMatcher
|
||||
{
|
||||
NSInvocation *anInvocation = [NSInvocation och_invocationOnObjectOfType:[NSObject class]
|
||||
selector:@selector(description)];
|
||||
self = [super initWithInvocation:anInvocation matching:descriptionMatcher];
|
||||
if (self)
|
||||
self.shortMismatchDescription = YES;
|
||||
return self;
|
||||
}
|
||||
|
||||
@end
|
||||
|
||||
|
||||
id HC_hasDescription(id descriptionMatcher)
|
||||
{
|
||||
return [[HCHasDescription alloc] initWithDescription:HCWrapInMatcher(descriptionMatcher)];
|
||||
}
|
||||
Reference in New Issue
Block a user