| Safe Haskell | None |
|---|---|
| Language | GHC2024 |
Arbiter.Test.Fixtures
Description
Shared payload types for the arbiter test suites.
Synopsis
- newtype TestPayload = TestMessage Text
- data WorkerTestPayload
- newtype QueueAPayload = QueueAPayload Text
- newtype QueueBPayload = QueueBPayload Text
Documentation
newtype TestPayloadSource #
A payload for the core operation suites.
Constructors
| TestMessage Text |
Instances
data WorkerTestPayloadSource #
A payload for the worker pool suites, with a failing variant.
Constructors
| SimpleTask Text | |
| FailingTask Int |
Instances
| FromJSON WorkerTestPayload Source # | |||||
Defined in Arbiter.Test.Fixtures Methods parseJSON :: Value -> Parser WorkerTestPayload# parseJSONList :: Value -> Parser [WorkerTestPayload]# | |||||
| ToJSON WorkerTestPayload Source # | |||||
Defined in Arbiter.Test.Fixtures Methods toJSON :: WorkerTestPayload -> Value# toEncoding :: WorkerTestPayload -> Encoding# toJSONList :: [WorkerTestPayload] -> Value# toEncodingList :: [WorkerTestPayload] -> Encoding# omitField :: WorkerTestPayload -> Bool# | |||||
| HasKind WorkerTestPayload Source # | |||||
Defined in Arbiter.Test.Fixtures | |||||
| Eq WorkerTestPayload Source # | |||||
Defined in Arbiter.Test.Fixtures Methods (==) :: WorkerTestPayload -> WorkerTestPayload -> Bool# (/=) :: WorkerTestPayload -> WorkerTestPayload -> Bool# | |||||
| Generic WorkerTestPayload Source # | |||||
Defined in Arbiter.Test.Fixtures Associated Types
Methods from :: WorkerTestPayload -> Rep WorkerTestPayload x# to :: Rep WorkerTestPayload x -> WorkerTestPayload# | |||||
| Show WorkerTestPayload Source # | |||||
Defined in Arbiter.Test.Fixtures Methods showsPrec :: Int -> WorkerTestPayload -> ShowS# show :: WorkerTestPayload -> String# showList :: [WorkerTestPayload] -> ShowS# | |||||
| type Rep WorkerTestPayload Source # | |||||
Defined in Arbiter.Test.Fixtures type Rep WorkerTestPayload = D1 ('MetaData "WorkerTestPayload" "Arbiter.Test.Fixtures" "arbiter-test-0.1.0.0-inplace" 'False) (C1 ('MetaCons "SimpleTask" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text)) :+: C1 ('MetaCons "FailingTask" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Int))) | |||||
newtype QueueAPayloadSource #
The first queue's payload in the multi-queue listener suites.
Constructors
| QueueAPayload Text |
Instances
| FromJSON QueueAPayload Source # | |||||
Defined in Arbiter.Test.Fixtures | |||||
| ToJSON QueueAPayload Source # | |||||
Defined in Arbiter.Test.Fixtures Methods toJSON :: QueueAPayload -> Value# toEncoding :: QueueAPayload -> Encoding# toJSONList :: [QueueAPayload] -> Value# toEncodingList :: [QueueAPayload] -> Encoding# omitField :: QueueAPayload -> Bool# | |||||
| Eq QueueAPayload Source # | |||||
Defined in Arbiter.Test.Fixtures Methods (==) :: QueueAPayload -> QueueAPayload -> Bool# (/=) :: QueueAPayload -> QueueAPayload -> Bool# | |||||
| Generic QueueAPayload Source # | |||||
Defined in Arbiter.Test.Fixtures Associated Types
| |||||
| Show QueueAPayload Source # | |||||
Defined in Arbiter.Test.Fixtures Methods showsPrec :: Int -> QueueAPayload -> ShowS# show :: QueueAPayload -> String# showList :: [QueueAPayload] -> ShowS# | |||||
| type Rep QueueAPayload Source # | |||||
Defined in Arbiter.Test.Fixtures type Rep QueueAPayload = D1 ('MetaData "QueueAPayload" "Arbiter.Test.Fixtures" "arbiter-test-0.1.0.0-inplace" 'True) (C1 ('MetaCons "QueueAPayload" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text))) | |||||
newtype QueueBPayloadSource #
The second queue's payload in the multi-queue listener suites.
Constructors
| QueueBPayload Text |
Instances
| FromJSON QueueBPayload Source # | |||||
Defined in Arbiter.Test.Fixtures | |||||
| ToJSON QueueBPayload Source # | |||||
Defined in Arbiter.Test.Fixtures Methods toJSON :: QueueBPayload -> Value# toEncoding :: QueueBPayload -> Encoding# toJSONList :: [QueueBPayload] -> Value# toEncodingList :: [QueueBPayload] -> Encoding# omitField :: QueueBPayload -> Bool# | |||||
| Eq QueueBPayload Source # | |||||
Defined in Arbiter.Test.Fixtures Methods (==) :: QueueBPayload -> QueueBPayload -> Bool# (/=) :: QueueBPayload -> QueueBPayload -> Bool# | |||||
| Generic QueueBPayload Source # | |||||
Defined in Arbiter.Test.Fixtures Associated Types
| |||||
| Show QueueBPayload Source # | |||||
Defined in Arbiter.Test.Fixtures Methods showsPrec :: Int -> QueueBPayload -> ShowS# show :: QueueBPayload -> String# showList :: [QueueBPayload] -> ShowS# | |||||
| type Rep QueueBPayload Source # | |||||
Defined in Arbiter.Test.Fixtures type Rep QueueBPayload = D1 ('MetaData "QueueBPayload" "Arbiter.Test.Fixtures" "arbiter-test-0.1.0.0-inplace" 'True) (C1 ('MetaCons "QueueBPayload" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text))) | |||||