MCPcopy Create free account
hub / github.com/WaykiChain/WaykiChain / CheckReadData

Method CheckReadData

src/tests/scriptdbex_tests.cpp:63–72  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

61}
62
63void 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
74void CContractDBTest::InsertData(CContractDBCache* pViewCache) {
75 BOOST_CHECK(pViewCache);

Callers

nothing calls this directly

Calls 1

HasContractMethod · 0.80

Tested by

no test coverage detected