htmlTemplates.namespaces.ftl Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of coverage-report Show documentation
Show all versions of coverage-report Show documentation
HTML coverage report generator
<#-- @ftlvariable name="module" type="jetbrains.coverage.report.impl.html.ModuleInfo" -->
<#-- @ftlvariable name="namespaces" type="java.util.Collection" -->
<#-- @ftlvariable name="sortOption" type="jetbrains.coverage.report.impl.html.SortOption" -->
<#include "macros.ftl">
<#assign moduleName><@moduleName module=module/>#assign>
<#assign moduleCaption><#if include_modules>for ${resources['coverage.module']?cap_first}: ${moduleName}#if>#assign>
<@page title="Summary">
<@currentScope/>
<#if include_modules>
all ${resources['coverage.module_plural']}
|
${moduleName}
<#else>
all ${resources['coverage.class_plural']}
#if>
<#if reportTitle?has_content>${reportTitle}: #if>Overall Coverage Summary ${moduleCaption}
<#assign overallStats=statsCalculator.getForModule(module.name)>
<@overallStatTable labelName="${resources['coverage.namespace']?cap_first}" labelValue="all ${resources['coverage.class_plural']}" coverageStatistics=overallStats/>
Coverage Breakdown
<#assign sortDesc=sortOption.descendingOrder>
<#assign sortByName=sortOption.orderByName()>
<#assign showBlocks=statsCalculator.getForModule(module.name).blockStats.percent >= 0>
<@sortableCellLabel label=resources['coverage.namespace']?cap_first sortOption=sortOption.nextOrderByName()/>
<@coverageStatHeaderRow coverageStatistics=statsCalculator.getForModule(module.name) sortOption=sortOption/>
<#list namespaces as ns>
<@namespaceName namespace=ns/>
<@coverageStatRow coverageStatistics=statsCalculator.getForNamespace(module.name, ns) showEmptyBlocks=showBlocks/>
#list>
@page>