nri-test-encoding-0.1.1.3: A library to simplify writing golden tests for encoding types.
Safe HaskellNone
LanguageHaskell2010

Test.Encoding.Redis

Description

Useful to test encoding of data stored in redis.

Synopsis

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:

  1. get examples from the HasExamples constraint
  2. encoded the examples into JSON
  3. check the encoded JSON against the generated file NOTE: it will generate the file if it doesn't exist yet