crodas / microredis

Redis server implemented in rust.
BSD 3-Clause "New" or "Revised" License
1 stars 0 forks source link

Writing unit tests #5

Closed crodas closed 2 years ago

crodas commented 2 years ago

Write unit tests, the unit tests will create a new dummy connection and will let the test function to execute commands directly.

This is the first and fast tests, for sanity checks. The ultimate goal is to run the tcl tests from the redis projects as we are aiming to be compatible.

Also improved issued found while running the unit tests. For instance the way returned data are cloned is improved. It is now harder to clone complex values (Hashes, set). It is not longer possible to read complex values through DB.get, DB.get_map_or should be used instead.