diff options
author | Russell Yanofsky <russ@yanofsky.org> | 2016-12-05 18:30:46 -0500 |
---|---|---|
committer | Russell Yanofsky <russ@yanofsky.org> | 2016-12-05 18:30:46 -0500 |
commit | 07df40babb0231b2e8a2f42341805b4bbcc4e284 (patch) | |
tree | 2d1afcf8a7eadc040c2728a6d11abc04883ca52c /src/univalue/test | |
parent | 7f72568e6b15fc139323fb200591a50762f6df0b (diff) |
[test] Add CCoinsViewCache Access/Modify/Write tests
Add more comprehensive unit tests for CCoinsViewCache. Right now it is hard to
refactor caching code or fix bugs in the caching logic because you have to try
to mentally enumerate all the different states the cache might be in to make
sure a change doesn't cause unintended consequences. The new tests explicitly
enumerate relevant cache states, documenting and verifying the behavior in each
state, so it will be safer and easier to make changes to the caching code in
the future.
Diffstat (limited to 'src/univalue/test')
0 files changed, 0 insertions, 0 deletions