ganeti

Safe HaskellNone

Test.Ganeti.Query.Language

Contents

Description

Unittests for ganeti-htools.

Synopsis

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.

Orphan instances

Arbitrary ResultStatus # 
Instance details

Arbitrary FieldType # 
Instance details

Arbitrary QueryTypeOp # 
Instance details

Arbitrary QueryTypeLuxi # 
Instance details

Arbitrary FilterRegex # 
Instance details

Arbitrary ItemType # 
Instance details

Arbitrary FieldDefinition # 
Instance details

Arbitrary QueryFieldsResult # 
Instance details

Arbitrary (Filter FilterField) # 
Instance details