Skip to content

Commit

Permalink
Exclude catch block from coveralls counting
Browse files Browse the repository at this point in the history
  • Loading branch information
ws233 committed Jul 6, 2015
1 parent 9832eef commit 6b68096
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions TesseractOCR/G8Tesseract.mm
Original file line number Diff line number Diff line change
Expand Up @@ -403,9 +403,11 @@ - (void)setImage:(UIImage *)image
@try {
_tesseract->SetImage(pix);
}
@catch (NSException *exception) { // LCOV_EXCL_LINE
NSLog(@"ERROR: Can't set image: %@", exception); // LCOV_EXCL_LINE
//LCOV_EXCL_START
@catch (NSException *exception) {
NSLog(@"ERROR: Can't set image: %@", exception);
}
//LCOV_EXCL_STOP
pixDestroy(&pix);

_image = image;
Expand Down Expand Up @@ -741,9 +743,11 @@ - (BOOL)recognize
returnCode = _tesseract->Recognize(_monitor);
self.recognized = YES;
}
@catch (NSException *exception) { // LCOV_EXCL_LINE
NSLog(@"Exception was raised while recognizing: %@", exception); // LCOV_EXCL_LINE
//LCOV_EXCL_START
@catch (NSException *exception) {
NSLog(@"Exception was raised while recognizing: %@", exception);
}
//LCOV_EXCL_STOP
return returnCode == 0 && self.recognized;
}

Expand Down

0 comments on commit 6b68096

Please sign in to comment.