Files
MonsterCards/Pods/OCMockito/Source/OCMockito/Helpers/ArgumentGetters/MKTUnsignedCharArgumentGetter.m
Tom Hicks bab5a55c3b Adds cocoapods for libraries.
Adds OCMockito and OCHamcrest libs.
2020-09-05 22:06:51 -07:00

22 lines
578 B
Objective-C

// OCMockito by Jon Reid, https://qualitycoding.org/
// Copyright 2020 Quality Coding, Inc. See LICENSE.txt
#import "MKTUnsignedCharArgumentGetter.h"
@implementation MKTUnsignedCharArgumentGetter
- (instancetype)initWithSuccessor:(nullable MKTArgumentGetter *)successor
{
self = [super initWithType:@encode(unsigned char) successor:successor];
return self;
}
- (id)getArgumentAtIndex:(NSInteger)idx ofType:(char const *)type onInvocation:(NSInvocation *)invocation
{
unsigned char arg;
[invocation getArgument:&arg atIndex:idx];
return @(arg);
}
@end