clovsky.swagger-coverage-commons.1.5.0.source-code.report.ftl Maven / Gradle / Ivy
<#ftl output_format="HTML">
<#global i18=messages>
<#global operationMap=data.flatOperations>
<#-- @ftlvariable ftlvariable name="data" type="com.github.viclovsky.swagger.coverage.model.SwaggerCoverageResults" -->
<#import "ui.ftl" as ui/>
<#import "sections/summary.ftl" as summary />
<#import "sections/generation.ftl" as generation />
<#import "details/operation.ftl" as operations />
<#import "details/condition.ftl" as condition />
<#import "details/tag.ftl" as tag />
Swagger Coverage
${i18["menu.summary"]}
<@summary.operations operationCoveredMap=data.coverageOperationMap />
<@summary.calls data=data />
<@summary.tags tagsDetail=data.tagCoverageMap tagCounter=data.tagCounter />
<@summary.conditions counter=data.conditionCounter />
${i18["menu.operations"]}
<@condition.list
coverage=data.coverageOperationMap.full + data.coverageOperationMap.party + data.coverageOperationMap.empty
prefix="condition"/>
<@condition.list coverage=data.coverageOperationMap.full prefix="full"/>
<@condition.list coverage=data.coverageOperationMap.party prefix="party"/>
<@condition.list coverage=data.coverageOperationMap.empty prefix="empty"/>
<@condition.list coverage=data.zeroCall prefix="zero"/>
<@operations.list coverage=data.missed prefix="missed"/>
<@operations.list coverage=data.deprecated prefix="deprecated"/>
${i18["menu.tags"]}
<@tag.list tags=data.tagCoverageMap/>
${i18["menu.condition"]}
<#list data.conditionStatisticsMap as key, value>
<#assign nameKey = "predicate.${key}.name">
<#assign descriptionKey = "predicate.${key}.description">
${i18[nameKey]!nameKey}
${i18[descriptionKey]!descriptionKey}
<@ui.progress
full=value.allCount
current=value.coveredCount
postfix=i18["details.conditionprogress.postfix"]
/>
${i18["details.condition.operation"]}
${i18["details.condition.conditionname"]}e
${i18["details.condition.details"]}
<#list value.coveredOperation as conditionItem>
${conditionItem.operation}
${conditionItem.condition.name}
${conditionItem.condition.reason?no_esc}
#list>
${i18["details.condition.operation"]}
${i18["details.condition.conditionname"]}e
${i18["details.condition.details"]}
<#list value.uncoveredOperation as conditionItem>
${conditionItem.operation}
${conditionItem.condition.name}
${conditionItem.condition.reason?no_esc}
#list>
#list>
${i18["menu.generation"]}
<@generation.data statistic=data.generationStatistics/>
${i18["generation.configuration"]}
${data.prettyConfiguration}