test-sandbox-0.0.1: Sandbox for system tests

Safe HaskellNone

Test.Sandbox.Internals

Synopsis

Documentation

whenM :: Monad m => m Bool -> m () -> m ()Source

setVariableSource

Arguments

:: Serialize a 
=> String

Variable key for future reference

-> a

Variable value

-> Sandbox a 

Sets a custom variable in the sandbox monad.

checkVariableSource

Arguments

:: String

Variable key

-> Sandbox Bool 

Checks that a custom sandbox variable is set.

getVariableSource

Arguments

:: Serialize a 
=> String

Variable key

-> a

Default value if not found

-> Sandbox a 

Returns the value of a previously set sandbox variable (or a provided default value if unset)

unsetVariableSource

Arguments

:: String

Variable key

-> Sandbox () 

Unsets a custom variable.