-
Notifications
You must be signed in to change notification settings - Fork 1
TestKit
##Summary To Avoid 'NSLog', Use some log methods as 'debug:.. , errorRuntime…, notImplResuiredMethod.., needDelegate' Those Methods help you app have a uniformed log And Warnings.
##Normal Debugging Using 'NSLog' too much is not pretty. Instead 'NSLog', You can use these methods to debug. (Just It was used to check temporally)
Print text
Print Object with key
Checking if method is used.
##Error handelling:Just loging You should pass constant 'MINTKIT_DEBUG_METHOD' to 'methodName'. It pass your class to TestKit.
RunTime Error
+ (void) errorRuntime:(MINTKIT_DEBUG_METHOD_TYPE) methodName code:(NSString*) code reason:(NSString*) reason;
+ (void) errorRuntime:(MINTKIT_DEBUG_METHOD_TYPE) methodName code:(NSString*) code reason:(NSString*) reason error:(NSError*) errorObj;
[TestKit errorRuntime:MINTKIT_DEBUG_METHOD];
You could use to warn on class using delegate or Child Class. Warning help you to implement class and have a missing functions.
A required method is not implemented by supperclass or subclass. Stop app.
A optional method is not implemented by supperclass or subclass. Just warning.
+ (void) methodisDeprecated: (MINTKIT_DEBUG_METHOD_TYPE) methodName moveTo:(NSString*) newMethodName;
Called method is deprecated. Just warning.
No use this method
Version 0.0.1 Build 61 Release 1