Safe Haskell | None |
---|---|
Language | Haskell2010 |
Internal functionality exposed for sibling libraries such as sandwich-webdriver to use. Should not be used otherwise.
Synopsis
- type Spec context m = SpecFree context m ()
- type SpecFree context m a = Free (SpecCommand context m) a
- class HasBaseContext a
- class HasLabel context (l :: Symbol) a
- data LabelValue (l :: Symbol) a = LabelValue a
- data (a :: *) :> (b :: *) = a :> b
- type ExampleM context = ExampleT context IO
- newtype ExampleT context m a = ExampleT {
- unExampleT :: ReaderT context (LoggingT m) a
- data RunNodeWithStatus context s l t where
- RunNodeBefore :: {..} -> RunNodeWithStatus context s l t
- RunNodeAfter :: {..} -> RunNodeWithStatus context s l t
- RunNodeIntroduce :: Typeable intro => {..} -> RunNodeWithStatus context s l t
- RunNodeIntroduceWith :: {..} -> RunNodeWithStatus context s l t
- RunNodeAround :: {..} -> RunNodeWithStatus context s l t
- RunNodeDescribe :: {..} -> RunNodeWithStatus context s l t
- RunNodeParallel :: {..} -> RunNodeWithStatus context s l t
- RunNodeIt :: {..} -> RunNodeWithStatus context s l t
- type RunNodeFixed context = RunNodeWithStatus context Status (Seq LogEntry) Bool
- type RunNode context = RunNodeWithStatus context (Var Status) (Var (Seq LogEntry)) (Var Bool)
- data RunNodeCommonWithStatus s l t = RunNodeCommonWithStatus {
- runTreeLabel :: String
- runTreeId :: Int
- runTreeAncestors :: Seq Int
- runTreeToggled :: t
- runTreeOpen :: t
- runTreeStatus :: s
- runTreeVisible :: Bool
- runTreeFolder :: Maybe FilePath
- runTreeVisibilityLevel :: Int
- runTreeRecordTime :: Bool
- runTreeLogs :: l
- runTreeLoc :: Maybe SrcLoc
- extractValues :: (forall context. RunNodeWithStatus context s l t -> a) -> RunNodeWithStatus context s l t -> [a]
- extractValuesControlRecurse :: (forall context. RunNodeWithStatus context s l t -> (Bool, a)) -> RunNodeWithStatus context s l t -> [a]
- getCommons :: RunNodeWithStatus context s l t -> [RunNodeCommonWithStatus s l t]
- cancelNode :: RunNode context -> IO ()
- data Status
- = NotStarted
- | Running { }
- | Done { }
- fixRunTree :: RunNode context -> STM (RunNodeFixed context)
- waitForTree :: RunNode context -> IO Result
- newtype SomeAsyncExceptionWithEq = SomeAsyncExceptionWithEq SomeAsyncException
- logEntryStr :: LogEntry -> LogStr
Documentation
class HasBaseContext a Source #
Has-* class for asserting a BaseContext
is available.
getBaseContext, modifyBaseContext
Instances
HasBaseContext BaseContext Source # | |
Defined in Test.Sandwich.Types.RunTree getBaseContext :: BaseContext -> BaseContext modifyBaseContext :: BaseContext -> (BaseContext -> BaseContext) -> BaseContext | |
HasBaseContext context => HasBaseContext (intro :> context) Source # | |
Defined in Test.Sandwich.Types.RunTree getBaseContext :: (intro :> context) -> BaseContext modifyBaseContext :: (intro :> context) -> (BaseContext -> BaseContext) -> intro :> context |
class HasLabel context (l :: Symbol) a Source #
getLabelValue
Instances
HasLabel context l a => HasLabel (intro :> context) l a Source # | |
Defined in Test.Sandwich.Types.Spec getLabelValue :: Label l a -> (intro :> context) -> a | |
HasLabel (LabelValue l a :> context) l a Source # | |
Defined in Test.Sandwich.Types.Spec getLabelValue :: Label l a -> (LabelValue l a :> context) -> a | |
HasLabel (LabelValue l a) l a Source # | |
Defined in Test.Sandwich.Types.Spec getLabelValue :: Label l a -> LabelValue l a -> a |
data LabelValue (l :: Symbol) a Source #
Instances
HasLabel (LabelValue l a :> context) l a Source # | |
Defined in Test.Sandwich.Types.Spec getLabelValue :: Label l a -> (LabelValue l a :> context) -> a | |
HasLabel (LabelValue l a) l a Source # | |
Defined in Test.Sandwich.Types.Spec getLabelValue :: Label l a -> LabelValue l a -> a |
data (a :: *) :> (b :: *) infixr 9 Source #
a :> b infixr 9 |
Instances
(Show a, Show b) => Show (a :> b) Source # | |
HasBaseContext context => HasBaseContext (intro :> context) Source # | |
Defined in Test.Sandwich.Types.RunTree getBaseContext :: (intro :> context) -> BaseContext modifyBaseContext :: (intro :> context) -> (BaseContext -> BaseContext) -> intro :> context | |
HasLabel context l a => HasLabel (intro :> context) l a Source # | |
Defined in Test.Sandwich.Types.Spec getLabelValue :: Label l a -> (intro :> context) -> a | |
HasLabel (LabelValue l a :> context) l a Source # | |
Defined in Test.Sandwich.Types.Spec getLabelValue :: Label l a -> (LabelValue l a :> context) -> a |
newtype ExampleT context m a Source #
ExampleT | |
|
Instances
data RunNodeWithStatus context s l t where Source #
type RunNodeFixed context = RunNodeWithStatus context Status (Seq LogEntry) Bool Source #
type RunNode context = RunNodeWithStatus context (Var Status) (Var (Seq LogEntry)) (Var Bool) Source #
data RunNodeCommonWithStatus s l t Source #
RunNodeCommonWithStatus | |
|
Instances
(Eq t, Eq s, Eq l) => Eq (RunNodeCommonWithStatus s l t) Source # | |
Defined in Test.Sandwich.Types.RunTree (==) :: RunNodeCommonWithStatus s l t -> RunNodeCommonWithStatus s l t -> Bool # (/=) :: RunNodeCommonWithStatus s l t -> RunNodeCommonWithStatus s l t -> Bool # | |
(Show t, Show s, Show l) => Show (RunNodeCommonWithStatus s l t) Source # | |
Defined in Test.Sandwich.Types.RunTree showsPrec :: Int -> RunNodeCommonWithStatus s l t -> ShowS # show :: RunNodeCommonWithStatus s l t -> String # showList :: [RunNodeCommonWithStatus s l t] -> ShowS # |
extractValues :: (forall context. RunNodeWithStatus context s l t -> a) -> RunNodeWithStatus context s l t -> [a] Source #
extractValuesControlRecurse :: (forall context. RunNodeWithStatus context s l t -> (Bool, a)) -> RunNodeWithStatus context s l t -> [a] Source #
getCommons :: RunNodeWithStatus context s l t -> [RunNodeCommonWithStatus s l t] Source #
cancelNode :: RunNode context -> IO () Source #
fixRunTree :: RunNode context -> STM (RunNodeFixed context) Source #
waitForTree :: RunNode context -> IO Result Source #
Wait for a tree, catching any synchronous exceptions and returning them as a list
newtype SomeAsyncExceptionWithEq Source #
Instances
Eq SomeAsyncExceptionWithEq Source # | |
Defined in Test.Sandwich.Types.Spec | |
Show SomeAsyncExceptionWithEq Source # | |
Defined in Test.Sandwich.Types.Spec showsPrec :: Int -> SomeAsyncExceptionWithEq -> ShowS # show :: SomeAsyncExceptionWithEq -> String # showList :: [SomeAsyncExceptionWithEq] -> ShowS # |
logEntryStr :: LogEntry -> LogStr Source #