aboutsummaryrefslogtreecommitdiff
path: root/src/test/test_status.c
Commit message (Collapse)AuthorAge
* Fix compiler warning on test_status.cNick Mathewson2014-04-15
|
* Uplift status.c unit test coverage with new test cases and macros.dana koch2014-04-15
A new set of unit test cases are provided, as well as introducing an alternative paradigm and macros to support it. Primarily, each test case is given its own namespace, in order to isolate tests from each other. We do this by in the usual fashion, by appending module and submodule names to our symbols. New macros assist by reducing friction for this and other tasks, like overriding a function in the global namespace with one in the current namespace, or declaring integer variables to assist tracking how many times a mock has been called. A set of tests for a small-scale module has been included in this commit, in order to highlight how the paradigm can be used. This suite gives 100% coverage to status.c in test execution.