Safe Haskell | Safe-Inferred |
---|---|
Language | GHC2021 |
Test.FeatureFlags.Util
Documentation
Constructors
InternalAPI | |
PublicAPI |
defEnabledObj :: Value -> Value Source #
hasExplicitLockStatus :: String -> Bool Source #
checkFeature :: (HasCallStack, MakesValue user, MakesValue tid) => String -> user -> tid -> Value -> App () Source #
assertForbidden :: HasCallStack => Response -> App () Source #
data ConfCalling Source #
Constructors
ConfCalling | |
Instances
Default ConfCalling Source # | |
Defined in Test.FeatureFlags.Util Methods def :: ConfCalling Source # |
confCalling :: ConfCalling -> Value Source #
checkPatch :: (HasCallStack, MakesValue domain) => domain -> String -> Value -> App () Source #
checkPatchWithTable :: (HasCallStack, MakesValue domain) => FeatureTable -> domain -> String -> Value -> App () Source #
data FeatureTests Source #
Constructors
FeatureTests | |
mkFeatureTests :: String -> FeatureTests Source #
addUpdate :: Value -> FeatureTests -> FeatureTests Source #
addInvalidUpdate :: Value -> FeatureTests -> FeatureTests Source #
setOwner :: MakesValue user => user -> FeatureTests -> App FeatureTests Source #
setTable :: FeatureTable -> FeatureTests -> FeatureTests Source #
runFeatureTests :: (HasCallStack, MakesValue domain) => domain -> APIAccess -> FeatureTests -> App () Source #
data FeatureTable Source #
Constructors
FeatureTableLegacy | |
FeatureTableDyn |
Instances
Generic FeatureTable Source # | |
Defined in Test.FeatureFlags.Util Associated Types type Rep FeatureTable :: Type -> Type # | |
Show FeatureTable Source # | |
Defined in Test.FeatureFlags.Util Methods showsPrec :: Int -> FeatureTable -> ShowS # show :: FeatureTable -> String # showList :: [FeatureTable] -> ShowS # | |
Eq FeatureTable Source # | |
Defined in Test.FeatureFlags.Util | |
type Rep FeatureTable Source # | |
Defined in Test.FeatureFlags.Util |
updateMigrationState :: (HasCallStack, MakesValue domain) => domain -> String -> FeatureTable -> App () Source #
runFeatureTestsReadOnly :: (HasCallStack, MakesValue domain) => domain -> APIAccess -> FeatureTests -> App () Source #
assertMigrationInProgress :: HasCallStack => Response -> App () Source #
checkPatchReadOnly :: (HasCallStack, MakesValue domain) => domain -> String -> Value -> App () Source #