1-- | @Servant.QuickCheck@ provides utilities related to using QuickCheck over an API.
2-- Rather than specifying properties that individual handlers must satisfy,
3-- you can state properties that ought to hold true of the entire API.
5-- While the API must be described with @servant@ types, the server being
6-- tested itself need not be implemented with @servant-server@ (or indeed,
9module Servant.QuickCheck
13 -- * Test setup helpers
14 -- | Helpers to setup and teardown @servant@ servers during tests.
20 -- ** Response equality
21 -- | Often the normal equality of responses is not what we want. For example,
22 -- if responses contain a @Date@ header with the time of the response,
23 -- responses will fail to be equal even though they morally are. This datatype
24 -- represents other means of checking equality
25 -- *** Useful @ResponseEquality@s
28 -- ** Response equality type
29 , ResponseEquality(..)
34 -- *** Useful predicates
37 , notAllowedContainsAllowHeader
38 -- *** Predicate utilities and types
41 , ResponsePredicate(..)
42 , RequestPredicate(..)
51import Servant.QuickCheck.Internal
52import Servant.Client (BaseUrl(..), Scheme(..))
keysesc to close
- j k
- move down, up
- enter
- open
- esc
- back, or up a level
- 1 2 3 4
- readme, files, commits, refs
- /
- filter
- y
- copy the clone command
- c
- compare the chosen commit with another (or shift-click both)
- ?
- show or hide this list