Created
January 11, 2017 03:04
-
-
Save InfoSec812/7f0be0c307fcf10ddd1f578c06a2873b to your computer and use it in GitHub Desktop.
JaCoCo Groovy Madness
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
| /** | |
| * A {@link GroovyVerticle} which handles status requests | |
| */ | |
| class Status extends GroovyVerticle { | |
| // JaCoCo Coverage report shows 3 of 6 branches missed on this logging definition!!!! | |
| static final LOG = LoggerFactory.getLogger(Status.class.canonicalName) | |
| static final CACHE_INTERVAL = 30 * 60 | |
| static final LinkedHashMap<String, Serializable> FAILED_STATE = [ | |
| ok: false, | |
| status: 'One or more dependencies are in a failed state' | |
| ] | |
| static final DOUBLE_PLUS_GOOD = [ok: true, status: 'Double plus good'] | |
| // SNIP . . . | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment