Adds cocoapods for libraries.
Adds OCMockito and OCHamcrest libs.
This commit is contained in:
32
iOS/Pods/OCHamcrest/Source/Library/Object/HCIsNil.m
generated
Normal file
32
iOS/Pods/OCHamcrest/Source/Library/Object/HCIsNil.m
generated
Normal file
@@ -0,0 +1,32 @@
|
||||
// OCHamcrest by Jon Reid, https://qualitycoding.org/
|
||||
// Copyright 2019 hamcrest.org. See LICENSE.txt
|
||||
|
||||
#import "HCIsNil.h"
|
||||
|
||||
#import "HCIsNot.h"
|
||||
|
||||
|
||||
@implementation HCIsNil
|
||||
|
||||
- (BOOL)matches:(nullable id)item
|
||||
{
|
||||
return item == nil;
|
||||
}
|
||||
|
||||
- (void)describeTo:(id <HCDescription>)description
|
||||
{
|
||||
[description appendText:@"nil"];
|
||||
}
|
||||
|
||||
@end
|
||||
|
||||
|
||||
id HC_nilValue()
|
||||
{
|
||||
return [[HCIsNil alloc] init];
|
||||
}
|
||||
|
||||
id HC_notNilValue()
|
||||
{
|
||||
return HC_isNot([[HCIsNil alloc] init]);
|
||||
}
|
||||
Reference in New Issue
Block a user