# ScriptMediator

Element | Missed Instructions | Cov. | Missed Branches | Cov. | Missed | Cxty | Missed | Lines | Missed | Methods
Total | 686 of 1,402 | 51% | 103 of 170 | 39% | 68 | 108 | 87 | 252 | 3 | 23
prepareExternalScript(MessageContext) |  | 31% |  | 19% | 29 | 32 | 43 | 74 | 0 | 1
invokeScript(MessageContext) |  | 22% |  | 36% | 10 | 16 | 9 | 19 | 0 | 1
mediate(MessageContext) |  | 31% |  | 35% | 9 | 11 | 8 | 20 | 0 | 1
processJSONPayload(MessageContext, ScriptMessageContext) |  | 45% |  | 50% | 4 | 6 | 8 | 22 | 0 | 1
initScriptEngine() |  | 89% |  | 90% | 2 | 11 | 2 | 31 | 0 | 1
getNewScriptEngine() |  | 28% |  | 25% | 2 | 3 | 3 | 6 | 0 | 1
initInlineScript() |  | 52% |  | 33% | 3 | 4 | 5 | 11 | 0 | 1
mediateWithExternalScript(MessageContext) |  | 79% |  | 50% | 3 | 5 | 1 | 12 | 0 | 1
ScriptMediator(String, Map, Value, String, ClassLoader) |  | 80% |  | 75% | 1 | 3 | 1 | 16 | 0 | 1
handleException(String) |  | 0% |  | n/a | 1 | 1 | 2 | 2 | 1 | 1
getScriptMessageContext(MessageContext, XMLHelper) |  | 84% |  | 100% | 0 | 2 | 2 | 9 | 0 | 1
mediateForInlineScript(MessageContext) |  | 81% |  | 50% | 1 | 2 | 1 | 8 | 0 | 1
getLoader() |  | 0% |  | n/a | 1 | 1 | 1 | 1 | 1 | 1
isContentAltering() |  | 0% |  | n/a | 1 | 1 | 1 | 1 | 1 | 1
ScriptMediator(String, String, ClassLoader) |  | 100% |  | n/a | 0 | 1 | 0 | 10 | 0 | 1
prepareForJSON(ScriptMessageContext) |  | 100% |  | 50% | 1 | 2 | 0 | 4 | 0 | 1
static {...} |  | 100% |  | n/a | 0 | 1 | 0 | 2 | 0 | 1
setLoader(ClassLoader) |  | 100% |  | n/a | 0 | 1 | 0 | 2 | 0 | 1
getLanguage() |  | 100% |  | n/a | 0 | 1 | 0 | 1 | 0 | 1
getKey() |  | 100% |  | n/a | 0 | 1 | 0 | 1 | 0 | 1
getFunction() |  | 100% |  | n/a | 0 | 1 | 0 | 1 | 0 | 1
getScriptSrc() |  | 100% |  | n/a | 0 | 1 | 0 | 1 | 0 | 1
getIncludeMap() |  | 100% |  | n/a | 0 | 1 | 0 | 1 | 0 | 1