Safe Haskell | None |
---|
Test.Ganeti.Query.Language
Contents
Description
Unittests for ganeti-htools.
Synopsis
- genFilter :: Gen (Filter FilterField)
- genJSValue :: Gen JSValue
- 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.
genJSValue :: Gen JSValue Source #
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
.
testQuery_Language :: Test Source #
Orphan instances
Arbitrary ResultStatus # | |
Arbitrary FieldType # | |
Arbitrary QueryTypeOp # | |
Arbitrary QueryTypeLuxi # | |
Arbitrary FilterRegex # | |
Arbitrary ItemType # | |
Arbitrary FieldDefinition # | |
Arbitrary QueryFieldsResult # | |
Arbitrary (Filter FilterField) # | |