<div dir="ltr"><div>Looks like it's built into Hackage and not just in the Readme. The bytestring package is a good example with several badges including code coverage; if you click the "Build | InstallOK" badge, you get a more detailed report.</div><div><br></div><div><a href="https://hackage.haskell.org/package/bytestring">https://hackage.haskell.org/package/bytestring</a></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Sat, May 7, 2022 at 11:46 AM Mikolaj Konarski <<a href="mailto:mikolaj@well-typed.com">mikolaj@well-typed.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div>Hi Ivan,</div><div><br></div><div>Was that icon just a part of a README? If not, could you <br></div><div>give a link?</div><div><br></div><div>In any case, people at the #hackage Matrix/IRC channel may <br></div><div>know about any plans to add that (#hackage is a shared room <br></div><div>for Hackage and related topics such as ghcup, cabal, <br></div><div>Stackage-Hackage interoperation, etc.; all are welcome).</div><div><br></div><div>Cheers,</div><div>Mikolaj<br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Sat, May 7, 2022 at 7:31 PM Ivan Perez <<a href="mailto:ivanperezdominguez@gmail.com" target="_blank">ivanperezdominguez@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div>Hi all,</div><div><br></div><div>What analysis does the hackage server run to determine the coverage level of, or rating given to, a particular package?</div><div><br></div><div>For example, for one package it is showing this icon:</div><div><br></div><div><a href="https://img.shields.io/static/v1?label=Coverage&message=32%&color=red" target="_blank">https://img.shields.io/static/v1?label=Coverage&message=32%&color=red</a></div><div><br></div><div>What does that actually mean? The build log states:</div><div><h3>Code Coverage</h3>
<table>
<tbody><tr><th colspan="2">expressions</th><td>32% (224/684)</td></tr>
<tr><th colspan="1" rowspan="3">boolean</th><th>guards</th><td>100% (0/0) </td></tr>
<tr><th>conditions</th><td> 20% (1/5) </td></tr>
<tr><th>qualifiers</th><td>100% (0/0)</td></tr>
<tr><th colspan="2">alternatives</th><td>27% (5/18)</td></tr>
<tr><th colspan="2">local declarations</th><td>40% (6/15)</td></tr>
<tr><th colspan="2">top-level declarations</th><td>32% (29/90)</td></tr></tbody></table></div><div><br></div><div>Is it possible to see details of how hackage is arriving to these conclusion, and to replicate these results locally?<br></div><div><br></div><div>Thanks,</div><div><br></div><div>Ivan<br></div></div>
_______________________________________________<br>
Haskell-Cafe mailing list<br>
To (un)subscribe, modify options or view archives go to:<br>
<a href="http://mail.haskell.org/cgi-bin/mailman/listinfo/haskell-cafe" rel="noreferrer" target="_blank">http://mail.haskell.org/cgi-bin/mailman/listinfo/haskell-cafe</a><br>
Only members subscribed via the mailman list are allowed to post.</blockquote></div></div>
_______________________________________________<br>
Haskell-Cafe mailing list<br>
To (un)subscribe, modify options or view archives go to:<br>
<a href="http://mail.haskell.org/cgi-bin/mailman/listinfo/haskell-cafe" rel="noreferrer" target="_blank">http://mail.haskell.org/cgi-bin/mailman/listinfo/haskell-cafe</a><br>
Only members subscribed via the mailman list are allowed to post.</blockquote></div>