Safe Haskell | None |
---|
Unittests for query aliases.
Synopsis
- toFieldNameList :: FieldList a b -> [FieldName]
- toAliasNameList :: [(FieldName, FieldName)] -> [FieldName]
- toAliasTargetList :: [(FieldName, FieldName)] -> [FieldName]
- checkShadowing :: String -> FieldList a b -> [(FieldName, FieldName)] -> Assertion
- checkTargets :: String -> FieldList a b -> [(FieldName, FieldName)] -> Assertion
- case_instanceAliasesNoShadowing :: Assertion
- case_instanceAliasesTargetsExist :: Assertion
- testQuery_Aliases :: Test
Documentation
toFieldNameList :: FieldList a b -> [FieldName] Source #
Converts field list to field name list
toAliasNameList :: [(FieldName, FieldName)] -> [FieldName] Source #
Converts alias list to alias name list
toAliasTargetList :: [(FieldName, FieldName)] -> [FieldName] Source #
Converts alias list to alias target list
checkShadowing :: String -> FieldList a b -> [(FieldName, FieldName)] -> Assertion Source #
Checks for shadowing
checkTargets :: String -> FieldList a b -> [(FieldName, FieldName)] -> Assertion Source #
Checks for target existence
case_instanceAliasesNoShadowing :: Assertion Source #
Check that instance aliases do not shadow existing fields
case_instanceAliasesTargetsExist :: Assertion Source #
Check that instance alias targets exist
testQuery_Aliases :: Test Source #