summaryrefslogtreecommitdiff
path: root/src/test/test_status.c
AgeCommit message (Collapse)Author
2014-08-20fix remaining compilation problemsNick Mathewson
2014-04-29Fix memory leaks in test_status.cNick Mathewson
2014-04-15Fix compiler warning on test_status.cNick Mathewson
2014-04-15Uplift status.c unit test coverage with new test cases and macros.dana koch
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.