htools: import the program modules in QC.hs
authorIustin Pop <iustin@google.com>
Fri, 8 Jul 2011 09:57:06 +0000 (11:57 +0200)
committerIustin Pop <iustin@google.com>
Tue, 19 Jul 2011 14:54:17 +0000 (16:54 +0200)
This adds the binaries code to the coverage, and thus the coverage
finally shows the real coverage over all logic code (except for the
htools.hs code, which is not logic code related to the algorithms, so
it doesn't matter — plus it's also very small).

Next steps will be to actually add coverage for this code, especially
for hbal and hspace, which are relatively big compared to hail and
hscan (around 800 expressions versus 200-300 expressions).

Signed-off-by: Iustin Pop <iustin@google.com>
Reviewed-by: Guido Trotter <ultrotter@google.com>

htools/Ganeti/HTools/QC.hs

index 56ba8be..9497ba9 100644 (file)
@@ -66,6 +66,11 @@ import qualified Ganeti.HTools.Utils as Utils
 import qualified Ganeti.HTools.Version
 import qualified Ganeti.Constants as C
 
+import qualified Ganeti.HTools.Program.Hail
+import qualified Ganeti.HTools.Program.Hbal
+import qualified Ganeti.HTools.Program.Hscan
+import qualified Ganeti.HTools.Program.Hspace
+
 run :: Testable prop => prop -> Args -> IO Result
 run = flip quickCheckWithResult