| 684 | }; |
| 685 | |
| 686 | static void CheckAccessCoin(const CAmount base_value, const MaybeCoin& cache_coin, const MaybeCoin& expected) |
| 687 | { |
| 688 | SingleEntryCacheTest test{base_value, cache_coin}; |
| 689 | auto& coin = test.cache.AccessCoin(OUTPOINT); |
| 690 | BOOST_CHECK_EQUAL(coin.IsSpent(), !test.cache.GetCoin(OUTPOINT)); |
| 691 | test.cache.SelfTest(/*sanity_check=*/false); |
| 692 | BOOST_CHECK_EQUAL(GetCoinsMapEntry(test.cache.map()), expected); |
| 693 | } |
| 694 | |
| 695 | BOOST_AUTO_TEST_CASE(ccoins_access) |
| 696 | { |
no test coverage detected