| 66 | CCoinsViewCacheTest(CCoinsView* base) : CCoinsViewCache(base) {} |
| 67 | |
| 68 | void SelfTest() const |
| 69 | { |
| 70 | // Manually recompute the dynamic usage of the whole data, and compare it. |
| 71 | size_t ret = memusage::DynamicUsage(cacheCoins); |
| 72 | for (CCoinsMap::iterator it = cacheCoins.begin(); it != cacheCoins.end(); it++) { |
| 73 | ret += it->second.coins.DynamicMemoryUsage(); |
| 74 | } |
| 75 | BOOST_CHECK_EQUAL(DynamicMemoryUsage(), ret); |
| 76 | } |
| 77 | |
| 78 | }; |
| 79 |
no test coverage detected