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

Function BOOST_FIXTURE_TEST_CASE

src/tests/systestscript.cpp:469–501  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

467BOOST_FIXTURE_TEST_SUITE(sysScript_test,CSysScriptTest)
468
469BOOST_FIXTURE_TEST_CASE(script_test,CSysScriptTest)
470{
471
472
473
474 //// pass
475 ResetEnv();
476 BOOST_CHECK(0==chainActive.Height());
477 CreateRegScript("dsjkLDFfhenmx2JkFMdtJ22TYDvSGgmJem","unit_test.bin");
478 CheckSdk();
479
480
481
482
483
484 ResetEnv();
485 BOOST_CHECK(0==chainActive.Height());
486 CreateRegScript("dsjkLDFfhenmx2JkFMdtJ22TYDvSGgmJem","unit_test.bin");
487 CheckRollBack();
488
489 //// pass
490 ResetEnv();
491 BOOST_CHECK(0==chainActive.Height());
492 CheckScriptAccount();
493
494 ResetEnv();
495 BOOST_CHECK(0==chainActive.Height());
496 testdb();
497
498 ResetEnv();
499 BOOST_CHECK(0==chainActive.Height());
500 testdeletmodifydb();
501}
502
503// 测试各种地址挖矿
504BOOST_FIXTURE_TEST_CASE(minier,CSysScriptTest)

Callers

nothing calls this directly

Calls 7

CallContractTxFunction · 0.85
HexStrFunction · 0.85
HeightMethod · 0.80
GetContractAccountMethod · 0.80
GetRegIdRawMethod · 0.80
GetBcoinsMethod · 0.80
getMethod · 0.45

Tested by

no test coverage detected