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

Function init

src/tests/scriptdb_tests.cpp:21–33  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

19
20int nCount = 0;
21void init() {
22 pTestDB = new CContractDB("testdb",size_t(4<<20), false , true);
23 pTestView = new CContractDBCache(*pTestDB, false);
24 //穷举数据分别位于scriptDBView pTestView, pTestDB 三级分布数据测试数据库中
25 pscriptDBView = new CContractDBCache(*pTestView, true);
26
27 arrKey.push_back(vKey1);
28 arrKey.push_back(vKey2);
29 arrKey.push_back(vKey3);
30 arrKey.push_back(vKey4);
31 arrKey.push_back(vKey5);
32 arrKey.push_back(vKey6);
33}
34
35void closedb() {
36

Callers 1

BOOST_AUTO_TEST_CASEFunction · 0.85

Calls 1

push_backMethod · 0.80

Tested by

no test coverage detected