sections.summary.ftl Maven / Gradle / Ivy
<#import "../ui.ftl" as ui/>
<#macro operations operationCoveredMap>
${i18["summary.operations"]}
<@ui.coverageBadget counter=operationCoveredMap.counter/>
#macro>
<#macro calls data>
${i18["summary.operations.all"]}: ${data.operations?size}
${i18["summary.operations.no_call"]}: ${data.zeroCall?size}
${i18["summary.operations.missed"]}: ${data.missed?size}
#macro>
<#macro conditions counter>
${i18["summary.conditions"]}
${i18["summary.conditions.total"]}: ${counter.all}
<#if counter.all gt 0>
${i18["summary.conditions.covered"]}: ${counter.covered * 100 / counter.all}% (${counter.covered}/${counter.all})
<#else>
${i18["summary.conditions.covered"]}: 0% (0)
#if>
<#if counter.all gt 0>
${i18["summary.conditions.uncovered"]}: ${(counter.all-counter.covered) * 100 / counter.all}% (${counter.all-counter.covered}/${counter.all})
<#else>
${i18["summary.conditions.uncovered"]}: 0% (0)
#if>
<#if counter.all gt 0 >
<@ui.progressbar current = counter.covered full = counter.all height=50/>
#if>
#macro>
<#macro tags tagsDetail tagCounter>
${i18["summary.tags"]}
<@ui.coverageBadget counter=tagCounter/>
${i18["summary.tags.all"]}: ${tagCounter.all}
${i18["summary.tags.no_call"]}: ${tagsDetail?values?filter(x -> x.callCounts = 0)?size}
#macro>