| 34 | Test::Test(eth::Client& _eth): m_eth(_eth) {} |
| 35 | |
| 36 | bool Test::test_setChainParams(Json::Value const& param1) |
| 37 | { |
| 38 | try |
| 39 | { |
| 40 | Json::FastWriter fastWriter; |
| 41 | std::string output = fastWriter.write(param1); |
| 42 | asClientTest(m_eth).setChainParams(output); |
| 43 | } |
| 44 | catch (std::exception const&) |
| 45 | { |
| 46 | BOOST_THROW_EXCEPTION(JsonRpcException(Errors::ERROR_RPC_INTERNAL_ERROR)); |
| 47 | } |
| 48 | |
| 49 | return true; |
| 50 | } |
| 51 | |
| 52 | bool Test::test_mineBlocks(int _number) |
| 53 | { |
no test coverage detected