Follow changes in html output
[packages/hpc.git] / tests / function / tough.stdout
1 "Hello"
2 "Hello"
3 badCase
4 badCase
5 "Bark"
6 "Hello"
7 (1,2,3)
8
9
10  71% expressions used (68/95)
11  14% boolean coverage (1/7)
12        0% guards (0/4), 3 always True, 1 always False
13       33% 'if' conditions (1/3), 1 always True, 1 always False
14      100% qualifiers (0/0)
15  58% alternatives used (7/12)
16 100% local declarations used (0/0)
17  83% top-level declarations used (5/6)
18
19
20 -----<module Main>-----
21  71% expressions used (68/95)
22  14% boolean coverage (1/7)
23        0% guards (0/4), 3 always True, 1 always False
24       33% 'if' conditions (1/3), 1 always True, 1 always False
25      100% qualifiers (0/0)
26  58% alternatives used (7/12)
27 100% local declarations used (0/0)
28  83% top-level declarations used (5/6)
29
30
31 Writing: Main.hs.html
32 <html>
33 <head>
34 <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
35 <style type="text/css">
36 span.lineno { color: white; background: #aaaaaa; border-right: solid white 12px }
37 span.nottickedoff { background: yellow}
38 span.istickedoff { background: white }
39 span.tickonlyfalse { margin: -1px; border: 1px solid #f20913; background: #f20913 }
40 span.tickonlytrue  { margin: -1px; border: 1px solid #60de51; background: #60de51 }
41 span.funcount { font-size: small; color: orange; z-index: 2; position: absolute; right: 20 }
42 span.decl { font-weight: bold }
43 span.spaces    { background: white }
44 </style>
45 </head>
46 <body>
47 <pre>
48 <span class="lineno">    1 </span>import Control.Exception as E
49 <span class="lineno">    2 </span>
50 <span class="lineno">    3 </span>-- This test shows what hpc can really do.
51 <span class="lineno">    4 </span>
52 <span class="lineno">    5 </span><span class="decl"><span class="istickedoff">main = do</span>
53 <span class="lineno">    6 </span><span class="spaces">  </span><span class="istickedoff">print (&quot;Hello&quot;)</span>
54 <span class="lineno">    7 </span><span class="spaces">  </span><span class="istickedoff">foo &quot;Hello&quot;</span>
55 <span class="lineno">    8 </span><span class="spaces">  </span><span class="istickedoff">E.catch (print (badCase 22 <span class="nottickedoff">44</span>))</span>
56 <span class="lineno">    9 </span><span class="spaces">          </span><span class="istickedoff">(\ e -&gt; print (e :: E.ErrorCall))</span>
57 <span class="lineno">   10 </span><span class="spaces">  </span><span class="istickedoff">E.catch (print (badCase 22 <span class="nottickedoff">(error &quot;Foo&quot;)</span>))</span>
58 <span class="lineno">   11 </span><span class="spaces">          </span><span class="istickedoff">(\ e -&gt; print (e :: E.ErrorCall))</span>
59 <span class="lineno">   12 </span><span class="spaces">  </span><span class="istickedoff">E.catch (print &quot;Bark&quot;)</span>
60 <span class="lineno">   13 </span><span class="spaces">          </span><span class="istickedoff"><span class="nottickedoff">(\ e -&gt; print (e :: E.ErrorCall))</span></span>
61 <span class="lineno">   14 </span><span class="spaces">  </span><span class="istickedoff">(_,_) &lt;- return $ (<span class="nottickedoff">&quot;Hello&quot;</span>,<span class="nottickedoff">&quot;World&quot;</span>)</span>
62 <span class="lineno">   15 </span><span class="spaces">  </span><span class="istickedoff">return <span class="nottickedoff">()</span></span>
63 <span class="lineno">   16 </span><span class="spaces">  </span><span class="istickedoff">() &lt;- return ()</span>
64 <span class="lineno">   17 </span><span class="spaces">  </span><span class="istickedoff">t &lt;- case <span class="nottickedoff">()</span> of</span>
65 <span class="lineno">   18 </span><span class="spaces">    </span><span class="istickedoff">_ | <span class="tickonlytrue">otherwoz</span> -&gt; return <span class="nottickedoff">&quot;Hello&quot;</span></span>
66 <span class="lineno">   19 </span><span class="spaces">    </span><span class="istickedoff">_             -&gt; <span class="nottickedoff">error &quot;Bad Thing Happened&quot;</span></span>
67 <span class="lineno">   20 </span><span class="spaces">  </span><span class="istickedoff">t &lt;- case <span class="nottickedoff">()</span> of</span>
68 <span class="lineno">   21 </span><span class="spaces">    </span><span class="istickedoff">_ | <span class="tickonlytrue">otherwise</span> -&gt; return <span class="nottickedoff">&quot;Hello&quot;</span></span>
69 <span class="lineno">   22 </span><span class="spaces">    </span><span class="istickedoff">_              -&gt; <span class="nottickedoff">error &quot;Bad Thing Happened&quot;</span></span>
70 <span class="lineno">   23 </span><span class="spaces">  </span><span class="istickedoff">t &lt;- case <span class="nottickedoff">()</span> of</span>
71 <span class="lineno">   24 </span><span class="spaces">    </span><span class="istickedoff">_ | <span class="tickonlytrue">otherwise</span> </span>
72 <span class="lineno">   25 </span><span class="spaces">      </span><span class="istickedoff">, <span class="tickonlyfalse">False</span>      -&gt; <span class="nottickedoff">error &quot;Bad Thing Happened&quot;</span></span>
73 <span class="lineno">   26 </span><span class="spaces">    </span><span class="istickedoff">_              -&gt; return &quot;Hello&quot;</span>
74 <span class="lineno">   27 </span><span class="spaces">  </span><span class="istickedoff">print t</span>
75 <span class="lineno">   28 </span><span class="spaces">  </span><span class="istickedoff">print foo2</span></span>
76 <span class="lineno">   29 </span>
77 <span class="lineno">   30 </span><span class="decl"><span class="istickedoff">foo x = do</span>
78 <span class="lineno">   31 </span><span class="spaces">  </span><span class="istickedoff">print x</span>
79 <span class="lineno">   32 </span><span class="spaces">  </span><span class="istickedoff">return <span class="nottickedoff">()</span></span></span>
80 <span class="lineno">   33 </span>
81 <span class="lineno">   34 </span><span class="decl"><span class="nottickedoff">unused_ a = a</span></span>
82 <span class="lineno">   35 </span>
83 <span class="lineno">   36 </span>badCase :: Int -&gt; Int -&gt; Int
84 <span class="lineno">   37 </span><span class="decl"><span class="istickedoff">badCase a b = </span>
85 <span class="lineno">   38 </span><span class="spaces">        </span><span class="istickedoff">if a &gt; 100 </span>
86 <span class="lineno">   39 </span><span class="spaces">        </span><span class="istickedoff">then error &quot;badCase&quot; </span>
87 <span class="lineno">   40 </span><span class="spaces">        </span><span class="istickedoff">else if <span class="tickonlyfalse">a &gt; 1000</span> </span>
88 <span class="lineno">   41 </span><span class="spaces">             </span><span class="istickedoff">then <span class="nottickedoff">1</span> </span>
89 <span class="lineno">   42 </span><span class="spaces">             </span><span class="istickedoff">else badCase (a + 1) <span class="nottickedoff">(b - 1)</span></span></span>
90 <span class="lineno">   43 </span>
91 <span class="lineno">   44 </span>
92 <span class="lineno">   45 </span><span class="decl"><span class="istickedoff">foo2 = (1,2, if <span class="tickonlytrue">True</span> then 3 else <span class="nottickedoff">4</span>)</span></span>
93 <span class="lineno">   46 </span>
94 <span class="lineno">   47 </span><span class="decl"><span class="istickedoff">otherwoz = True</span></span>
95
96 </pre>
97 </body>
98 </html>
99 Writing: hpc_index.html
100 <html><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"><style type="text/css">table.bar { background-color: #f25913; }
101 td.bar { background-color: #60de51;  }
102 td.invbar { background-color: #f25913;  }
103 table.dashboard { border-collapse: collapse  ; border: solid 1px black }
104 .dashboard td { border: solid 1px black }
105 .dashboard th { border: solid 1px black }
106 </style>
107 </head><body><table class="dashboard" width="100%" border=1>
108 <tr><th rowspan=2><a href="hpc_index.html">module</a></th><th colspan=3><a href="hpc_index_fun.html">Top Level Definitions</a></th><th colspan=3><a href="hpc_index_alt.html">Alternatives</a></th><th colspan=3><a href="hpc_index_exp.html">Expressions</a></th></tr><tr><th>%</th><th colspan=2>covered / total</th><th>%</th><th colspan=2>covered / total</th><th>%</th><th colspan=2>covered / total</th></tr><tr>
109 <td>&nbsp;&nbsp;<tt>module <a href="Main.hs.html">Main</a></tt></td>
110 <td align="right">83%</td><td>5/6</td><td width=100><table cellpadding=0 cellspacing=0 width="100" class="bar"><tr><td><table cellpadding=0 cellspacing=0 width="83%"><tr><td height=12 class="bar"></td></tr></table></td></tr></table></td><td align="right">58%</td><td>7/12</td><td width=100><table cellpadding=0 cellspacing=0 width="100" class="bar"><tr><td><table cellpadding=0 cellspacing=0 width="58%"><tr><td height=12 class="bar"></td></tr></table></td></tr></table></td><td align="right">71%</td><td>68/95</td><td width=100><table cellpadding=0 cellspacing=0 width="100" class="bar"><tr><td><table cellpadding=0 cellspacing=0 width="71%"><tr><td height=12 class="bar"></td></tr></table></td></tr></table></td></tr>
111 <tr></tr><tr style="background: #e0e0e0">
112 <th align=left>&nbsp;&nbsp;Program Coverage Total</tt></th>
113 <td align="right">83%</td><td>5/6</td><td width=100><table cellpadding=0 cellspacing=0 width="100" class="bar"><tr><td><table cellpadding=0 cellspacing=0 width="83%"><tr><td height=12 class="bar"></td></tr></table></td></tr></table></td><td align="right">58%</td><td>7/12</td><td width=100><table cellpadding=0 cellspacing=0 width="100" class="bar"><tr><td><table cellpadding=0 cellspacing=0 width="58%"><tr><td height=12 class="bar"></td></tr></table></td></tr></table></td><td align="right">71%</td><td>68/95</td><td width=100><table cellpadding=0 cellspacing=0 width="100" class="bar"><tr><td><table cellpadding=0 cellspacing=0 width="71%"><tr><td height=12 class="bar"></td></tr></table></td></tr></table></td></tr>
114 </table></body></html>
115 Writing: hpc_index_fun.html
116 <html><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"><style type="text/css">table.bar { background-color: #f25913; }
117 td.bar { background-color: #60de51;  }
118 td.invbar { background-color: #f25913;  }
119 table.dashboard { border-collapse: collapse  ; border: solid 1px black }
120 .dashboard td { border: solid 1px black }
121 .dashboard th { border: solid 1px black }
122 </style>
123 </head><body><table class="dashboard" width="100%" border=1>
124 <tr><th rowspan=2><a href="hpc_index.html">module</a></th><th colspan=3><a href="hpc_index_fun.html">Top Level Definitions</a></th><th colspan=3><a href="hpc_index_alt.html">Alternatives</a></th><th colspan=3><a href="hpc_index_exp.html">Expressions</a></th></tr><tr><th>%</th><th colspan=2>covered / total</th><th>%</th><th colspan=2>covered / total</th><th>%</th><th colspan=2>covered / total</th></tr><tr>
125 <td>&nbsp;&nbsp;<tt>module <a href="Main.hs.html">Main</a></tt></td>
126 <td align="right">83%</td><td>5/6</td><td width=100><table cellpadding=0 cellspacing=0 width="100" class="bar"><tr><td><table cellpadding=0 cellspacing=0 width="83%"><tr><td height=12 class="bar"></td></tr></table></td></tr></table></td><td align="right">58%</td><td>7/12</td><td width=100><table cellpadding=0 cellspacing=0 width="100" class="bar"><tr><td><table cellpadding=0 cellspacing=0 width="58%"><tr><td height=12 class="bar"></td></tr></table></td></tr></table></td><td align="right">71%</td><td>68/95</td><td width=100><table cellpadding=0 cellspacing=0 width="100" class="bar"><tr><td><table cellpadding=0 cellspacing=0 width="71%"><tr><td height=12 class="bar"></td></tr></table></td></tr></table></td></tr>
127 <tr></tr><tr style="background: #e0e0e0">
128 <th align=left>&nbsp;&nbsp;Program Coverage Total</tt></th>
129 <td align="right">83%</td><td>5/6</td><td width=100><table cellpadding=0 cellspacing=0 width="100" class="bar"><tr><td><table cellpadding=0 cellspacing=0 width="83%"><tr><td height=12 class="bar"></td></tr></table></td></tr></table></td><td align="right">58%</td><td>7/12</td><td width=100><table cellpadding=0 cellspacing=0 width="100" class="bar"><tr><td><table cellpadding=0 cellspacing=0 width="58%"><tr><td height=12 class="bar"></td></tr></table></td></tr></table></td><td align="right">71%</td><td>68/95</td><td width=100><table cellpadding=0 cellspacing=0 width="100" class="bar"><tr><td><table cellpadding=0 cellspacing=0 width="71%"><tr><td height=12 class="bar"></td></tr></table></td></tr></table></td></tr>
130 </table></body></html>
131 Writing: hpc_index_alt.html
132 <html><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"><style type="text/css">table.bar { background-color: #f25913; }
133 td.bar { background-color: #60de51;  }
134 td.invbar { background-color: #f25913;  }
135 table.dashboard { border-collapse: collapse  ; border: solid 1px black }
136 .dashboard td { border: solid 1px black }
137 .dashboard th { border: solid 1px black }
138 </style>
139 </head><body><table class="dashboard" width="100%" border=1>
140 <tr><th rowspan=2><a href="hpc_index.html">module</a></th><th colspan=3><a href="hpc_index_fun.html">Top Level Definitions</a></th><th colspan=3><a href="hpc_index_alt.html">Alternatives</a></th><th colspan=3><a href="hpc_index_exp.html">Expressions</a></th></tr><tr><th>%</th><th colspan=2>covered / total</th><th>%</th><th colspan=2>covered / total</th><th>%</th><th colspan=2>covered / total</th></tr><tr>
141 <td>&nbsp;&nbsp;<tt>module <a href="Main.hs.html">Main</a></tt></td>
142 <td align="right">83%</td><td>5/6</td><td width=100><table cellpadding=0 cellspacing=0 width="100" class="bar"><tr><td><table cellpadding=0 cellspacing=0 width="83%"><tr><td height=12 class="bar"></td></tr></table></td></tr></table></td><td align="right">58%</td><td>7/12</td><td width=100><table cellpadding=0 cellspacing=0 width="100" class="bar"><tr><td><table cellpadding=0 cellspacing=0 width="58%"><tr><td height=12 class="bar"></td></tr></table></td></tr></table></td><td align="right">71%</td><td>68/95</td><td width=100><table cellpadding=0 cellspacing=0 width="100" class="bar"><tr><td><table cellpadding=0 cellspacing=0 width="71%"><tr><td height=12 class="bar"></td></tr></table></td></tr></table></td></tr>
143 <tr></tr><tr style="background: #e0e0e0">
144 <th align=left>&nbsp;&nbsp;Program Coverage Total</tt></th>
145 <td align="right">83%</td><td>5/6</td><td width=100><table cellpadding=0 cellspacing=0 width="100" class="bar"><tr><td><table cellpadding=0 cellspacing=0 width="83%"><tr><td height=12 class="bar"></td></tr></table></td></tr></table></td><td align="right">58%</td><td>7/12</td><td width=100><table cellpadding=0 cellspacing=0 width="100" class="bar"><tr><td><table cellpadding=0 cellspacing=0 width="58%"><tr><td height=12 class="bar"></td></tr></table></td></tr></table></td><td align="right">71%</td><td>68/95</td><td width=100><table cellpadding=0 cellspacing=0 width="100" class="bar"><tr><td><table cellpadding=0 cellspacing=0 width="71%"><tr><td height=12 class="bar"></td></tr></table></td></tr></table></td></tr>
146 </table></body></html>
147 Writing: hpc_index_exp.html
148 <html><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"><style type="text/css">table.bar { background-color: #f25913; }
149 td.bar { background-color: #60de51;  }
150 td.invbar { background-color: #f25913;  }
151 table.dashboard { border-collapse: collapse  ; border: solid 1px black }
152 .dashboard td { border: solid 1px black }
153 .dashboard th { border: solid 1px black }
154 </style>
155 </head><body><table class="dashboard" width="100%" border=1>
156 <tr><th rowspan=2><a href="hpc_index.html">module</a></th><th colspan=3><a href="hpc_index_fun.html">Top Level Definitions</a></th><th colspan=3><a href="hpc_index_alt.html">Alternatives</a></th><th colspan=3><a href="hpc_index_exp.html">Expressions</a></th></tr><tr><th>%</th><th colspan=2>covered / total</th><th>%</th><th colspan=2>covered / total</th><th>%</th><th colspan=2>covered / total</th></tr><tr>
157 <td>&nbsp;&nbsp;<tt>module <a href="Main.hs.html">Main</a></tt></td>
158 <td align="right">83%</td><td>5/6</td><td width=100><table cellpadding=0 cellspacing=0 width="100" class="bar"><tr><td><table cellpadding=0 cellspacing=0 width="83%"><tr><td height=12 class="bar"></td></tr></table></td></tr></table></td><td align="right">58%</td><td>7/12</td><td width=100><table cellpadding=0 cellspacing=0 width="100" class="bar"><tr><td><table cellpadding=0 cellspacing=0 width="58%"><tr><td height=12 class="bar"></td></tr></table></td></tr></table></td><td align="right">71%</td><td>68/95</td><td width=100><table cellpadding=0 cellspacing=0 width="100" class="bar"><tr><td><table cellpadding=0 cellspacing=0 width="71%"><tr><td height=12 class="bar"></td></tr></table></td></tr></table></td></tr>
159 <tr></tr><tr style="background: #e0e0e0">
160 <th align=left>&nbsp;&nbsp;Program Coverage Total</tt></th>
161 <td align="right">83%</td><td>5/6</td><td width=100><table cellpadding=0 cellspacing=0 width="100" class="bar"><tr><td><table cellpadding=0 cellspacing=0 width="83%"><tr><td height=12 class="bar"></td></tr></table></td></tr></table></td><td align="right">58%</td><td>7/12</td><td width=100><table cellpadding=0 cellspacing=0 width="100" class="bar"><tr><td><table cellpadding=0 cellspacing=0 width="58%"><tr><td height=12 class="bar"></td></tr></table></td></tr></table></td><td align="right">71%</td><td>68/95</td><td width=100><table cellpadding=0 cellspacing=0 width="100" class="bar"><tr><td><table cellpadding=0 cellspacing=0 width="71%"><tr><td height=12 class="bar"></td></tr></table></td></tr></table></td></tr>
162 </table></body></html>
163
164