| Safe Haskell | None |
|---|---|
| Language | GHC2024 |
Arbiter.Test.Fixtures
Description
Shared payload types for the arbiter test suites.
Synopsis
- data TestPayload
- data WorkerTestPayload
Documentation
Source #data TestPayload
A payload for the core operation suites.
Constructors
| TestMessage Text | |
| TestCalculation Int Int |
Instances
Source #data WorkerTestPayload
A payload for the worker pool suites, with a failing and a slow variant.
Constructors
| SimpleTask Text | |
| FailingTask Int | |
| SlowTask 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-common-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)) :+: C1 ('MetaCons "SlowTask" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Int)))) | |||||