22 lines
578 B
Objective-C
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
|