Safe Haskell | None |
---|
Unittests for ganeti-htools.
- genFilter :: Gen (Filter FilterField)
- genFilter' :: Int -> Gen (Filter FilterField)
- genJSValue :: Gen JSValue
- genResultEntry :: Gen ResultEntry
- prop_filter_serialisation :: Property
- prop_filterregex_instances :: FilterRegex -> Property
- prop_resultstatus_serialisation :: ResultStatus -> Property
- prop_fieldtype_serialisation :: FieldType -> Property
- prop_fielddef_serialisation :: FieldDefinition -> Property
- prop_resultentry_serialisation :: Property
- prop_fieldsresult_serialisation :: Property
- prop_itemtype_serialisation :: ItemType -> Property
- case_filterParsing :: Assertion
- testQuery_Language :: Test
Documentation
genFilter :: Gen (Filter FilterField)Source
Custom Filter
generator (top-level), which enforces a
(sane) limit on the depth of the generated filters.
genFilter' :: Int -> Gen (Filter FilterField)Source
genJSValue :: Gen JSValueSource
Generates an arbitrary JSValue. We do this via a function a not
via arbitrary instance since that would require us to define an
arbitrary for JSValue, which can be recursive, entering the usual
problems with that; so we only generate the base types, not the
recursive ones, and not JSNull
, which we can't use in a
RSNormal
ResultEntry
.
genResultEntry :: Gen ResultEntrySource
prop_filter_serialisation :: PropertySource
prop_filterregex_instances :: FilterRegex -> PropertySource
prop_resultstatus_serialisation :: ResultStatus -> PropertySource
prop_fieldtype_serialisation :: FieldType -> PropertySource
prop_fielddef_serialisation :: FieldDefinition -> PropertySource
prop_resultentry_serialisation :: PropertySource
prop_fieldsresult_serialisation :: PropertySource
prop_itemtype_serialisation :: ItemType -> PropertySource
case_filterParsing :: AssertionSource
testQuery_Language :: TestSource