Adds cocoapods for libraries.
Adds OCMockito and OCHamcrest libs.
This commit is contained in:
47
iOS/Pods/OCHamcrest/Source/Library/Logical/HCIsAnything.m
generated
Normal file
47
iOS/Pods/OCHamcrest/Source/Library/Logical/HCIsAnything.m
generated
Normal file
@@ -0,0 +1,47 @@
|
||||
// OCHamcrest by Jon Reid, https://qualitycoding.org/
|
||||
// Copyright 2019 hamcrest.org. See LICENSE.txt
|
||||
|
||||
#import "HCIsAnything.h"
|
||||
|
||||
|
||||
@implementation HCIsAnything
|
||||
{
|
||||
NSString *_description;
|
||||
}
|
||||
|
||||
- (instancetype)init
|
||||
{
|
||||
self = [self initWithDescription:@"ANYTHING"];
|
||||
return self;
|
||||
}
|
||||
|
||||
- (instancetype)initWithDescription:(NSString *)description
|
||||
{
|
||||
self = [super init];
|
||||
if (self)
|
||||
_description = [description copy];
|
||||
return self;
|
||||
}
|
||||
|
||||
- (BOOL)matches:(nullable id)item
|
||||
{
|
||||
return YES;
|
||||
}
|
||||
|
||||
- (void)describeTo:(id <HCDescription>)aDescription
|
||||
{
|
||||
[aDescription appendText:_description];
|
||||
}
|
||||
|
||||
@end
|
||||
|
||||
|
||||
id HC_anything()
|
||||
{
|
||||
return [[HCIsAnything alloc] init];
|
||||
}
|
||||
|
||||
id HC_anythingWithDescription(NSString *description)
|
||||
{
|
||||
return [[HCIsAnything alloc] initWithDescription:description];
|
||||
}
|
||||
Reference in New Issue
Block a user