File tree Expand file tree Collapse file tree 3 files changed +4
-4
lines changed Expand file tree Collapse file tree 3 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -72,7 +72,7 @@ NS_ASSUME_NONNULL_END
72
72
73
73
@end
74
74
75
- @interface OPTLYLogger : NSObject
75
+ @interface OPTLYLoggerUtility : NSObject
76
76
/* *
77
77
* Utility method to check if a class conforms to the OPTLYLogger protocol
78
78
* This method uses compile and run time checks
Original file line number Diff line number Diff line change 23
23
NSString *const OPTLYLogLevelDebugTag = @" DEBUG" ;
24
24
NSString *const OPTLYLogLevelVerboseTag = @" VERBOSE" ;
25
25
26
- @implementation OPTLYLogger
26
+ @implementation OPTLYLoggerUtility
27
27
28
28
+ (BOOL )conformsToOPTLYLoggerProtocol : (Class )instanceClass
29
29
{
Original file line number Diff line number Diff line change @@ -36,11 +36,11 @@ - (void)tearDown {
36
36
- (void )testConformsToOPTLYLoggerProtocol
37
37
{
38
38
id <OPTLYLogger> logger = [NSObject new ];
39
- BOOL conformsToProtocol = [OPTLYLogger conformsToOPTLYLoggerProtocol: [logger class ]];
39
+ BOOL conformsToProtocol = [OPTLYLoggerUtility conformsToOPTLYLoggerProtocol: [logger class ]];
40
40
NSAssert (conformsToProtocol == FALSE , @" Object does not conform to protocol." );
41
41
42
42
logger = [OPTLYLoggerDefault new ];
43
- conformsToProtocol = [OPTLYLogger conformsToOPTLYLoggerProtocol: [logger class ]];
43
+ conformsToProtocol = [OPTLYLoggerUtility conformsToOPTLYLoggerProtocol: [logger class ]];
44
44
NSAssert (conformsToProtocol == TRUE , @" Object should conform to protocol." );
45
45
}
46
46
You can’t perform that action at this time.
0 commit comments