Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Miscellaneous exports that need to be exposed, but aren't super interesting. Gathered here to avoid cluttering other files.
Synopsis
- data ExampleT context m a
- type ExampleM context = ExampleT context IO
- type Spec context m = SpecFree context m ()
- type SpecFree context m a = Free (SpecCommand context m) a
- type CoreSpec = Spec BaseContext IO
- type TopSpec = forall context. (HasBaseContext context, Typeable context) => SpecFree context IO ()
- type TopSpecWithOptions = forall context. (Typeable context, HasBaseContext context, HasCommandLineOptions context (), HasSomeCommandLineOptions context) => SpecFree context IO ()
- type TopSpecWithOptions' a = forall context. (Typeable context, HasBaseContext context, HasCommandLineOptions context a, HasSomeCommandLineOptions context) => SpecFree context IO ()
- isEmptySpec :: forall context. Free (SpecCommand context IO) () -> Bool
- data CommandLineOptions a = CommandLineOptions {
- optFormatter :: FormatterType
- optLogLevel :: Maybe LogLevel
- optVisibilityThreshold :: Maybe Int
- optTreePrune :: [String]
- optTreeFilter :: [String]
- optRepeatCount :: Int
- optFixedRoot :: Maybe String
- optDryRun :: Maybe Bool
- optMarkdownSummaryPath :: Maybe FilePath
- optListAvailableTests :: Maybe Bool
- optPrintGoldenFlags :: Maybe Bool
- optPrintQuickCheckFlags :: Maybe Bool
- optPrintHedgehogFlags :: Maybe Bool
- optPrintSlackFlags :: Maybe Bool
- optPrintWebDriverFlags :: Maybe Bool
- optIndividualTestModule :: Maybe IndividualTestModule
- optGoldenOptions :: CommandLineGoldenOptions
- optQuickCheckOptions :: CommandLineQuickCheckOptions
- optHedgehogOptions :: CommandLineHedgehogOptions
- optSlackOptions :: CommandLineSlackOptions
- optWebdriverOptions :: CommandLineWebdriverOptions
- optUserOptions :: a
- data CommandLineQuickCheckOptions = CommandLineQuickCheckOptions {}
- data CommandLineHedgehogOptions = CommandLineHedgehogOptions {}
- data CommandLineSlackOptions = CommandLineSlackOptions {}
- data CommandLineWebdriverOptions = CommandLineWebdriverOptions {}
- data BrowserToUse
- data DisplayType
- commandLineOptionsWithInfo :: Parser a -> Parser (Maybe IndividualTestModule) -> ParserInfo (CommandLineOptions a)
- data Label (l :: Symbol) a = Label
- data LabelValue (l :: Symbol) a = LabelValue {
- unLabelValue :: a
- class HasLabel context (l :: Symbol) a
- data (a :: Type) :> (b :: Type)
- data BaseContext
- class HasBaseContext a
- type HasBaseContextMonad context m = (HasBaseContext context, MonadReader context m)
- type HasCommandLineOptions context a = HasLabel context "commandLineOptions" (CommandLineOptions a)
- data SomeCommandLineOptions where
- type HasSomeCommandLineOptions context = HasLabel context "someCommandLineOptions" SomeCommandLineOptions
- data Result
- data FailureReason
- = Reason { }
- | ExpectedButGot {
- failureCallStack :: Maybe CallStack
- failureValue1 :: ShowEqBox
- failureValue2 :: ShowEqBox
- | DidNotExpectButGot {
- failureCallStack :: Maybe CallStack
- failureValue1 :: ShowEqBox
- | GotException { }
- | Pending { }
- | GetContextException { }
- | GotAsyncException { }
- | ChildrenFailed { }
- | RawImage { }
- data SomeExceptionWithCallStack = forall e.Exception e => SomeExceptionWithCallStack e CallStack
- newtype SomeExceptionWithEq = SomeExceptionWithEq SomeException
- data ExitReason
The example monad
data ExampleT context m a Source #
Instances
Spec types
type SpecFree context m a = Free (SpecCommand context m) a Source #
type TopSpec = forall context. (HasBaseContext context, Typeable context) => SpecFree context IO () Source #
type TopSpecWithOptions = forall context. (Typeable context, HasBaseContext context, HasCommandLineOptions context (), HasSomeCommandLineOptions context) => SpecFree context IO () Source #
type TopSpecWithOptions' a = forall context. (Typeable context, HasBaseContext context, HasCommandLineOptions context a, HasSomeCommandLineOptions context) => SpecFree context IO () Source #
isEmptySpec :: forall context. Free (SpecCommand context IO) () -> Bool Source #
Command line options
data CommandLineOptions a Source #
CommandLineOptions | |
|
Instances
Show a => Show (CommandLineOptions a) Source # | |
Defined in Test.Sandwich.Types.ArgParsing showsPrec :: Int -> CommandLineOptions a -> ShowS # show :: CommandLineOptions a -> String # showList :: [CommandLineOptions a] -> ShowS # |
data CommandLineQuickCheckOptions Source #
Instances
Show CommandLineQuickCheckOptions Source # | |
Defined in Test.Sandwich.Types.ArgParsing showsPrec :: Int -> CommandLineQuickCheckOptions -> ShowS # show :: CommandLineQuickCheckOptions -> String # showList :: [CommandLineQuickCheckOptions] -> ShowS # |
data CommandLineHedgehogOptions Source #
Instances
Show CommandLineHedgehogOptions Source # | |
Defined in Test.Sandwich.Types.ArgParsing showsPrec :: Int -> CommandLineHedgehogOptions -> ShowS # show :: CommandLineHedgehogOptions -> String # showList :: [CommandLineHedgehogOptions] -> ShowS # |
data CommandLineSlackOptions Source #
Instances
Show CommandLineSlackOptions Source # | |
Defined in Test.Sandwich.Types.ArgParsing showsPrec :: Int -> CommandLineSlackOptions -> ShowS # show :: CommandLineSlackOptions -> String # showList :: [CommandLineSlackOptions] -> ShowS # |
data CommandLineWebdriverOptions Source #
Instances
Show CommandLineWebdriverOptions Source # | |
Defined in Test.Sandwich.Types.ArgParsing showsPrec :: Int -> CommandLineWebdriverOptions -> ShowS # show :: CommandLineWebdriverOptions -> String # showList :: [CommandLineWebdriverOptions] -> ShowS # |
data BrowserToUse Source #
Instances
Show BrowserToUse Source # | |
Defined in Test.Sandwich.Types.ArgParsing showsPrec :: Int -> BrowserToUse -> ShowS # show :: BrowserToUse -> String # showList :: [BrowserToUse] -> ShowS # |
data DisplayType Source #
Instances
Read DisplayType Source # | |
Defined in Test.Sandwich.Types.ArgParsing readsPrec :: Int -> ReadS DisplayType # readList :: ReadS [DisplayType] # readPrec :: ReadPrec DisplayType # readListPrec :: ReadPrec [DisplayType] # | |
Show DisplayType Source # | |
Defined in Test.Sandwich.Types.ArgParsing showsPrec :: Int -> DisplayType -> ShowS # show :: DisplayType -> String # showList :: [DisplayType] -> ShowS # |
commandLineOptionsWithInfo :: Parser a -> Parser (Maybe IndividualTestModule) -> ParserInfo (CommandLineOptions a) Source #
Labels
data LabelValue (l :: Symbol) a Source #
LabelValue | |
|
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 |
class HasLabel context (l :: Symbol) a Source #
getLabelValue
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 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) l a Source # | |
Defined in Test.Sandwich.Types.Spec getLabelValue :: Label l a -> LabelValue l a -> a |
data (a :: Type) :> (b :: Type) infixr 9 Source #
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 (LabelValue l a :> context) l a Source # | |
Defined in Test.Sandwich.Types.Spec getLabelValue :: Label l a -> (LabelValue l a :> context) -> a | |
HasLabel context l a => HasLabel (intro :> context) l a Source # | |
Defined in Test.Sandwich.Types.Spec getLabelValue :: Label l a -> (intro :> context) -> a |
Context classes
data BaseContext Source #
The base context available to every test node. Contains various paths and timing information.
Instances
HasBaseContext BaseContext Source # | |
Defined in Test.Sandwich.Types.RunTree getBaseContext :: BaseContext -> BaseContext modifyBaseContext :: BaseContext -> (BaseContext -> BaseContext) -> BaseContext |
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 |
type HasBaseContextMonad context m = (HasBaseContext context, MonadReader context m) Source #
type HasCommandLineOptions context a = HasLabel context "commandLineOptions" (CommandLineOptions a) Source #
Has-* class for asserting a 'CommandLineOptions a' is available.
data SomeCommandLineOptions where Source #
type HasSomeCommandLineOptions context = HasLabel context "someCommandLineOptions" SomeCommandLineOptions Source #
Result types
data FailureReason Source #
Reason | |
ExpectedButGot | |
| |
DidNotExpectButGot | |
| |
GotException | |
Pending | |
GetContextException | |
GotAsyncException | |
ChildrenFailed | |
RawImage | |
Instances
Exception FailureReason Source # | |
Defined in Test.Sandwich.Types.Spec | |
Show FailureReason Source # | |
Defined in Test.Sandwich.Types.Spec showsPrec :: Int -> FailureReason -> ShowS # show :: FailureReason -> String # showList :: [FailureReason] -> ShowS # | |
Eq FailureReason Source # | |
Defined in Test.Sandwich.Types.Spec (==) :: FailureReason -> FailureReason -> Bool # (/=) :: FailureReason -> FailureReason -> Bool # |
data SomeExceptionWithCallStack Source #
A wrapper type for exceptions with attached callstacks. Haskell doesn't currently offer a way to reliably get a callstack from an exception, but if you can throw (or catch+rethrow) this type then we'll unwrap it and present the callstack nicely.
forall e.Exception e => SomeExceptionWithCallStack e CallStack |
Instances
newtype SomeExceptionWithEq Source #
Instances
Show SomeExceptionWithEq Source # | |
Defined in Test.Sandwich.Types.Spec showsPrec :: Int -> SomeExceptionWithEq -> ShowS # show :: SomeExceptionWithEq -> String # showList :: [SomeExceptionWithEq] -> ShowS # | |
Eq SomeExceptionWithEq Source # | |
Defined in Test.Sandwich.Types.Spec (==) :: SomeExceptionWithEq -> SomeExceptionWithEq -> Bool # (/=) :: SomeExceptionWithEq -> SomeExceptionWithEq -> Bool # |
data ExitReason Source #
Instances
Show ExitReason Source # | |
Defined in Test.Sandwich.Types.General showsPrec :: Int -> ExitReason -> ShowS # show :: ExitReason -> String # showList :: [ExitReason] -> ShowS # | |
Eq ExitReason Source # | |
Defined in Test.Sandwich.Types.General (==) :: ExitReason -> ExitReason -> Bool # (/=) :: ExitReason -> ExitReason -> Bool # |