Safe Haskell | None |
---|---|
Language | Haskell2010 |
Useful to test encoding of data stored in redis.
Synopsis
- test :: forall m key a. (Typeable a, HasExamples a) => m key a -> Test
Documentation
test :: forall m key a. (Typeable a, HasExamples a) => m key a -> Test Source #
Turns a Redis.Api into a test. The test does the following:
- get examples from the
HasExamples
constraint - encoded the examples into JSON
- check the encoded JSON against the generated file NOTE: it will generate the file if it doesn't exist yet