| 61 | } |
| 62 | |
| 63 | void CContractDBTest::CheckReadData(CContractDBCache* pViewCache) { |
| 64 | BOOST_CHECK(pViewCache); |
| 65 | vector<unsigned char> vScriptContent; |
| 66 | for (const auto& item : mapScript) { |
| 67 | CRegID regId(item.first); |
| 68 | BOOST_CHECK(pViewCache->HasContract(regId)); |
| 69 | BOOST_CHECK(pViewCache->GetContractScript(regId, vScriptContent)); |
| 70 | BOOST_CHECK(vScriptContent == item.second); |
| 71 | } |
| 72 | } |
| 73 | |
| 74 | void CContractDBTest::InsertData(CContractDBCache* pViewCache) { |
| 75 | BOOST_CHECK(pViewCache); |
nothing calls this directly
no test coverage detected