PageRenderTime 25ms CodeModel.GetById 18ms app.highlight 3ms RepoModel.GetById 2ms app.codeStats 0ms

/testability-explorer/src/main/resources/com/google/test/metric/report/about/Report.html

http://testability-explorer.googlecode.com/
HTML | 81 lines | 75 code | 5 blank | 1 comment | 0 complexity | d4130877e9f32db8aedb7d6849632ade MD5 | raw file
 1<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN"
 2   "http://www.w3.org/TR/html4/strict.dtd">
 3<html lang="en">
 4<head>
 5  <#include "../costDetailBox.html" />
 6  <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
 7	<title>${message("report.about.title")}</title>
 8	<meta name="author" content="Alex Eagle">
 9  <style type="text/css">
10    <#include "../te.css"/>
11  </style>
12  <style type="text/css">
13    <#include "../prettify.css"/>
14  </style>
15  <script type="text/javascript">
16    <#include "../prettify.js"/>
17  </script>
18	<!-- Date: 2009-03-18 -->
19
20</head>
21<body onload="prettyPrint()">
22<h1>${message("report.about.title")}</h1>
23<p>${message("report.about.description")}</p>
24
25<ul>Index of examples
26  <#list classesByPackage?keys as package>
27    <li>${package}
28      <ul>
29        <#assign classes = classesByPackage[package] />
30        <#list classes as clazz>
31          <li><a href="#example_${package_index}_${clazz_index}">${clazz.name}</a></li>
32        </#list>
33      </ul>
34    </li>
35  </#list>
36</ul>
37
38<#list classesByPackage?keys as package>
39  <h2>${package}</h2>
40  <#assign classes = classesByPackage[package] />
41  <#list classes as clazz>
42    <a name="example_${package_index}_${clazz_index}"/>
43    <p class="header">${message("report.about.class", "<tt>", clazz.name, "</tt>")}</p>
44    <#assign pastPackageDeclaration = false />
45    <code class="prettyprint">
46      <#list clazz.source.lines as line>
47        <#if line.text?starts_with("package com.google.test.metric") >
48          <#assign pastPackageDeclaration = true />
49        </#if>
50        <#if pastPackageDeclaration &&
51             !line.text?matches("\\s*") &&
52             !line.text?starts_with("package") &&
53             !line.text?starts_with("import") >
54          <span class="nocode">${line.lineNumber}: </span>${line.text?html}
55        </#if>
56      </#list>
57    </code>
58    <#assign classIssues = clazz.issues />
59    <p class="header">${message("report.explain.class.hardToTest", "<tt>", classIssues.className, "</tt>")}</p>
60    <div class="classExplanation">
61      <div class="cost">${classIssues.totalCost}</div>
62      <#if classIssues.constructionIssues?keys?size != 0>
63        <em>${message("report.explain.class.construction")}</em>
64        <@costDetailBox classIssues.constructionIssues "construction" />
65      </#if>
66
67      <#if classIssues.collaboratorIssues?keys?size != 0>
68        <em>${message("report.explain.class.collaborator")}</em>
69        <@costDetailBox classIssues.collaboratorIssues "collaborator" />
70      </#if>
71
72      <#if classIssues.directCostIssues?keys?size != 0>
73        <em>${message("report.explain.class.directCost")}</em>
74        <@costDetailBox classIssues.directCostIssues "directCost" />
75      </#if>
76    </div>
77    <p>&nbsp;</p>
78  </#list>
79</#list>
80</body>
81</html>