This file is indexed.

/usr/share/doc/libghc-tasty-kat-doc/html/Test-Tasty-KAT-FileLoader.html is in libghc-tasty-kat-doc 0.0.3-7build7.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /><title>Test.Tasty.KAT.FileLoader</title><link href="ocean.css" rel="stylesheet" type="text/css" title="Ocean" /><script src="haddock-util.js" type="text/javascript"></script><script src="file:///usr/share/javascript/mathjax/MathJax.js" type="text/javascript"></script><script type="text/javascript">//<![CDATA[
window.onload = function () {pageLoad();setSynopsis("mini_Test-Tasty-KAT-FileLoader.html");};
//]]>
</script></head><body><div id="package-header"><ul class="links" id="page-menu"><li><a href="src/Test-Tasty-KAT-FileLoader.html">Source</a></li><li><a href="index.html">Contents</a></li><li><a href="doc-index.html">Index</a></li></ul><p class="caption">tasty-kat-0.0.3: Known Answer Tests (KAT) framework for tasty</p></div><div id="content"><div id="module-header"><table class="info"><tr><th>License</th><td>MIT</td></tr><tr><th>Maintainer</th><td>Vincent Hanquez &lt;vincent@snarc.org&gt;</td></tr><tr><th>Stability</th><td>experimental</td></tr><tr><th>Portability</th><td>Good</td></tr><tr><th>Safe Haskell</th><td>None</td></tr><tr><th>Language</th><td>Haskell2010</td></tr></table><p class="caption">Test.Tasty.KAT.FileLoader</p></div><div id="table-of-contents"><p class="caption">Contents</p><ul><li><a href="#g:1">generic helpers on TestResource</a></li><li><a href="#g:2">common helpers on TestResource</a></li><li><a href="#g:3">common value decoding helpers</a></li><li><a href="#g:4">associated hierarchy of KAT types </a></li></ul></div><div id="description"><p class="caption">Description</p><div class="doc"><p>extra loaders helpers</p></div></div><div id="synopsis"><p id="control.syn" class="caption expander" onclick="toggleSection('syn')">Synopsis</p><ul id="section.syn" class="hide" onclick="toggleSection('syn')"><li class="src short"><a href="#v:katLoader">katLoader</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-Char.html#t:Char">Char</a> -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-String.html#t:String">String</a> -&gt; [<a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-String.html#t:String">String</a>] -&gt; <a href="Test-Tasty-KAT-FileLoader.html#t:TestResource">TestResource</a> (<a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-String.html#t:String">String</a>, <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-String.html#t:String">String</a>)</li><li class="src short"><a href="#v:katLoaderSimple">katLoaderSimple</a> :: [<a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-String.html#t:String">String</a>] -&gt; <a href="Test-Tasty-KAT-FileLoader.html#t:TestResource">TestResource</a> (<a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-String.html#t:String">String</a>, <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-String.html#t:String">String</a>)</li><li class="src short"><a href="#v:mapTestUnitValues">mapTestUnitValues</a> :: (<a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-String.html#t:String">String</a> -&gt; a) -&gt; <a href="Test-Tasty-KAT-FileLoader.html#t:TestResource">TestResource</a> (<a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-String.html#t:String">String</a>, <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-String.html#t:String">String</a>) -&gt; <a href="Test-Tasty-KAT-FileLoader.html#t:TestResource">TestResource</a> (<a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-String.html#t:String">String</a>, a)</li><li class="src short"><a href="#v:mapTestUnits">mapTestUnits</a> :: (<a href="Test-Tasty-KAT-FileLoader.html#t:TestUnit">TestUnit</a> (<a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-String.html#t:String">String</a>, a) -&gt; <a href="Test-Tasty-KAT-FileLoader.html#t:TestUnit">TestUnit</a> b) -&gt; <a href="Test-Tasty-KAT-FileLoader.html#t:TestResource">TestResource</a> (<a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-String.html#t:String">String</a>, a) -&gt; <a href="Test-Tasty-KAT-FileLoader.html#t:TestResource">TestResource</a> b</li><li class="src short"><a href="#v:mapTestUnitValuesBase64">mapTestUnitValuesBase64</a> :: <a href="Test-Tasty-KAT-FileLoader.html#t:TestResource">TestResource</a> (<a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-String.html#t:String">String</a>, <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-String.html#t:String">String</a>) -&gt; <a href="Test-Tasty-KAT-FileLoader.html#t:TestResource">TestResource</a> (<a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-String.html#t:String">String</a>, <a href="file:///usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.8.1/Data-ByteString.html#t:ByteString">ByteString</a>)</li><li class="src short"><a href="#v:mapTestUnitValuesBase16">mapTestUnitValuesBase16</a> :: <a href="Test-Tasty-KAT-FileLoader.html#t:TestResource">TestResource</a> (<a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-String.html#t:String">String</a>, <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-String.html#t:String">String</a>) -&gt; <a href="Test-Tasty-KAT-FileLoader.html#t:TestResource">TestResource</a> (<a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-String.html#t:String">String</a>, <a href="file:///usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.8.1/Data-ByteString.html#t:ByteString">ByteString</a>)</li><li class="src short"><a href="#v:valueUnbase16">valueUnbase16</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-String.html#t:String">String</a> -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.8.1/Data-ByteString.html#t:ByteString">ByteString</a></li><li class="src short"><a href="#v:valueUnbase64">valueUnbase64</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-String.html#t:String">String</a> -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.8.1/Data-ByteString.html#t:ByteString">ByteString</a></li><li class="src short"><a href="#v:valueInteger">valueInteger</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-String.html#t:String">String</a> -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Prelude.html#t:Integer">Integer</a></li><li class="src short"><a href="#v:valueHexInteger">valueHexInteger</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-String.html#t:String">String</a> -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Prelude.html#t:Integer">Integer</a></li><li class="src short"><span class="keyword">type</span> <a href="#t:TestResource">TestResource</a> a = [(<a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-String.html#t:String">String</a>, <a href="Test-Tasty-KAT-FileLoader.html#t:TestGroup">TestGroup</a> a)]</li><li class="src short"><span class="keyword">type</span> <a href="#t:TestGroup">TestGroup</a> a = [<a href="Test-Tasty-KAT-FileLoader.html#t:TestUnit">TestUnit</a> a]</li><li class="src short"><span class="keyword">type</span> <a href="#t:TestUnit">TestUnit</a> a = [a]</li></ul></div><div id="interface"><h1>Documentation</h1><div class="top"><p class="src"><a id="v:katLoader" class="def">katLoader</a> <a href="src/Test-Tasty-KAT-FileLoader.html#katLoader" class="link">Source</a> <a href="#v:katLoader" class="selflink">#</a></p><div class="subs arguments"><p class="caption">Arguments</p><table><tr><td class="src">:: <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-Char.html#t:Char">Char</a></td><td class="doc"><p>key value separator, e.g. '='</p></td></tr><tr><td class="src">-&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-String.html#t:String">String</a></td><td class="doc"><p>line comment, e.g. &quot;--&quot; &quot;#&quot;</p></td></tr><tr><td class="src">-&gt; [<a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-String.html#t:String">String</a>]</td><td class="doc"><p>input lines</p></td></tr><tr><td class="src">-&gt; <a href="Test-Tasty-KAT-FileLoader.html#t:TestResource">TestResource</a> (<a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-String.html#t:String">String</a>, <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-String.html#t:String">String</a>)</td><td class="doc empty">&nbsp;</td></tr></table></div></div><div class="top"><p class="src"><a id="v:katLoaderSimple" class="def">katLoaderSimple</a> :: [<a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-String.html#t:String">String</a>] -&gt; <a href="Test-Tasty-KAT-FileLoader.html#t:TestResource">TestResource</a> (<a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-String.html#t:String">String</a>, <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-String.html#t:String">String</a>) <a href="src/Test-Tasty-KAT-FileLoader.html#katLoaderSimple" class="link">Source</a> <a href="#v:katLoaderSimple" class="selflink">#</a></p><div class="doc"><p>From a simple KAT file, extract </p><ul><li>lines starting by #, are assumed to be comment</li></ul><p>format should be the following:</p><pre>skipped ..
skipped ..
[group1]

f1= v1
f2= v2
...

f1= v3
f2= v4
...

[group2]
...</pre></div></div><h1 id="g:1">generic helpers on TestResource</h1><div class="top"><p class="src"><a id="v:mapTestUnitValues" class="def">mapTestUnitValues</a> :: (<a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-String.html#t:String">String</a> -&gt; a) -&gt; <a href="Test-Tasty-KAT-FileLoader.html#t:TestResource">TestResource</a> (<a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-String.html#t:String">String</a>, <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-String.html#t:String">String</a>) -&gt; <a href="Test-Tasty-KAT-FileLoader.html#t:TestResource">TestResource</a> (<a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-String.html#t:String">String</a>, a) <a href="src/Test-Tasty-KAT-FileLoader.html#mapTestUnitValues" class="link">Source</a> <a href="#v:mapTestUnitValues" class="selflink">#</a></p></div><div class="top"><p class="src"><a id="v:mapTestUnits" class="def">mapTestUnits</a> :: (<a href="Test-Tasty-KAT-FileLoader.html#t:TestUnit">TestUnit</a> (<a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-String.html#t:String">String</a>, a) -&gt; <a href="Test-Tasty-KAT-FileLoader.html#t:TestUnit">TestUnit</a> b) -&gt; <a href="Test-Tasty-KAT-FileLoader.html#t:TestResource">TestResource</a> (<a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-String.html#t:String">String</a>, a) -&gt; <a href="Test-Tasty-KAT-FileLoader.html#t:TestResource">TestResource</a> b <a href="src/Test-Tasty-KAT-FileLoader.html#mapTestUnits" class="link">Source</a> <a href="#v:mapTestUnits" class="selflink">#</a></p></div><h1 id="g:2">common helpers on TestResource</h1><div class="top"><p class="src"><a id="v:mapTestUnitValuesBase64" class="def">mapTestUnitValuesBase64</a> :: <a href="Test-Tasty-KAT-FileLoader.html#t:TestResource">TestResource</a> (<a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-String.html#t:String">String</a>, <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-String.html#t:String">String</a>) -&gt; <a href="Test-Tasty-KAT-FileLoader.html#t:TestResource">TestResource</a> (<a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-String.html#t:String">String</a>, <a href="file:///usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.8.1/Data-ByteString.html#t:ByteString">ByteString</a>) <a href="src/Test-Tasty-KAT-FileLoader.html#mapTestUnitValuesBase64" class="link">Source</a> <a href="#v:mapTestUnitValuesBase64" class="selflink">#</a></p></div><div class="top"><p class="src"><a id="v:mapTestUnitValuesBase16" class="def">mapTestUnitValuesBase16</a> :: <a href="Test-Tasty-KAT-FileLoader.html#t:TestResource">TestResource</a> (<a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-String.html#t:String">String</a>, <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-String.html#t:String">String</a>) -&gt; <a href="Test-Tasty-KAT-FileLoader.html#t:TestResource">TestResource</a> (<a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-String.html#t:String">String</a>, <a href="file:///usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.8.1/Data-ByteString.html#t:ByteString">ByteString</a>) <a href="src/Test-Tasty-KAT-FileLoader.html#mapTestUnitValuesBase16" class="link">Source</a> <a href="#v:mapTestUnitValuesBase16" class="selflink">#</a></p></div><h1 id="g:3">common value decoding helpers</h1><div class="top"><p class="src"><a id="v:valueUnbase16" class="def">valueUnbase16</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-String.html#t:String">String</a> -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.8.1/Data-ByteString.html#t:ByteString">ByteString</a> <a href="src/Test-Tasty-KAT-FileLoader.html#valueUnbase16" class="link">Source</a> <a href="#v:valueUnbase16" class="selflink">#</a></p></div><div class="top"><p class="src"><a id="v:valueUnbase64" class="def">valueUnbase64</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-String.html#t:String">String</a> -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.8.1/Data-ByteString.html#t:ByteString">ByteString</a> <a href="src/Test-Tasty-KAT-FileLoader.html#valueUnbase64" class="link">Source</a> <a href="#v:valueUnbase64" class="selflink">#</a></p></div><div class="top"><p class="src"><a id="v:valueInteger" class="def">valueInteger</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-String.html#t:String">String</a> -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Prelude.html#t:Integer">Integer</a> <a href="src/Test-Tasty-KAT-FileLoader.html#valueInteger" class="link">Source</a> <a href="#v:valueInteger" class="selflink">#</a></p></div><div class="top"><p class="src"><a id="v:valueHexInteger" class="def">valueHexInteger</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-String.html#t:String">String</a> -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Prelude.html#t:Integer">Integer</a> <a href="src/Test-Tasty-KAT-FileLoader.html#valueHexInteger" class="link">Source</a> <a href="#v:valueHexInteger" class="selflink">#</a></p></div><h1 id="g:4">associated hierarchy of KAT types </h1><div class="top"><p class="src"><span class="keyword">type</span> <a id="t:TestResource" class="def">TestResource</a> a = [(<a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-String.html#t:String">String</a>, <a href="Test-Tasty-KAT-FileLoader.html#t:TestGroup">TestGroup</a> a)] <a href="src/Test-Tasty-KAT-FileLoader.html#TestResource" class="link">Source</a> <a href="#t:TestResource" class="selflink">#</a></p></div><div class="top"><p class="src"><span class="keyword">type</span> <a id="t:TestGroup" class="def">TestGroup</a> a = [<a href="Test-Tasty-KAT-FileLoader.html#t:TestUnit">TestUnit</a> a] <a href="src/Test-Tasty-KAT-FileLoader.html#TestGroup" class="link">Source</a> <a href="#t:TestGroup" class="selflink">#</a></p></div><div class="top"><p class="src"><span class="keyword">type</span> <a id="t:TestUnit" class="def">TestUnit</a> a = [a] <a href="src/Test-Tasty-KAT-FileLoader.html#TestUnit" class="link">Source</a> <a href="#t:TestUnit" class="selflink">#</a></p></div></div></div><div id="footer"><p>Produced by <a href="http://www.haskell.org/haddock/">Haddock</a> version 2.17.3</p></div></body></html>