Skip to content
Permalink
Browse files

Merge branch 'gh-pages-deploy' into gh-pages

  • Loading branch information
Travis CI User
Travis CI User committed Dec 3, 2019
2 parents 7b0561c + 2594235 commit f6d9fae6cc7ece33bd0d5d1e0a51fc85644a0b8a

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

@@ -0,0 +1,3 @@
<!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.Utils.Paths</title><link href="ocean.css" rel="stylesheet" type="text/css" title="Ocean" /><link rel="stylesheet" type="text/css" href="quick-jump.css" /><script src="haddock-bundle.min.js" async="async" type="text/javascript"></script><script src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.0/MathJax.js?config=TeX-AMS-MML_HTMLorMML" type="text/javascript"></script></head><body><div id="package-header"><ul class="links" id="page-menu"><li><a href="src/Test.Utils.Paths.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">cardano-wallet-test-utils-2019.6.24: Shared utilities for writing unit and property tests.</p></div><div id="content"><div id="module-header"><table class="info"><tr><th valign="top">Copyright</th><td>&#169; 2018-2019 IOHK</td></tr><tr><th>License</th><td>Apache-2.0</td></tr><tr><th>Safe Haskell</th><td>None</td></tr><tr><th>Language</th><td>Haskell2010</td></tr></table><p class="caption">Test.Utils.Paths</p></div><div id="description"><p class="caption">Description</p><div class="doc"><p>Utility function for finding the package test data directory.</p></div></div><div id="synopsis"><details id="syn"><summary>Synopsis</summary><ul class="details-toggle" data-details-id="syn"><li class="src short"><a href="#v:getTestData">getTestData</a> :: <a href="../template-haskell-2.14.0.0/Language-Haskell-TH-Syntax.html#t:Q" title="Language.Haskell.TH.Syntax">Q</a> <a href="../template-haskell-2.14.0.0/Language-Haskell-TH-Syntax.html#t:Exp" title="Language.Haskell.TH.Syntax">Exp</a></li></ul></details></div><div id="interface"><h1>Documentation</h1><div class="top"><p class="src"><a id="v:getTestData" class="def">getTestData</a> :: <a href="../template-haskell-2.14.0.0/Language-Haskell-TH-Syntax.html#t:Q" title="Language.Haskell.TH.Syntax">Q</a> <a href="../template-haskell-2.14.0.0/Language-Haskell-TH-Syntax.html#t:Exp" title="Language.Haskell.TH.Syntax">Exp</a> <a href="src/Test.Utils.Paths.html#getTestData" class="link">Source</a> <a href="#v:getTestData" class="selflink">#</a></p><div class="doc"><p>A TH function to get the test data directory. It combines the current
source file location and cabal file to locate the package directory in such a
way that works in both the package build and ghci.</p></div></div></div></div><div id="footer"><p>Produced by <a href="http://www.haskell.org/haddock/">Haddock</a> version 2.22.0</p></div></body></html>
Binary file not shown.
@@ -18,6 +18,15 @@ module Test.Hspec.Extra
aroundAll :: forall a. HasCallStack => (ActionWith a -> IO ()) -> SpecWith a -> Spec


-- | Utility function for finding the package test data directory.
module Test.Utils.Paths

-- | A TH function to get the test data directory. It combines the current
-- source file location and cabal file to locate the package directory in
-- such a way that works in both the package build and ghci.
getTestData :: Q Exp


-- | Provides functions for checking if TCP ports are available to listen
-- on. These can be used to start servers for testing when there may be
-- multiple test suites running in parallel.
@@ -1 +1 @@
<!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>cardano-wallet-test-utils-2019.6.24: Shared utilities for writing unit and property tests. (Index)</title><link href="ocean.css" rel="stylesheet" type="text/css" title="Ocean" /><link rel="stylesheet" type="text/css" href="quick-jump.css" /><script src="haddock-bundle.min.js" async="async" type="text/javascript"></script><script src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.0/MathJax.js?config=TeX-AMS-MML_HTMLorMML" type="text/javascript"></script></head><body><div id="package-header"><ul class="links" id="page-menu"><li><a href="index.html">Contents</a></li><li><a href="doc-index.html">Index</a></li></ul><p class="caption">cardano-wallet-test-utils-2019.6.24: Shared utilities for writing unit and property tests.</p></div><div id="content"><div id="index"><p class="caption">Index</p><table><tr><td class="src">aroundAll</td><td class="module"><a href="Test-Hspec-Extra.html#v:aroundAll" title="Test.Hspec.Extra">Test.Hspec.Extra</a></td></tr><tr><td class="src">findPort</td><td class="module"><a href="Test-Utils-Ports.html#v:findPort" title="Test.Utils.Ports">Test.Utils.Ports</a></td></tr><tr><td class="src">genUniformTime</td><td class="module"><a href="Test-Utils-Time.html#v:genUniformTime" title="Test.Utils.Time">Test.Utils.Time</a></td></tr><tr><td class="src">getUniformTime</td><td class="module"><a href="Test-Utils-Time.html#v:getUniformTime" title="Test.Utils.Time">Test.Utils.Time</a></td></tr><tr><td class="src">isPortOpen</td><td class="module"><a href="Test-Utils-Ports.html#v:isPortOpen" title="Test.Utils.Ports">Test.Utils.Ports</a></td></tr><tr><td class="src">isWindows</td><td class="module"><a href="Test-Utils-Windows.html#v:isWindows" title="Test.Utils.Windows">Test.Utils.Windows</a></td></tr><tr><td class="src">pendingOnWindows</td><td class="module"><a href="Test-Utils-Windows.html#v:pendingOnWindows" title="Test.Utils.Windows">Test.Utils.Windows</a></td></tr><tr><td class="src">randomUnusedTCPPorts</td><td class="module"><a href="Test-Utils-Ports.html#v:randomUnusedTCPPorts" title="Test.Utils.Ports">Test.Utils.Ports</a></td></tr><tr><td class="src">simpleSockAddr</td><td class="module"><a href="Test-Utils-Ports.html#v:simpleSockAddr" title="Test.Utils.Ports">Test.Utils.Ports</a></td></tr><tr><td class="src">skipOnWindows</td><td class="module"><a href="Test-Utils-Windows.html#v:skipOnWindows" title="Test.Utils.Windows">Test.Utils.Windows</a></td></tr><tr><td class="src">UniformTime</td><td class="module"><a href="Test-Utils-Time.html#t:UniformTime" title="Test.Utils.Time">Test.Utils.Time</a></td></tr><tr><td class="src">whenWindows</td><td class="module"><a href="Test-Utils-Windows.html#v:whenWindows" title="Test.Utils.Windows">Test.Utils.Windows</a></td></tr></table></div></div><div id="footer"><p>Produced by <a href="http://www.haskell.org/haddock/">Haddock</a> version 2.22.0</p></div></body></html>
<!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>cardano-wallet-test-utils-2019.6.24: Shared utilities for writing unit and property tests. (Index)</title><link href="ocean.css" rel="stylesheet" type="text/css" title="Ocean" /><link rel="stylesheet" type="text/css" href="quick-jump.css" /><script src="haddock-bundle.min.js" async="async" type="text/javascript"></script><script src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.0/MathJax.js?config=TeX-AMS-MML_HTMLorMML" type="text/javascript"></script></head><body><div id="package-header"><ul class="links" id="page-menu"><li><a href="index.html">Contents</a></li><li><a href="doc-index.html">Index</a></li></ul><p class="caption">cardano-wallet-test-utils-2019.6.24: Shared utilities for writing unit and property tests.</p></div><div id="content"><div id="index"><p class="caption">Index</p><table><tr><td class="src">aroundAll</td><td class="module"><a href="Test-Hspec-Extra.html#v:aroundAll" title="Test.Hspec.Extra">Test.Hspec.Extra</a></td></tr><tr><td class="src">findPort</td><td class="module"><a href="Test-Utils-Ports.html#v:findPort" title="Test.Utils.Ports">Test.Utils.Ports</a></td></tr><tr><td class="src">genUniformTime</td><td class="module"><a href="Test-Utils-Time.html#v:genUniformTime" title="Test.Utils.Time">Test.Utils.Time</a></td></tr><tr><td class="src">getTestData</td><td class="module"><a href="Test-Utils-Paths.html#v:getTestData" title="Test.Utils.Paths">Test.Utils.Paths</a></td></tr><tr><td class="src">getUniformTime</td><td class="module"><a href="Test-Utils-Time.html#v:getUniformTime" title="Test.Utils.Time">Test.Utils.Time</a></td></tr><tr><td class="src">isPortOpen</td><td class="module"><a href="Test-Utils-Ports.html#v:isPortOpen" title="Test.Utils.Ports">Test.Utils.Ports</a></td></tr><tr><td class="src">isWindows</td><td class="module"><a href="Test-Utils-Windows.html#v:isWindows" title="Test.Utils.Windows">Test.Utils.Windows</a></td></tr><tr><td class="src">pendingOnWindows</td><td class="module"><a href="Test-Utils-Windows.html#v:pendingOnWindows" title="Test.Utils.Windows">Test.Utils.Windows</a></td></tr><tr><td class="src">randomUnusedTCPPorts</td><td class="module"><a href="Test-Utils-Ports.html#v:randomUnusedTCPPorts" title="Test.Utils.Ports">Test.Utils.Ports</a></td></tr><tr><td class="src">simpleSockAddr</td><td class="module"><a href="Test-Utils-Ports.html#v:simpleSockAddr" title="Test.Utils.Ports">Test.Utils.Ports</a></td></tr><tr><td class="src">skipOnWindows</td><td class="module"><a href="Test-Utils-Windows.html#v:skipOnWindows" title="Test.Utils.Windows">Test.Utils.Windows</a></td></tr><tr><td class="src">UniformTime</td><td class="module"><a href="Test-Utils-Time.html#t:UniformTime" title="Test.Utils.Time">Test.Utils.Time</a></td></tr><tr><td class="src">whenWindows</td><td class="module"><a href="Test-Utils-Windows.html#v:whenWindows" title="Test.Utils.Windows">Test.Utils.Windows</a></td></tr></table></div></div><div id="footer"><p>Produced by <a href="http://www.haskell.org/haddock/">Haddock</a> version 2.22.0</p></div></body></html>
@@ -1 +1 @@
[{"display_html":"<a href=\"#v:aroundAll\">aroundAll</a> :: <span class=\"keyword\">forall</span> a. <a href=\"../base-4.12.0.0/GHC-Stack.html#t:HasCallStack\" title=\"GHC.Stack\">HasCallStack</a> =&gt; (ActionWith a -&gt; <a href=\"../base-4.12.0.0/System-IO.html#t:IO\" title=\"System.IO\">IO</a> ()) -&gt; SpecWith a -&gt; Spec","name":"aroundAll","module":"Test.Hspec.Extra","link":"Test-Hspec-Extra.html#v:aroundAll"},{"display_html":"<a href=\"#v:randomUnusedTCPPorts\">randomUnusedTCPPorts</a> :: <a href=\"../base-4.12.0.0/Data-Int.html#t:Int\" title=\"Data.Int\">Int</a> -&gt; <a href=\"../base-4.12.0.0/System-IO.html#t:IO\" title=\"System.IO\">IO</a> [<a href=\"../base-4.12.0.0/Data-Int.html#t:Int\" title=\"Data.Int\">Int</a>]","name":"randomUnusedTCPPorts","module":"Test.Utils.Ports","link":"Test-Utils-Ports.html#v:randomUnusedTCPPorts"},{"display_html":"<a href=\"#v:findPort\">findPort</a> :: <a href=\"../base-4.12.0.0/System-IO.html#t:IO\" title=\"System.IO\">IO</a> <a href=\"../base-4.12.0.0/Data-Int.html#t:Int\" title=\"Data.Int\">Int</a>","name":"findPort","module":"Test.Utils.Ports","link":"Test-Utils-Ports.html#v:findPort"},{"display_html":"<a href=\"#v:isPortOpen\">isPortOpen</a> :: SockAddr -&gt; <a href=\"../base-4.12.0.0/System-IO.html#t:IO\" title=\"System.IO\">IO</a> <a href=\"../base-4.12.0.0/Data-Bool.html#t:Bool\" title=\"Data.Bool\">Bool</a>","name":"isPortOpen","module":"Test.Utils.Ports","link":"Test-Utils-Ports.html#v:isPortOpen"},{"display_html":"<a href=\"#v:simpleSockAddr\">simpleSockAddr</a> :: (<a href=\"../base-4.12.0.0/Data-Word.html#t:Word8\" title=\"Data.Word\">Word8</a>, <a href=\"../base-4.12.0.0/Data-Word.html#t:Word8\" title=\"Data.Word\">Word8</a>, <a href=\"../base-4.12.0.0/Data-Word.html#t:Word8\" title=\"Data.Word\">Word8</a>, <a href=\"../base-4.12.0.0/Data-Word.html#t:Word8\" title=\"Data.Word\">Word8</a>) -&gt; PortNumber -&gt; SockAddr","name":"simpleSockAddr","module":"Test.Utils.Ports","link":"Test-Utils-Ports.html#v:simpleSockAddr"},{"display_html":"<span class=\"keyword\">data</span> <a href=\"#t:UniformTime\">UniformTime</a>","name":"UniformTime","module":"Test.Utils.Time","link":"Test-Utils-Time.html#t:UniformTime"},{"display_html":"<a href=\"#v:genUniformTime\">genUniformTime</a> :: Gen <a href=\"../time-1.8.0.2/Data-Time-Clock.html#t:UTCTime\" title=\"Data.Time.Clock\">UTCTime</a>","name":"genUniformTime","module":"Test.Utils.Time","link":"Test-Utils-Time.html#v:genUniformTime"},{"display_html":"<a href=\"#v:getUniformTime\">getUniformTime</a> :: <a href=\"Test-Utils-Time.html#t:UniformTime\" title=\"Test.Utils.Time\">UniformTime</a> -&gt; <a href=\"../time-1.8.0.2/Data-Time-Clock.html#t:UTCTime\" title=\"Data.Time.Clock\">UTCTime</a>","name":"getUniformTime","module":"Test.Utils.Time","link":"Test-Utils-Time.html#v:getUniformTime"},{"display_html":"<a href=\"#v:skipOnWindows\">skipOnWindows</a> :: <a href=\"../base-4.12.0.0/GHC-Stack.html#t:HasCallStack\" title=\"GHC.Stack\">HasCallStack</a> =&gt; <a href=\"../base-4.12.0.0/Data-String.html#t:String\" title=\"Data.String\">String</a> -&gt; Expectation","name":"skipOnWindows","module":"Test.Utils.Windows","link":"Test-Utils-Windows.html#v:skipOnWindows"},{"display_html":"<a href=\"#v:pendingOnWindows\">pendingOnWindows</a> :: <a href=\"../base-4.12.0.0/GHC-Stack.html#t:HasCallStack\" title=\"GHC.Stack\">HasCallStack</a> =&gt; <a href=\"../base-4.12.0.0/Data-String.html#t:String\" title=\"Data.String\">String</a> -&gt; Expectation","name":"pendingOnWindows","module":"Test.Utils.Windows","link":"Test-Utils-Windows.html#v:pendingOnWindows"},{"display_html":"<a href=\"#v:whenWindows\">whenWindows</a> :: <a href=\"../base-4.12.0.0/System-IO.html#t:IO\" title=\"System.IO\">IO</a> () -&gt; <a href=\"../base-4.12.0.0/System-IO.html#t:IO\" title=\"System.IO\">IO</a> ()","name":"whenWindows","module":"Test.Utils.Windows","link":"Test-Utils-Windows.html#v:whenWindows"},{"display_html":"<a href=\"#v:isWindows\">isWindows</a> :: <a href=\"../base-4.12.0.0/Data-Bool.html#t:Bool\" title=\"Data.Bool\">Bool</a>","name":"isWindows","module":"Test.Utils.Windows","link":"Test-Utils-Windows.html#v:isWindows"}]
[{"display_html":"<a href=\"#v:aroundAll\">aroundAll</a> :: <span class=\"keyword\">forall</span> a. <a href=\"../base-4.12.0.0/GHC-Stack.html#t:HasCallStack\" title=\"GHC.Stack\">HasCallStack</a> =&gt; (ActionWith a -&gt; <a href=\"../base-4.12.0.0/System-IO.html#t:IO\" title=\"System.IO\">IO</a> ()) -&gt; SpecWith a -&gt; Spec","name":"aroundAll","module":"Test.Hspec.Extra","link":"Test-Hspec-Extra.html#v:aroundAll"},{"display_html":"<a href=\"#v:getTestData\">getTestData</a> :: <a href=\"../template-haskell-2.14.0.0/Language-Haskell-TH-Syntax.html#t:Q\" title=\"Language.Haskell.TH.Syntax\">Q</a> <a href=\"../template-haskell-2.14.0.0/Language-Haskell-TH-Syntax.html#t:Exp\" title=\"Language.Haskell.TH.Syntax\">Exp</a>","name":"getTestData","module":"Test.Utils.Paths","link":"Test-Utils-Paths.html#v:getTestData"},{"display_html":"<a href=\"#v:randomUnusedTCPPorts\">randomUnusedTCPPorts</a> :: <a href=\"../base-4.12.0.0/Data-Int.html#t:Int\" title=\"Data.Int\">Int</a> -&gt; <a href=\"../base-4.12.0.0/System-IO.html#t:IO\" title=\"System.IO\">IO</a> [<a href=\"../base-4.12.0.0/Data-Int.html#t:Int\" title=\"Data.Int\">Int</a>]","name":"randomUnusedTCPPorts","module":"Test.Utils.Ports","link":"Test-Utils-Ports.html#v:randomUnusedTCPPorts"},{"display_html":"<a href=\"#v:findPort\">findPort</a> :: <a href=\"../base-4.12.0.0/System-IO.html#t:IO\" title=\"System.IO\">IO</a> <a href=\"../base-4.12.0.0/Data-Int.html#t:Int\" title=\"Data.Int\">Int</a>","name":"findPort","module":"Test.Utils.Ports","link":"Test-Utils-Ports.html#v:findPort"},{"display_html":"<a href=\"#v:isPortOpen\">isPortOpen</a> :: SockAddr -&gt; <a href=\"../base-4.12.0.0/System-IO.html#t:IO\" title=\"System.IO\">IO</a> <a href=\"../base-4.12.0.0/Data-Bool.html#t:Bool\" title=\"Data.Bool\">Bool</a>","name":"isPortOpen","module":"Test.Utils.Ports","link":"Test-Utils-Ports.html#v:isPortOpen"},{"display_html":"<a href=\"#v:simpleSockAddr\">simpleSockAddr</a> :: (<a href=\"../base-4.12.0.0/Data-Word.html#t:Word8\" title=\"Data.Word\">Word8</a>, <a href=\"../base-4.12.0.0/Data-Word.html#t:Word8\" title=\"Data.Word\">Word8</a>, <a href=\"../base-4.12.0.0/Data-Word.html#t:Word8\" title=\"Data.Word\">Word8</a>, <a href=\"../base-4.12.0.0/Data-Word.html#t:Word8\" title=\"Data.Word\">Word8</a>) -&gt; PortNumber -&gt; SockAddr","name":"simpleSockAddr","module":"Test.Utils.Ports","link":"Test-Utils-Ports.html#v:simpleSockAddr"},{"display_html":"<span class=\"keyword\">data</span> <a href=\"#t:UniformTime\">UniformTime</a>","name":"UniformTime","module":"Test.Utils.Time","link":"Test-Utils-Time.html#t:UniformTime"},{"display_html":"<a href=\"#v:genUniformTime\">genUniformTime</a> :: Gen <a href=\"../time-1.8.0.2/Data-Time-Clock.html#t:UTCTime\" title=\"Data.Time.Clock\">UTCTime</a>","name":"genUniformTime","module":"Test.Utils.Time","link":"Test-Utils-Time.html#v:genUniformTime"},{"display_html":"<a href=\"#v:getUniformTime\">getUniformTime</a> :: <a href=\"Test-Utils-Time.html#t:UniformTime\" title=\"Test.Utils.Time\">UniformTime</a> -&gt; <a href=\"../time-1.8.0.2/Data-Time-Clock.html#t:UTCTime\" title=\"Data.Time.Clock\">UTCTime</a>","name":"getUniformTime","module":"Test.Utils.Time","link":"Test-Utils-Time.html#v:getUniformTime"},{"display_html":"<a href=\"#v:skipOnWindows\">skipOnWindows</a> :: <a href=\"../base-4.12.0.0/GHC-Stack.html#t:HasCallStack\" title=\"GHC.Stack\">HasCallStack</a> =&gt; <a href=\"../base-4.12.0.0/Data-String.html#t:String\" title=\"Data.String\">String</a> -&gt; Expectation","name":"skipOnWindows","module":"Test.Utils.Windows","link":"Test-Utils-Windows.html#v:skipOnWindows"},{"display_html":"<a href=\"#v:pendingOnWindows\">pendingOnWindows</a> :: <a href=\"../base-4.12.0.0/GHC-Stack.html#t:HasCallStack\" title=\"GHC.Stack\">HasCallStack</a> =&gt; <a href=\"../base-4.12.0.0/Data-String.html#t:String\" title=\"Data.String\">String</a> -&gt; Expectation","name":"pendingOnWindows","module":"Test.Utils.Windows","link":"Test-Utils-Windows.html#v:pendingOnWindows"},{"display_html":"<a href=\"#v:whenWindows\">whenWindows</a> :: <a href=\"../base-4.12.0.0/System-IO.html#t:IO\" title=\"System.IO\">IO</a> () -&gt; <a href=\"../base-4.12.0.0/System-IO.html#t:IO\" title=\"System.IO\">IO</a> ()","name":"whenWindows","module":"Test.Utils.Windows","link":"Test-Utils-Windows.html#v:whenWindows"},{"display_html":"<a href=\"#v:isWindows\">isWindows</a> :: <a href=\"../base-4.12.0.0/Data-Bool.html#t:Bool\" title=\"Data.Bool\">Bool</a>","name":"isWindows","module":"Test.Utils.Windows","link":"Test-Utils-Windows.html#v:isWindows"}]

0 comments on commit f6d9fae

Please sign in to comment.
You can’t perform that action at this time.