Revision c15f7183 Ganeti/HTools/QC.hs

b/Ganeti/HTools/QC.hs
24 24
-}
25 25

  
26 26
module Ganeti.HTools.QC
27
    ( test_PeerMap
28
    , test_Container
29
    , test_Instance
30
    , test_Node
31
    , test_Text
32
    , test_Cluster
27
    ( testPeerMap
28
    , testContainer
29
    , testInstance
30
    , testNode
31
    , testText
32
    , testCluster
33 33
    ) where
34 34

  
35 35
import Test.QuickCheck
......
122 122
    where _types = pmap::PeerMap.PeerMap
123 123
          puniq = PeerMap.accumArray const pmap
124 124

  
125
test_PeerMap =
125
testPeerMap =
126 126
    [ run prop_PeerMap_addIdempotent
127 127
    , run prop_PeerMap_removeIdempotent
128 128
    , run prop_PeerMap_maxElem
......
140 140
          cont = foldl (\c x -> Container.add x x c) Container.empty cdata
141 141
          fn x1 x2 = Container.addTwo x1 x1 x2 x2
142 142

  
143
test_Container =
143
testContainer =
144 144
    [ run prop_Container_addTwo ]
145 145

  
146 146
-- Simple instance tests, we only have setter/getters
......
178 178
    in
179 179
      run_tx /= "running" && run_tx /= "ERROR_up" ==> run_st == False
180 180

  
181
test_Instance =
181
testInstance =
182 182
    [ run prop_Instance_setIdx
183 183
    , run prop_Instance_setName
184 184
    , run prop_Instance_setPri
......
216 216
             Instance.pNode i == pdx &&
217 217
             Instance.sNode i == rsdx)
218 218

  
219
test_Text =
219
testText =
220 220
    [ run prop_Text_Load_Instance
221 221
    ]
222 222

  
......
239 239
    ==> isFailure (Node.addSec node inst pdx)
240 240
        where _types = (node::Node.Node, inst::Instance.Instance, pdx::Int)
241 241

  
242
test_Node =
242
testNode =
243 243
    [ run prop_Node_addPri
244 244
    , run prop_Node_addSec
245 245
    ]
......
259 259
    -- this should be much lower than the default score in CLI.hs
260 260
    in score <= 1e-15
261 261

  
262
test_Cluster =
262
testCluster =
263 263
    [ run prop_Score_Zero
264 264
    ]

Also available in: Unified diff