diff options
author | Nick Mathewson <nickm@torproject.org> | 2013-07-10 15:03:01 -0400 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2013-07-10 15:22:16 -0400 |
commit | b6e8c74667cf723c5ef4d081fc901752e05f9a9b (patch) | |
tree | c8d51b23edbe5de7fa57ad5b9923dd968a68f5a8 /changes/fancy_testing | |
parent | 4753ad4f1dbd7fa3233ead5770e9c8bd619b8d07 (diff) | |
download | tor-b6e8c74667cf723c5ef4d081fc901752e05f9a9b.tar tor-b6e8c74667cf723c5ef4d081fc901752e05f9a9b.tar.gz |
Add rudimentary test mocking support.
This is not the most beautiful possible implementation (it requires
decorating mockable functions with ugly macros), but it actually
works, and is portable across multiple compilers and architectures.
Diffstat (limited to 'changes/fancy_testing')
-rw-r--r-- | changes/fancy_testing | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/changes/fancy_testing b/changes/fancy_testing index ad197c6f5..89876ff27 100644 --- a/changes/fancy_testing +++ b/changes/fancy_testing @@ -14,3 +14,15 @@ tests (and a new src/or/tor-cov target) to build with gcov test coverage support. + o Testing: + + - We now have rudimentary function mocking support that our unit + tests can use to test functions in isolation. Function mocking + lets the tests temporarily replace a function's dependencies with + stub functions, so that the tests can check the function without + invoking the other functions it calls. + + + + + |