Libraryless. Click here for Pure Java version (2508L/16K).
svoid addTestToScorer(Scorer scorer, Runnable test) { if (test == null) ret; try { test.run(); scorer.addOK(); } catch print e { scorer.addError(); } }
download show line numbers debug dex old transpilations
Travelled to 6 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1025755 |
Snippet name: | addTestToScorer - run Runnable, add OK to scorer if no exception |
Eternal ID of this version: | #1025755/1 |
Text MD5: | 21085f1fbb4cb7bd4bf9a213a7b2d74a |
Transpilation MD5: | 67bf53d57340d8fdbf3306d09c265ae2 |
Author: | stefan |
Category: | javax |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2019-10-18 12:05:20 |
Source code size: | 179 bytes / 9 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 198 / 302 |
Referenced in: | [show references] |