This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| typedef NSDate* (*AlignMsgSendFunction)( id, SEL, BOOL, NSDate*, NSCalendar* ); | |
| AlignMsgSendFunction alignFunction = (AlignMsgSendFunction)objc_msgSend; | |
| NSDate* result_ = alignFunction( [ NSDate class ] | |
| , selector_ | |
| , alignToFuture_ | |
| , date_ | |
| , self ); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| static char ownershipsKey; // one for all objects | |
| @implementation NSObject (Ownerships) | |
| //should not autorelease returned value | |
| - (NSMutableArray *)lazyOwnerships | |
| { | |
| NSMutableArray *result = objc_getAssociatedObject(self, &ownershipsKey); | |
| if (!result) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #if !defined(MAX) | |
| #define MAX(A,B) ((A) > (B) ? (A) : (B)) | |
| #endif |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| OSX-C07GR028DJD1:Project-iOS dodikk$ gcovr ~/Library/Developer/Xcode/DerivedData/UrlSessionOperationTest-edvqgflcedczawavcbxwhzmwumvp/ | |
| ------------------------------------------------------------------------------ | |
| File Lines Exec Cover Missing | |
| ------------------------------------------------------------------------------ | |
| /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator7.0.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CGGeometry.h | |
| 5 3 60% 278-280 | |
| /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator7.0.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSRange.h | |
| 3 0 0% 17-18,21 | |
| /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator7.0.sdk/System/Library/Frameworks |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| -(IBAction)helpButtonTapped | |
| { | |
| [ self hideAllPopovers ]; | |
| __weak SDHomeViewController* weakSelf = self; | |
| SDHelpReportType reportType = static_cast<SDHelpReportType>( self->_chartController.state.chartType ); | |
| JFFPerformSegueCallback prepareForSegue_ =^void(UIStoryboardSegue* segue_) | |
| { | |
| SDHelpViewController* helpVC_ = objc_member_of_cast<SDHelpViewController>(segue_.destinationViewController); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| @interface ViewController : NSObject | |
| <BMLazy> | |
| @property (nonatomic, strong, bm_assign_once) NSString *stubObject; | |
| @end | |
| -(void)onSomeEvent |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| @interface BMXyz | |
| @property ( nonatomic, readwrite ) NSString* writeOnceStub; | |
| @end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| @interface BMXyz | |
| @property ( nonatomic, readwrite, bm_final ) NSString* writeOnceStub; | |
| @end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| -(CGFloat)tableView:(UITableView *)tableView heightForRowAtIndexPath:(NSIndexPath *)indexPath | |
| { | |
| return -1; | |
| } | |
| -(CGFloat)tableView:(UITableView *)tableView heightForHeaderInSection:(NSInteger)section | |
| { | |
| return -1; | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| -(void)testLevelIsStoredAfterSuccessfullFetch | |
| { | |
| __block SCLevelResponse* receivedResponse = nil; | |
| __block NSError* receivedError = nil; | |
| SCItemsFileManagerCallbacks* callbacks = [ SCItemsFileManagerCallbacks new ]; | |
| { | |
| callbacks.onLevelLoadedBlock = ^void( SCLevelResponse* response, NSError* error ) | |
| { | |
| receivedResponse = response; |