| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
Test.Encoding.Redis
Description
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
HasExamplesconstraint - 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