From 258e9ef4c6d50e79dc74eaf6010496f7910e896d Mon Sep 17 00:00:00 2001 From: "John C. Vernaleo" Date: Fri, 3 Jan 2014 17:50:17 -0500 Subject: [PATCH] Add test for the Cmd.Id() functions. --- jsoncmd_test.go | 419 ++++++++++++++++++------------------ test_coverage.txt | 528 +++++++++++++++++++++++----------------------- 2 files changed, 477 insertions(+), 470 deletions(-) diff --git a/jsoncmd_test.go b/jsoncmd_test.go index db1d4246..ffd1c09a 100644 --- a/jsoncmd_test.go +++ b/jsoncmd_test.go @@ -12,6 +12,8 @@ import ( "testing" ) +var testId = float64(1) + var jsoncmdtests = []struct { name string f func() (Cmd, error) @@ -20,11 +22,11 @@ var jsoncmdtests = []struct { { name: "basic addmultisigaddress", f: func() (Cmd, error) { - return NewAddMultisigAddressCmd(float64(1), 1, + return NewAddMultisigAddressCmd(testId, 1, []string{"foo", "bar"}) }, result: &AddMultisigAddressCmd{ - id: float64(1), + id: testId, NRequired: 1, Keys: []string{"foo", "bar"}, Account: "", @@ -33,11 +35,11 @@ var jsoncmdtests = []struct { { name: "addmultisigaddress + optional", f: func() (Cmd, error) { - return NewAddMultisigAddressCmd(float64(1), 1, + return NewAddMultisigAddressCmd(testId, 1, []string{"foo", "bar"}, "address") }, result: &AddMultisigAddressCmd{ - id: float64(1), + id: testId, NRequired: 1, Keys: []string{"foo", "bar"}, Account: "address", @@ -47,11 +49,11 @@ var jsoncmdtests = []struct { { name: "basic addnode add", f: func() (Cmd, error) { - return NewAddNodeCmd(float64(1), "address", + return NewAddNodeCmd(testId, "address", "add") }, result: &AddNodeCmd{ - id: float64(1), + id: testId, Addr: "address", SubCmd: "add", }, @@ -59,11 +61,11 @@ var jsoncmdtests = []struct { { name: "basic addnode remove", f: func() (Cmd, error) { - return NewAddNodeCmd(float64(1), "address", + return NewAddNodeCmd(testId, "address", "remove") }, result: &AddNodeCmd{ - id: float64(1), + id: testId, Addr: "address", SubCmd: "remove", }, @@ -71,11 +73,11 @@ var jsoncmdtests = []struct { { name: "basic addnode onetry", f: func() (Cmd, error) { - return NewAddNodeCmd(float64(1), "address", + return NewAddNodeCmd(testId, "address", "onetry") }, result: &AddNodeCmd{ - id: float64(1), + id: testId, Addr: "address", SubCmd: "onetry", }, @@ -84,21 +86,21 @@ var jsoncmdtests = []struct { { name: "basic backupwallet", f: func() (Cmd, error) { - return NewBackupWalletCmd(float64(1), "destination") + return NewBackupWalletCmd(testId, "destination") }, result: &BackupWalletCmd{ - id: float64(1), + id: testId, Destination: "destination", }, }, { name: "basic createmultisig", f: func() (Cmd, error) { - return NewCreateMultisigCmd(float64(1), 1, + return NewCreateMultisigCmd(testId, 1, []string{"key1", "key2", "key3"}) }, result: &CreateMultisigCmd{ - id: float64(1), + id: testId, NRequired: 1, Keys: []string{"key1", "key2", "key3"}, }, @@ -106,14 +108,14 @@ var jsoncmdtests = []struct { { name: "basic createrawtransaction", f: func() (Cmd, error) { - return NewCreateRawTransactionCmd(float64(1), + return NewCreateRawTransactionCmd(testId, []TransactionInput{ TransactionInput{Txid: "tx1", Vout: 1}, TransactionInput{Txid: "tx2", Vout: 3}}, map[string]int64{"bob": 1, "bill": 2}) }, result: &CreateRawTransactionCmd{ - id: float64(1), + id: testId, Inputs: []TransactionInput{ TransactionInput{Txid: "tx1", Vout: 1}, TransactionInput{Txid: "tx2", Vout: 3}, @@ -127,118 +129,118 @@ var jsoncmdtests = []struct { { name: "basic debuglevel", f: func() (Cmd, error) { - return NewDebugLevelCmd(float64(1), "debug") + return NewDebugLevelCmd(testId, "debug") }, result: &DebugLevelCmd{ - id: float64(1), + id: testId, LevelSpec: "debug", }, }, { name: "basic decoderawtransaction", f: func() (Cmd, error) { - return NewDecodeRawTransactionCmd(float64(1), + return NewDecodeRawTransactionCmd(testId, "thisisahexidecimaltransaction") }, result: &DecodeRawTransactionCmd{ - id: float64(1), + id: testId, HexTx: "thisisahexidecimaltransaction", }, }, { name: "basic decodescript", f: func() (Cmd, error) { - return NewDecodeScriptCmd(float64(1), + return NewDecodeScriptCmd(testId, "a bunch of hex") }, result: &DecodeScriptCmd{ - id: float64(1), + id: testId, HexScript: "a bunch of hex", }, }, { name: "basic dumpprivkey", f: func() (Cmd, error) { - return NewDumpPrivKeyCmd(float64(1), + return NewDumpPrivKeyCmd(testId, "address") }, result: &DumpPrivKeyCmd{ - id: float64(1), + id: testId, Address: "address", }, }, { name: "basic dumpwallet", f: func() (Cmd, error) { - return NewDumpWalletCmd(float64(1), + return NewDumpWalletCmd(testId, "filename") }, result: &DumpWalletCmd{ - id: float64(1), + id: testId, Filename: "filename", }, }, { name: "basic encryptwallet", f: func() (Cmd, error) { - return NewEncryptWalletCmd(float64(1), + return NewEncryptWalletCmd(testId, "passphrase") }, result: &EncryptWalletCmd{ - id: float64(1), + id: testId, Passphrase: "passphrase", }, }, { name: "basic getaccount", f: func() (Cmd, error) { - return NewGetAccountCmd(float64(1), + return NewGetAccountCmd(testId, "address") }, result: &GetAccountCmd{ - id: float64(1), + id: testId, Address: "address", }, }, { name: "basic getaccountaddress", f: func() (Cmd, error) { - return NewGetAccountAddressCmd(float64(1), + return NewGetAccountAddressCmd(testId, "account") }, result: &GetAccountAddressCmd{ - id: float64(1), + id: testId, Account: "account", }, }, { name: "basic getaddednodeinfo true", f: func() (Cmd, error) { - return NewGetAddedNodeInfoCmd(float64(1), true) + return NewGetAddedNodeInfoCmd(testId, true) }, result: &GetAddedNodeInfoCmd{ - id: float64(1), + id: testId, Dns: true, }, }, { name: "basic getaddednodeinfo false", f: func() (Cmd, error) { - return NewGetAddedNodeInfoCmd(float64(1), false) + return NewGetAddedNodeInfoCmd(testId, false) }, result: &GetAddedNodeInfoCmd{ - id: float64(1), + id: testId, Dns: false, }, }, { name: "basic getaddednodeinfo withnode", f: func() (Cmd, error) { - return NewGetAddedNodeInfoCmd(float64(1), true, + return NewGetAddedNodeInfoCmd(testId, true, "thisisanode") }, result: &GetAddedNodeInfoCmd{ - id: float64(1), + id: testId, Dns: true, Node: "thisisanode", }, @@ -246,31 +248,31 @@ var jsoncmdtests = []struct { { name: "basic getaddressesbyaccount", f: func() (Cmd, error) { - return NewGetAddressesByAccountCmd(float64(1), + return NewGetAddressesByAccountCmd(testId, "account") }, result: &GetAddressesByAccountCmd{ - id: float64(1), + id: testId, Account: "account", }, }, { name: "basic getbalance", f: func() (Cmd, error) { - return NewGetBalanceCmd(float64(1)) + return NewGetBalanceCmd(testId) }, result: &GetBalanceCmd{ - id: float64(1), + id: testId, MinConf: 1, // the default }, }, { name: "basic getbalance + account", f: func() (Cmd, error) { - return NewGetBalanceCmd(float64(1), "account") + return NewGetBalanceCmd(testId, "account") }, result: &GetBalanceCmd{ - id: float64(1), + id: testId, Account: "account", MinConf: 1, // the default }, @@ -278,20 +280,20 @@ var jsoncmdtests = []struct { { name: "basic getbalance + minconf", f: func() (Cmd, error) { - return NewGetBalanceCmd(float64(1), "", 2) + return NewGetBalanceCmd(testId, "", 2) }, result: &GetBalanceCmd{ - id: float64(1), + id: testId, MinConf: 2, }, }, { name: "basic getbalance + account + minconf", f: func() (Cmd, error) { - return NewGetBalanceCmd(float64(1), "account", 2) + return NewGetBalanceCmd(testId, "account", 2) }, result: &GetBalanceCmd{ - id: float64(1), + id: testId, Account: "account", MinConf: 2, }, @@ -299,20 +301,20 @@ var jsoncmdtests = []struct { { name: "basic getbestblockhash", f: func() (Cmd, error) { - return NewGetBestBlockHashCmd(float64(1)) + return NewGetBestBlockHashCmd(testId) }, result: &GetBestBlockHashCmd{ - id: float64(1), + id: testId, }, }, { name: "basic getblock", f: func() (Cmd, error) { - return NewGetBlockCmd(float64(1), + return NewGetBlockCmd(testId, "somehash") }, result: &GetBlockCmd{ - id: float64(1), + id: testId, Hash: "somehash", Verbose: true, }, @@ -320,40 +322,40 @@ var jsoncmdtests = []struct { { name: "basic getblockcount", f: func() (Cmd, error) { - return NewGetBlockCountCmd(float64(1)) + return NewGetBlockCountCmd(testId) }, result: &GetBlockCountCmd{ - id: float64(1), + id: testId, }, }, { name: "basic getblockhash", f: func() (Cmd, error) { - return NewGetBlockHashCmd(float64(1), 1234) + return NewGetBlockHashCmd(testId, 1234) }, result: &GetBlockHashCmd{ - id: float64(1), + id: testId, Index: 1234, }, }, { name: "basic getblocktemplate", f: func() (Cmd, error) { - return NewGetBlockTemplateCmd(float64(1)) + return NewGetBlockTemplateCmd(testId) }, result: &GetBlockTemplateCmd{ - id: float64(1), + id: testId, }, }, { name: "basic getblocktemplate + request", f: func() (Cmd, error) { - return NewGetBlockTemplateCmd(float64(1), + return NewGetBlockTemplateCmd(testId, &TemplateRequest{Mode: "mode", Capabilities: []string{"one", "two", "three"}}) }, result: &GetBlockTemplateCmd{ - id: float64(1), + id: testId, Request: &TemplateRequest{ Mode: "mode", Capabilities: []string{ @@ -367,12 +369,12 @@ var jsoncmdtests = []struct { { name: "basic getblocktemplate + request no mode", f: func() (Cmd, error) { - return NewGetBlockTemplateCmd(float64(1), + return NewGetBlockTemplateCmd(testId, &TemplateRequest{ Capabilities: []string{"one", "two", "three"}}) }, result: &GetBlockTemplateCmd{ - id: float64(1), + id: testId, Request: &TemplateRequest{ Capabilities: []string{ "one", @@ -385,82 +387,82 @@ var jsoncmdtests = []struct { { name: "basic getconectioncount", f: func() (Cmd, error) { - return NewGetConnectionCountCmd(float64(1)) + return NewGetConnectionCountCmd(testId) }, result: &GetConnectionCountCmd{ - id: float64(1), + id: testId, }, }, { name: "basic getdifficulty", f: func() (Cmd, error) { - return NewGetDifficultyCmd(float64(1)) + return NewGetDifficultyCmd(testId) }, result: &GetDifficultyCmd{ - id: float64(1), + id: testId, }, }, { name: "basic getgeneratecmd", f: func() (Cmd, error) { - return NewGetGenerateCmd(float64(1)) + return NewGetGenerateCmd(testId) }, result: &GetGenerateCmd{ - id: float64(1), + id: testId, }, }, { name: "basic gethashespersec", f: func() (Cmd, error) { - return NewGetHashesPerSecCmd(float64(1)) + return NewGetHashesPerSecCmd(testId) }, result: &GetHashesPerSecCmd{ - id: float64(1), + id: testId, }, }, { name: "basic getinfo", f: func() (Cmd, error) { - return NewGetInfoCmd(float64(1)) + return NewGetInfoCmd(testId) }, result: &GetInfoCmd{ - id: float64(1), + id: testId, }, }, { name: "basic getinfo", f: func() (Cmd, error) { - return NewGetInfoCmd(float64(1)) + return NewGetInfoCmd(testId) }, result: &GetInfoCmd{ - id: float64(1), + id: testId, }, }, { name: "basic getmininginfo", f: func() (Cmd, error) { - return NewGetMiningInfoCmd(float64(1)) + return NewGetMiningInfoCmd(testId) }, result: &GetMiningInfoCmd{ - id: float64(1), + id: testId, }, }, { name: "basic getnettotals", f: func() (Cmd, error) { - return NewGetNetTotalsCmd(float64(1)) + return NewGetNetTotalsCmd(testId) }, result: &GetNetTotalsCmd{ - id: float64(1), + id: testId, }, }, { name: "basic getnetworkhashps", f: func() (Cmd, error) { - return NewGetNetworkHashPSCmd(float64(1)) + return NewGetNetworkHashPSCmd(testId) }, result: &GetNetworkHashPSCmd{ - id: float64(1), + id: testId, Blocks: 120, Height: -1, }, @@ -468,10 +470,10 @@ var jsoncmdtests = []struct { { name: "basic getnetworkhashps + blocks", f: func() (Cmd, error) { - return NewGetNetworkHashPSCmd(float64(1), 5000) + return NewGetNetworkHashPSCmd(testId, 5000) }, result: &GetNetworkHashPSCmd{ - id: float64(1), + id: testId, Blocks: 5000, Height: -1, }, @@ -479,10 +481,10 @@ var jsoncmdtests = []struct { { name: "basic getnetworkhashps + blocks + height", f: func() (Cmd, error) { - return NewGetNetworkHashPSCmd(float64(1), 5000, 1000) + return NewGetNetworkHashPSCmd(testId, 5000, 1000) }, result: &GetNetworkHashPSCmd{ - id: float64(1), + id: testId, Blocks: 5000, Height: 1000, }, @@ -490,90 +492,90 @@ var jsoncmdtests = []struct { { name: "basic getnewaddress", f: func() (Cmd, error) { - return NewGetNewAddressCmd(float64(1), "account") + return NewGetNewAddressCmd(testId, "account") }, result: &GetNewAddressCmd{ - id: float64(1), + id: testId, Account: "account", }, }, { name: "basic getpeerinfo", f: func() (Cmd, error) { - return NewGetPeerInfoCmd(float64(1)) + return NewGetPeerInfoCmd(testId) }, result: &GetPeerInfoCmd{ - id: float64(1), + id: testId, }, }, { name: "basic getrawmchangeaddress", f: func() (Cmd, error) { - return NewGetRawChangeAddressCmd(float64(1)) + return NewGetRawChangeAddressCmd(testId) }, result: &GetRawChangeAddressCmd{ - id: float64(1), + id: testId, }, }, { name: "basic getrawmchangeaddress + account", f: func() (Cmd, error) { - return NewGetRawChangeAddressCmd(float64(1), + return NewGetRawChangeAddressCmd(testId, "accountname") }, result: &GetRawChangeAddressCmd{ - id: float64(1), + id: testId, Account: "accountname", }, }, { name: "basic getrawmempool", f: func() (Cmd, error) { - return NewGetRawMempoolCmd(float64(1)) + return NewGetRawMempoolCmd(testId) }, result: &GetRawMempoolCmd{ - id: float64(1), + id: testId, }, }, { name: "basic getrawmempool noverbose", f: func() (Cmd, error) { - return NewGetRawMempoolCmd(float64(1), false) + return NewGetRawMempoolCmd(testId, false) }, result: &GetRawMempoolCmd{ - id: float64(1), + id: testId, }, }, { name: "basic getrawmempool verbose", f: func() (Cmd, error) { - return NewGetRawMempoolCmd(float64(1), true) + return NewGetRawMempoolCmd(testId, true) }, result: &GetRawMempoolCmd{ - id: float64(1), + id: testId, Verbose: true, }, }, { name: "basic getrawtransaction", f: func() (Cmd, error) { - return NewGetRawTransactionCmd(float64(1), + return NewGetRawTransactionCmd(testId, "sometxid") }, result: &GetRawTransactionCmd{ - id: float64(1), + id: testId, Txid: "sometxid", }, }, { name: "basic getrawtransaction + verbose", f: func() (Cmd, error) { - return NewGetRawTransactionCmd(float64(1), + return NewGetRawTransactionCmd(testId, "sometxid", true) }, result: &GetRawTransactionCmd{ - id: float64(1), + id: testId, Txid: "sometxid", Verbose: true, }, @@ -581,12 +583,12 @@ var jsoncmdtests = []struct { { name: "basic getreceivedbyaccount", f: func() (Cmd, error) { - return NewGetReceivedByAccountCmd(float64(1), + return NewGetReceivedByAccountCmd(testId, "abtcaccount", 1) }, result: &GetReceivedByAccountCmd{ - id: float64(1), + id: testId, Account: "abtcaccount", MinConf: 1, }, @@ -594,12 +596,12 @@ var jsoncmdtests = []struct { { name: "basic getreceivedbyaddress", f: func() (Cmd, error) { - return NewGetReceivedByAddressCmd(float64(1), + return NewGetReceivedByAddressCmd(testId, "abtcaddress", 1) }, result: &GetReceivedByAddressCmd{ - id: float64(1), + id: testId, Address: "abtcaddress", MinConf: 1, }, @@ -607,23 +609,23 @@ var jsoncmdtests = []struct { { name: "basic gettransaction", f: func() (Cmd, error) { - return NewGetTransactionCmd(float64(1), + return NewGetTransactionCmd(testId, "atxid") }, result: &GetTransactionCmd{ - id: float64(1), + id: testId, Txid: "atxid", }, }, { name: "basic gettxout", f: func() (Cmd, error) { - return NewGetTxOutCmd(float64(1), + return NewGetTxOutCmd(testId, "sometx", 10) }, result: &GetTxOutCmd{ - id: float64(1), + id: testId, Txid: "sometx", Output: 10, }, @@ -631,13 +633,13 @@ var jsoncmdtests = []struct { { name: "basic gettxout + optional", f: func() (Cmd, error) { - return NewGetTxOutCmd(float64(1), + return NewGetTxOutCmd(testId, "sometx", 10, false) }, result: &GetTxOutCmd{ - id: float64(1), + id: testId, Txid: "sometx", Output: 10, IncludeMempool: false, @@ -646,16 +648,16 @@ var jsoncmdtests = []struct { { name: "basic gettxsetoutinfo", f: func() (Cmd, error) { - return NewGetTxOutSetInfoCmd(float64(1)) + return NewGetTxOutSetInfoCmd(testId) }, result: &GetTxOutSetInfoCmd{ - id: float64(1), + id: testId, }, }, { name: "basic getwork", f: func() (Cmd, error) { - return NewGetWorkCmd(float64(1), + return NewGetWorkCmd(testId, WorkRequest{ Data: "some data", Target: "our target", @@ -663,7 +665,7 @@ var jsoncmdtests = []struct { }) }, result: &GetWorkCmd{ - id: float64(1), + id: testId, Request: WorkRequest{ Data: "some data", Target: "our target", @@ -674,31 +676,31 @@ var jsoncmdtests = []struct { { name: "basic help", f: func() (Cmd, error) { - return NewHelpCmd(float64(1)) + return NewHelpCmd(testId) }, result: &HelpCmd{ - id: float64(1), + id: testId, }, }, { name: "basic help + optional cmd", f: func() (Cmd, error) { - return NewHelpCmd(float64(1), + return NewHelpCmd(testId, "getinfo") }, result: &HelpCmd{ - id: float64(1), + id: testId, Command: "getinfo", }, }, { name: "basic importprivkey", f: func() (Cmd, error) { - return NewImportPrivKeyCmd(float64(1), + return NewImportPrivKeyCmd(testId, "somereallongprivatekey") }, result: &ImportPrivKeyCmd{ - id: float64(1), + id: testId, PrivKey: "somereallongprivatekey", Rescan: true, }, @@ -706,12 +708,12 @@ var jsoncmdtests = []struct { { name: "basic importprivkey + 1 opt", f: func() (Cmd, error) { - return NewImportPrivKeyCmd(float64(1), + return NewImportPrivKeyCmd(testId, "somereallongprivatekey", "some text") }, result: &ImportPrivKeyCmd{ - id: float64(1), + id: testId, PrivKey: "somereallongprivatekey", Label: "some text", Rescan: true, @@ -720,13 +722,13 @@ var jsoncmdtests = []struct { { name: "basic importprivkey + 2 opts", f: func() (Cmd, error) { - return NewImportPrivKeyCmd(float64(1), + return NewImportPrivKeyCmd(testId, "somereallongprivatekey", "some text", false) }, result: &ImportPrivKeyCmd{ - id: float64(1), + id: testId, PrivKey: "somereallongprivatekey", Label: "some text", Rescan: false, @@ -735,68 +737,68 @@ var jsoncmdtests = []struct { { name: "basic importwallet", f: func() (Cmd, error) { - return NewImportWalletCmd(float64(1), + return NewImportWalletCmd(testId, "walletfilename.dat") }, result: &ImportWalletCmd{ - id: float64(1), + id: testId, Filename: "walletfilename.dat", }, }, { name: "basic keypoolrefill", f: func() (Cmd, error) { - return NewKeyPoolRefillCmd(float64(1)) + return NewKeyPoolRefillCmd(testId) }, result: &KeyPoolRefillCmd{ - id: float64(1), + id: testId, }, }, { name: "basic listaccounts", f: func() (Cmd, error) { - return NewListAccountsCmd(float64(1), 1) + return NewListAccountsCmd(testId, 1) }, result: &ListAccountsCmd{ - id: float64(1), + id: testId, MinConf: 1, }, }, { name: "basic listaddressgroupings", f: func() (Cmd, error) { - return NewListAddressGroupingsCmd(float64(1)) + return NewListAddressGroupingsCmd(testId) }, result: &ListAddressGroupingsCmd{ - id: float64(1), + id: testId, }, }, { name: "basic listlockunspent", f: func() (Cmd, error) { - return NewListLockUnspentCmd(float64(1)) + return NewListLockUnspentCmd(testId) }, result: &ListLockUnspentCmd{ - id: float64(1), + id: testId, }, }, { name: "basic listreceivedbyaccount", f: func() (Cmd, error) { - return NewListReceivedByAccountCmd(float64(1)) + return NewListReceivedByAccountCmd(testId) }, result: &ListReceivedByAccountCmd{ - id: float64(1), + id: testId, MinConf: 1, }, }, { name: "basic listtransactions", f: func() (Cmd, error) { - return NewListTransactionsCmd(float64(1)) + return NewListTransactionsCmd(testId) }, result: &ListTransactionsCmd{ - id: float64(1), + id: testId, Account: "", Count: 10, From: 0, @@ -805,10 +807,10 @@ var jsoncmdtests = []struct { { name: "listtransactions 1 optarg", f: func() (Cmd, error) { - return NewListTransactionsCmd(float64(1), "abcde") + return NewListTransactionsCmd(testId, "abcde") }, result: &ListTransactionsCmd{ - id: float64(1), + id: testId, Account: "abcde", Count: 10, From: 0, @@ -817,10 +819,10 @@ var jsoncmdtests = []struct { { name: "listtransactions 2 optargs", f: func() (Cmd, error) { - return NewListTransactionsCmd(float64(1), "abcde", 123) + return NewListTransactionsCmd(testId, "abcde", 123) }, result: &ListTransactionsCmd{ - id: float64(1), + id: testId, Account: "abcde", Count: 123, From: 0, @@ -829,10 +831,10 @@ var jsoncmdtests = []struct { { name: "listtransactions 3 optargs", f: func() (Cmd, error) { - return NewListTransactionsCmd(float64(1), "abcde", 123, 456) + return NewListTransactionsCmd(testId, "abcde", 123, 456) }, result: &ListTransactionsCmd{ - id: float64(1), + id: testId, Account: "abcde", Count: 123, From: 456, @@ -841,10 +843,10 @@ var jsoncmdtests = []struct { { name: "basic listunspent", f: func() (Cmd, error) { - return NewListUnspentCmd(float64(1)) + return NewListUnspentCmd(testId) }, result: &ListUnspentCmd{ - id: float64(1), + id: testId, MinConf: 1, MaxConf: 999999, }, @@ -852,10 +854,10 @@ var jsoncmdtests = []struct { { name: "basic listunspent + opts", f: func() (Cmd, error) { - return NewListUnspentCmd(float64(1), 0, 6) + return NewListUnspentCmd(testId, 0, 6) }, result: &ListUnspentCmd{ - id: float64(1), + id: testId, MinConf: 0, MaxConf: 6, }, @@ -863,24 +865,24 @@ var jsoncmdtests = []struct { { name: "basic lockunspent", f: func() (Cmd, error) { - return NewLockUnspentCmd(float64(1), true) + return NewLockUnspentCmd(testId, true) }, result: &LockUnspentCmd{ - id: float64(1), + id: testId, Unlock: true, }, }, { name: "basic move", f: func() (Cmd, error) { - return NewMoveCmd(float64(1), + return NewMoveCmd(testId, "account1", "account2", 12, 1) }, result: &MoveCmd{ - id: float64(1), + id: testId, FromAccount: "account1", ToAccount: "account2", Amount: 12, @@ -890,7 +892,7 @@ var jsoncmdtests = []struct { { name: "basic move + optionals", f: func() (Cmd, error) { - return NewMoveCmd(float64(1), + return NewMoveCmd(testId, "account1", "account2", 12, @@ -898,7 +900,7 @@ var jsoncmdtests = []struct { "some comment") }, result: &MoveCmd{ - id: float64(1), + id: testId, FromAccount: "account1", ToAccount: "account2", Amount: 12, @@ -909,23 +911,23 @@ var jsoncmdtests = []struct { { name: "basic ping", f: func() (Cmd, error) { - return NewPingCmd(float64(1)) + return NewPingCmd(testId) }, result: &PingCmd{ - id: float64(1), + id: testId, }, }, { name: "basic sendfrom", f: func() (Cmd, error) { - return NewSendFromCmd(float64(1), + return NewSendFromCmd(testId, "account", "address", 12, 1) }, result: &SendFromCmd{ - id: float64(1), + id: testId, FromAccount: "account", ToAddress: "address", Amount: 12, @@ -935,7 +937,7 @@ var jsoncmdtests = []struct { { name: "basic sendfrom + options", f: func() (Cmd, error) { - return NewSendFromCmd(float64(1), + return NewSendFromCmd(testId, "account", "address", 12, @@ -944,7 +946,7 @@ var jsoncmdtests = []struct { "comment to") }, result: &SendFromCmd{ - id: float64(1), + id: testId, FromAccount: "account", ToAddress: "address", Amount: 12, @@ -961,12 +963,12 @@ var jsoncmdtests = []struct { "address B": 2000, "address C": 3000, } - return NewSendManyCmd(float64(1), + return NewSendManyCmd(testId, "account", pairs) }, result: &SendManyCmd{ - id: float64(1), + id: testId, FromAccount: "account", Amounts: map[string]int64{ "address A": 1000, @@ -984,14 +986,14 @@ var jsoncmdtests = []struct { "address B": 2000, "address C": 3000, } - return NewSendManyCmd(float64(1), + return NewSendManyCmd(testId, "account", pairs, 10, "comment") }, result: &SendManyCmd{ - id: float64(1), + id: testId, FromAccount: "account", Amounts: map[string]int64{ "address A": 1000, @@ -1005,23 +1007,23 @@ var jsoncmdtests = []struct { { name: "basic sendrawtransaction", f: func() (Cmd, error) { - return NewSendRawTransactionCmd(float64(1), + return NewSendRawTransactionCmd(testId, "hexstringofatx") }, result: &SendRawTransactionCmd{ - id: float64(1), + id: testId, HexTx: "hexstringofatx", }, }, { name: "basic sendtoaddress", f: func() (Cmd, error) { - return NewSendToAddressCmd(float64(1), + return NewSendToAddressCmd(testId, "somebtcaddress", 1) }, result: &SendToAddressCmd{ - id: float64(1), + id: testId, Address: "somebtcaddress", Amount: 1, }, @@ -1029,14 +1031,14 @@ var jsoncmdtests = []struct { { name: "basic sendtoaddress plus optional", f: func() (Cmd, error) { - return NewSendToAddressCmd(float64(1), + return NewSendToAddressCmd(testId, "somebtcaddress", 1, "a comment", "comment to") }, result: &SendToAddressCmd{ - id: float64(1), + id: testId, Address: "somebtcaddress", Amount: 1, Comment: "a comment", @@ -1046,12 +1048,12 @@ var jsoncmdtests = []struct { { name: "basic setaccount", f: func() (Cmd, error) { - return NewSetAccountCmd(float64(1), + return NewSetAccountCmd(testId, "somebtcaddress", "account name") }, result: &SetAccountCmd{ - id: float64(1), + id: testId, Address: "somebtcaddress", Account: "account name", }, @@ -1059,20 +1061,20 @@ var jsoncmdtests = []struct { { name: "basic setgenerate", f: func() (Cmd, error) { - return NewSetGenerateCmd(float64(1), true) + return NewSetGenerateCmd(testId, true) }, result: &SetGenerateCmd{ - id: float64(1), + id: testId, Generate: true, }, }, { name: "basic setgenerate + optional", f: func() (Cmd, error) { - return NewSetGenerateCmd(float64(1), true, 10) + return NewSetGenerateCmd(testId, true, 10) }, result: &SetGenerateCmd{ - id: float64(1), + id: testId, Generate: true, GenProcLimit: 10, }, @@ -1080,22 +1082,22 @@ var jsoncmdtests = []struct { { name: "basic settxfee", f: func() (Cmd, error) { - return NewSetTxFeeCmd(float64(1), 10) + return NewSetTxFeeCmd(testId, 10) }, result: &SetTxFeeCmd{ - id: float64(1), + id: testId, Amount: 10, }, }, { name: "basic signmessage", f: func() (Cmd, error) { - return NewSignMessageCmd(float64(1), + return NewSignMessageCmd(testId, "btcaddress", "a message") }, result: &SignMessageCmd{ - id: float64(1), + id: testId, Address: "btcaddress", Message: "a message", }, @@ -1103,18 +1105,18 @@ var jsoncmdtests = []struct { { name: "basic signrawtransaction", f: func() (Cmd, error) { - return NewSignRawTransactionCmd(float64(1), + return NewSignRawTransactionCmd(testId, "sometxstring") }, result: &SignRawTransactionCmd{ - id: float64(1), + id: testId, RawTx: "sometxstring", }, }, /* { name: "basic signrawtransaction with optional", f: func() (Cmd, error) { - return NewSignRawTransactionCmd(float64(1), + return NewSignRawTransactionCmd(testId, "sometxstring", []RawTxInput{ RawTxInput{ @@ -1128,7 +1130,7 @@ var jsoncmdtests = []struct { "flags") }, result: &SignRawTransactionCmd{ - id: float64(1), + id: testId, RawTx: "sometxstring", Inputs: []RawTxInput{ RawTxInput{ @@ -1145,32 +1147,32 @@ var jsoncmdtests = []struct { { name: "basic stop", f: func() (Cmd, error) { - return NewStopCmd(float64(1)) + return NewStopCmd(testId) }, result: &StopCmd{ - id: float64(1), + id: testId, }, }, { name: "basic submitblock", f: func() (Cmd, error) { - return NewSubmitBlockCmd(float64(1), + return NewSubmitBlockCmd(testId, "lotsofhex") }, result: &SubmitBlockCmd{ - id: float64(1), + id: testId, HexBlock: "lotsofhex", }, }, { name: "submitblock with optional object", f: func() (Cmd, error) { - return NewSubmitBlockCmd(float64(1), + return NewSubmitBlockCmd(testId, "lotsofhex", &SubmitBlockOptions{WorkId: "otherstuff"}) }, result: &SubmitBlockCmd{ - id: float64(1), + id: testId, HexBlock: "lotsofhex", Options: &SubmitBlockOptions{WorkId: "otherstuff"}, }, @@ -1178,21 +1180,21 @@ var jsoncmdtests = []struct { { name: "basic validateaddress", f: func() (Cmd, error) { - return NewValidateAddressCmd(float64(1), + return NewValidateAddressCmd(testId, "somebtcaddress") }, result: &ValidateAddressCmd{ - id: float64(1), + id: testId, Address: "somebtcaddress", }, }, { name: "basic verifychain", f: func() (Cmd, error) { - return NewVerifyChainCmd(float64(1)) + return NewVerifyChainCmd(testId) }, result: &VerifyChainCmd{ - id: float64(1), + id: testId, CheckLevel: 3, CheckDepth: 288, }, @@ -1200,10 +1202,10 @@ var jsoncmdtests = []struct { { name: "basic verifychain + optional", f: func() (Cmd, error) { - return NewVerifyChainCmd(float64(1), 4, 1) + return NewVerifyChainCmd(testId, 4, 1) }, result: &VerifyChainCmd{ - id: float64(1), + id: testId, CheckLevel: 4, CheckDepth: 1, }, @@ -1211,13 +1213,13 @@ var jsoncmdtests = []struct { { name: "basic verifymessage", f: func() (Cmd, error) { - return NewVerifyMessageCmd(float64(1), + return NewVerifyMessageCmd(testId, "someaddress", "somesig", "a message") }, result: &VerifyMessageCmd{ - id: float64(1), + id: testId, Address: "someaddress", Signature: "somesig", Message: "a message", @@ -1226,21 +1228,21 @@ var jsoncmdtests = []struct { { name: "basic walletlock", f: func() (Cmd, error) { - return NewWalletLockCmd(float64(1)) + return NewWalletLockCmd(testId) }, result: &WalletLockCmd{ - id: float64(1), + id: testId, }, }, { name: "basic walletpassphrase", f: func() (Cmd, error) { - return NewWalletPassphraseCmd(float64(1), + return NewWalletPassphraseCmd(testId, "phrase1", 10) }, result: &WalletPassphraseCmd{ - id: float64(1), + id: testId, Passphrase: "phrase1", Timeout: 10, }, @@ -1248,11 +1250,11 @@ var jsoncmdtests = []struct { { name: "basic walletpassphrasechange", f: func() (Cmd, error) { - return NewWalletPassphraseChangeCmd(float64(1), + return NewWalletPassphraseChangeCmd(testId, "phrase1", "phrase2") }, result: &WalletPassphraseChangeCmd{ - id: float64(1), + id: testId, OldPassphrase: "phrase1", NewPassphrase: "phrase2", }, @@ -1282,6 +1284,11 @@ func TestCmds(t *testing.T) { continue } + id, ok := (c.Id()).(float64) + if !ok || id != testId { + t.Errorf("%s: id not returned properly", test.name) + } + if !reflect.DeepEqual(test.result, c2) { t.Errorf("%s: unmarshal not as expected. "+ "got %v wanted %v", test.name, spew.Sdump(c2), diff --git a/test_coverage.txt b/test_coverage.txt index 8e5e0428..02a5122c 100644 --- a/test_coverage.txt +++ b/test_coverage.txt @@ -2,164 +2,234 @@ github.com/conformal/btcjson/jsonapi.go JSONToAmount 100.00% (15/15) github.com/conformal/btcjson/jsonapi.go JSONGetMethod 100.00% (14/14) github.com/conformal/btcjson/jsoncmd.go SendManyCmd.MarshalJSON 100.00% (9/9) -github.com/conformal/btcjson/jsoncmd.go ListTransactionsCmd.MarshalJSON 100.00% (8/8) github.com/conformal/btcjson/jsoncmd.go SendFromCmd.MarshalJSON 100.00% (8/8) +github.com/conformal/btcjson/jsoncmd.go ListTransactionsCmd.MarshalJSON 100.00% (8/8) github.com/conformal/btcjson/jsonfxns.go MarshallAndSend 100.00% (7/7) -github.com/conformal/btcjson/jsoncmd.go ListUnspentCmd.MarshalJSON 100.00% (6/6) -github.com/conformal/btcjson/jsoncmd.go GetBalanceCmd.MarshalJSON 100.00% (6/6) -github.com/conformal/btcjson/jsoncmd.go GetNetworkHashPSCmd.MarshalJSON 100.00% (6/6) github.com/conformal/btcjson/jsoncmd.go MoveCmd.MarshalJSON 100.00% (6/6) -github.com/conformal/btcjson/jsonfxns.go GetRaw 100.00% (6/6) -github.com/conformal/btcjson/jsoncmd.go SendToAddressCmd.MarshalJSON 100.00% (6/6) -github.com/conformal/btcjson/jsoncmd.go ImportPrivKeyCmd.MarshalJSON 100.00% (6/6) +github.com/conformal/btcjson/jsoncmd.go GetBalanceCmd.MarshalJSON 100.00% (6/6) github.com/conformal/btcjson/jsoncmd.go VerifyChainCmd.MarshalJSON 100.00% (6/6) +github.com/conformal/btcjson/jsoncmd.go ImportPrivKeyCmd.MarshalJSON 100.00% (6/6) +github.com/conformal/btcjson/jsoncmd.go ListUnspentCmd.MarshalJSON 100.00% (6/6) +github.com/conformal/btcjson/jsoncmd.go SendToAddressCmd.MarshalJSON 100.00% (6/6) +github.com/conformal/btcjson/jsoncmd.go GetNetworkHashPSCmd.MarshalJSON 100.00% (6/6) +github.com/conformal/btcjson/jsonfxns.go GetRaw 100.00% (6/6) github.com/conformal/btcjson/jsonapi.go jsonWithArgs 100.00% (5/5) -github.com/conformal/btcjson/jsoncmd.go GetBlockTemplateCmd.MarshalJSON 100.00% (4/4) -github.com/conformal/btcjson/jsoncmd.go CreateRawTransactionCmd.MarshalJSON 100.00% (4/4) -github.com/conformal/btcjson/jsoncmd.go GetRawTransactionCmd.MarshalJSON 100.00% (4/4) -github.com/conformal/btcjson/jsoncmd.go GetRawMempoolCmd.MarshalJSON 100.00% (4/4) github.com/conformal/btcjson/jsoncmd.go GetAddedNodeInfoCmd.MarshalJSON 100.00% (4/4) github.com/conformal/btcjson/jsoncmd.go HelpCmd.MarshalJSON 100.00% (4/4) -github.com/conformal/btcjson/jsoncmd.go AddMultisigAddressCmd.MarshalJSON 100.00% (4/4) +github.com/conformal/btcjson/jsoncmd.go GetRawTransactionCmd.MarshalJSON 100.00% (4/4) +github.com/conformal/btcjson/jsoncmd.go GetRawMempoolCmd.MarshalJSON 100.00% (4/4) github.com/conformal/btcjson/jsoncmd.go GetRawChangeAddressCmd.MarshalJSON 100.00% (4/4) -github.com/conformal/btcjson/jsoncmd.go GetNewAddressCmd.MarshalJSON 100.00% (4/4) github.com/conformal/btcjson/jsoncmd.go SubmitBlockCmd.MarshalJSON 100.00% (4/4) +github.com/conformal/btcjson/jsoncmd.go CreateRawTransactionCmd.MarshalJSON 100.00% (4/4) +github.com/conformal/btcjson/jsoncmd.go GetNewAddressCmd.MarshalJSON 100.00% (4/4) +github.com/conformal/btcjson/jsoncmd.go AddMultisigAddressCmd.MarshalJSON 100.00% (4/4) github.com/conformal/btcjson/jsoncmd.go SetGenerateCmd.MarshalJSON 100.00% (4/4) +github.com/conformal/btcjson/jsoncmd.go GetBlockTemplateCmd.MarshalJSON 100.00% (4/4) github.com/conformal/btcjson/jsonapi.go IsValidIdType 100.00% (3/3) -github.com/conformal/btcjson/jsoncmd.go WalletPassphraseCmd.MarshalJSON 100.00% (2/2) -github.com/conformal/btcjson/jsoncmd.go WalletLockCmd.MarshalJSON 100.00% (2/2) -github.com/conformal/btcjson/jsoncmd.go ListAddressGroupingsCmd.MarshalJSON 100.00% (2/2) -github.com/conformal/btcjson/jsoncmd.go VerifyMessageCmd.MarshalJSON 100.00% (2/2) -github.com/conformal/btcjson/jsoncmd.go ImportWalletCmd.MarshalJSON 100.00% (2/2) -github.com/conformal/btcjson/jsoncmd.go ValidateAddressCmd.MarshalJSON 100.00% (2/2) -github.com/conformal/btcjson/jsoncmd.go SendRawTransactionCmd.MarshalJSON 100.00% (2/2) github.com/conformal/btcjson/jsoncmd.go GetTxOutSetInfoCmd.MarshalJSON 100.00% (2/2) -github.com/conformal/btcjson/jsoncmd.go KeyPoolRefillCmd.MarshalJSON 100.00% (2/2) -github.com/conformal/btcjson/jsoncmd.go StopCmd.MarshalJSON 100.00% (2/2) -github.com/conformal/btcjson/jsoncmd.go PingCmd.MarshalJSON 100.00% (2/2) -github.com/conformal/btcjson/jsonapi.go CreateMessage 100.00% (2/2) -github.com/conformal/btcjson/jsoncmd.go GetTransactionCmd.MarshalJSON 100.00% (2/2) -github.com/conformal/btcjson/jsoncmd.go SetAccountCmd.MarshalJSON 100.00% (2/2) github.com/conformal/btcjson/jsoncmd.go SignMessageCmd.MarshalJSON 100.00% (2/2) -github.com/conformal/btcjson/jsoncmd.go SetTxFeeCmd.MarshalJSON 100.00% (2/2) -github.com/conformal/btcjson/jsoncmd.go ListLockUnspentCmd.MarshalJSON 100.00% (2/2) +github.com/conformal/btcjson/jsoncmd.go WalletLockCmd.MarshalJSON 100.00% (2/2) github.com/conformal/btcjson/jsoncmd.go GetWorkCmd.MarshalJSON 100.00% (2/2) +github.com/conformal/btcjson/jsoncmd.go SetTxFeeCmd.MarshalJSON 100.00% (2/2) +github.com/conformal/btcjson/jsonapi.go CreateMessage 100.00% (2/2) +github.com/conformal/btcjson/jsoncmd.go WalletPassphraseCmd.MarshalJSON 100.00% (2/2) +github.com/conformal/btcjson/jsoncmd.go StopCmd.MarshalJSON 100.00% (2/2) +github.com/conformal/btcjson/jsoncmd.go ValidateAddressCmd.MarshalJSON 100.00% (2/2) +github.com/conformal/btcjson/jsoncmd.go PingCmd.MarshalJSON 100.00% (2/2) +github.com/conformal/btcjson/jsoncmd.go ImportWalletCmd.MarshalJSON 100.00% (2/2) +github.com/conformal/btcjson/jsoncmd.go SetAccountCmd.MarshalJSON 100.00% (2/2) +github.com/conformal/btcjson/jsoncmd.go ListAddressGroupingsCmd.MarshalJSON 100.00% (2/2) +github.com/conformal/btcjson/jsoncmd.go ListLockUnspentCmd.MarshalJSON 100.00% (2/2) +github.com/conformal/btcjson/jsoncmd.go VerifyMessageCmd.MarshalJSON 100.00% (2/2) github.com/conformal/btcjson/jsoncmd.go WalletPassphraseChangeCmd.MarshalJSON 100.00% (2/2) -github.com/conformal/btcjson/jsoncmd.go NewBackupWalletCmd 100.00% (1/1) -github.com/conformal/btcjson/jsoncmd.go NewKeyPoolRefillCmd 100.00% (1/1) -github.com/conformal/btcjson/jsoncmd.go NewGetAddressesByAccountCmd 100.00% (1/1) -github.com/conformal/btcjson/jsoncmd.go NewListAddressGroupingsCmd 100.00% (1/1) -github.com/conformal/btcjson/jsoncmd.go BackupWalletCmd.MarshalJSON 100.00% (1/1) -github.com/conformal/btcjson/jsoncmd.go GetAddressesByAccountCmd.MarshalJSON 100.00% (1/1) -github.com/conformal/btcjson/jsoncmd.go NewListLockUnspentCmd 100.00% (1/1) -github.com/conformal/btcjson/jsoncmd.go NewCreateMultisigCmd 100.00% (1/1) -github.com/conformal/btcjson/jsoncmd.go NewGetBestBlockHashCmd 100.00% (1/1) -github.com/conformal/btcjson/jsoncmd.go GetBestBlockHashCmd.MarshalJSON 100.00% (1/1) -github.com/conformal/btcjson/jsoncmd.go CreateMultisigCmd.MarshalJSON 100.00% (1/1) -github.com/conformal/btcjson/jsoncmd.go NewPingCmd 100.00% (1/1) +github.com/conformal/btcjson/jsoncmd.go SendRawTransactionCmd.MarshalJSON 100.00% (2/2) +github.com/conformal/btcjson/jsoncmd.go KeyPoolRefillCmd.MarshalJSON 100.00% (2/2) +github.com/conformal/btcjson/jsoncmd.go GetTransactionCmd.MarshalJSON 100.00% (2/2) +github.com/conformal/btcjson/jsoncmd.go NewEncryptWalletCmd 100.00% (1/1) +github.com/conformal/btcjson/jsoncmd.go EncryptWalletCmd.Id 100.00% (1/1) +github.com/conformal/btcjson/jsoncmd.go SetTxFeeCmd.Id 100.00% (1/1) +github.com/conformal/btcjson/jsoncmd.go EncryptWalletCmd.MarshalJSON 100.00% (1/1) +github.com/conformal/btcjson/jsoncmd.go NewSetTxFeeCmd 100.00% (1/1) +github.com/conformal/btcjson/jsoncmd.go NewGetAccountCmd 100.00% (1/1) +github.com/conformal/btcjson/jsoncmd.go GetAccountCmd.Id 100.00% (1/1) +github.com/conformal/btcjson/jsoncmd.go GetAccountCmd.MarshalJSON 100.00% (1/1) +github.com/conformal/btcjson/jsoncmd.go SetGenerateCmd.Id 100.00% (1/1) +github.com/conformal/btcjson/jsoncmd.go NewGetAccountAddressCmd 100.00% (1/1) +github.com/conformal/btcjson/jsoncmd.go GetAccountAddressCmd.Id 100.00% (1/1) github.com/conformal/btcjson/jsoncmd.go NewGetBlockCountCmd 100.00% (1/1) -github.com/conformal/btcjson/jsoncmd.go NewCreateRawTransactionCmd 100.00% (1/1) +github.com/conformal/btcjson/jsoncmd.go GetAccountAddressCmd.MarshalJSON 100.00% (1/1) +github.com/conformal/btcjson/jsoncmd.go GetAddedNodeInfoCmd.Id 100.00% (1/1) +github.com/conformal/btcjson/jsoncmd.go SetAccountCmd.Id 100.00% (1/1) +github.com/conformal/btcjson/jsoncmd.go NewSetAccountCmd 100.00% (1/1) +github.com/conformal/btcjson/jsoncmd.go NewGetAddressesByAccountCmd 100.00% (1/1) +github.com/conformal/btcjson/jsoncmd.go GetAddressesByAccountCmd.Id 100.00% (1/1) +github.com/conformal/btcjson/jsoncmd.go GetAddressesByAccountCmd.MarshalJSON 100.00% (1/1) +github.com/conformal/btcjson/jsoncmd.go SendToAddressCmd.Id 100.00% (1/1) +github.com/conformal/btcjson/jsoncmd.go GetBalanceCmd.Id 100.00% (1/1) +github.com/conformal/btcjson/jsoncmd.go NewGetBestBlockHashCmd 100.00% (1/1) +github.com/conformal/btcjson/jsoncmd.go GetBestBlockHashCmd.Id 100.00% (1/1) +github.com/conformal/btcjson/jsoncmd.go GetBestBlockHashCmd.MarshalJSON 100.00% (1/1) +github.com/conformal/btcjson/jsoncmd.go SendRawTransactionCmd.Id 100.00% (1/1) +github.com/conformal/btcjson/jsoncmd.go NewSendRawTransactionCmd 100.00% (1/1) +github.com/conformal/btcjson/jsoncmd.go GetBlockCmd.Id 100.00% (1/1) +github.com/conformal/btcjson/jsoncmd.go SendManyCmd.Id 100.00% (1/1) +github.com/conformal/btcjson/jsoncmd.go GetGenerateCmd.MarshalJSON 100.00% (1/1) +github.com/conformal/btcjson/jsoncmd.go GetBlockCountCmd.Id 100.00% (1/1) github.com/conformal/btcjson/jsoncmd.go GetBlockCountCmd.MarshalJSON 100.00% (1/1) github.com/conformal/btcjson/jsoncmd.go NewGetBlockHashCmd 100.00% (1/1) -github.com/conformal/btcjson/jsoncmd.go NewSendRawTransactionCmd 100.00% (1/1) +github.com/conformal/btcjson/jsoncmd.go GetBlockHashCmd.Id 100.00% (1/1) github.com/conformal/btcjson/jsoncmd.go GetBlockHashCmd.MarshalJSON 100.00% (1/1) -github.com/conformal/btcjson/jsoncmd.go NewSetAccountCmd 100.00% (1/1) +github.com/conformal/btcjson/jsoncmd.go SendFromCmd.Id 100.00% (1/1) +github.com/conformal/btcjson/jsoncmd.go GetBlockTemplateCmd.Id 100.00% (1/1) +github.com/conformal/btcjson/jsoncmd.go StopCmd.Id 100.00% (1/1) +github.com/conformal/btcjson/jsonapi.go Error.Error 100.00% (1/1) +github.com/conformal/btcjson/jsonapi.go RpcCommand 100.00% (1/1) +github.com/conformal/btcjson/jsoncmd.go WalletPassphraseChangeCmd.Id 100.00% (1/1) +github.com/conformal/btcjson/jsoncmd.go NewWalletPassphraseChangeCmd 100.00% (1/1) +github.com/conformal/btcjson/jsoncmd.go WalletPassphraseCmd.Id 100.00% (1/1) +github.com/conformal/btcjson/jsoncmd.go NewWalletPassphraseCmd 100.00% (1/1) +github.com/conformal/btcjson/jsoncmd.go WalletLockCmd.Id 100.00% (1/1) +github.com/conformal/btcjson/jsoncmd.go NewWalletLockCmd 100.00% (1/1) +github.com/conformal/btcjson/jsoncmd.go VerifyMessageCmd.Id 100.00% (1/1) +github.com/conformal/btcjson/jsoncmd.go AddMultisigAddressCmd.Id 100.00% (1/1) +github.com/conformal/btcjson/jsoncmd.go NewVerifyMessageCmd 100.00% (1/1) +github.com/conformal/btcjson/jsoncmd.go AddNodeCmd.Id 100.00% (1/1) +github.com/conformal/btcjson/jsoncmd.go VerifyChainCmd.Id 100.00% (1/1) +github.com/conformal/btcjson/jsoncmd.go AddNodeCmd.MarshalJSON 100.00% (1/1) +github.com/conformal/btcjson/jsoncmd.go NewBackupWalletCmd 100.00% (1/1) +github.com/conformal/btcjson/jsoncmd.go BackupWalletCmd.Id 100.00% (1/1) +github.com/conformal/btcjson/jsoncmd.go BackupWalletCmd.MarshalJSON 100.00% (1/1) +github.com/conformal/btcjson/jsoncmd.go ValidateAddressCmd.Id 100.00% (1/1) +github.com/conformal/btcjson/jsoncmd.go NewCreateMultisigCmd 100.00% (1/1) +github.com/conformal/btcjson/jsoncmd.go CreateMultisigCmd.Id 100.00% (1/1) github.com/conformal/btcjson/jsoncmd.go NewValidateAddressCmd 100.00% (1/1) -github.com/conformal/btcjson/jsoncmd.go NewSetTxFeeCmd 100.00% (1/1) -github.com/conformal/btcjson/jsoncmd.go NewGetConnectionCountCmd 100.00% (1/1) -github.com/conformal/btcjson/jsoncmd.go NewSignMessageCmd 100.00% (1/1) +github.com/conformal/btcjson/jsoncmd.go CreateMultisigCmd.MarshalJSON 100.00% (1/1) +github.com/conformal/btcjson/jsoncmd.go NewCreateRawTransactionCmd 100.00% (1/1) +github.com/conformal/btcjson/jsoncmd.go CreateRawTransactionCmd.Id 100.00% (1/1) +github.com/conformal/btcjson/jsoncmd.go SubmitBlockCmd.Id 100.00% (1/1) github.com/conformal/btcjson/jsoncmd.go NewDebugLevelCmd 100.00% (1/1) -github.com/conformal/btcjson/jsoncmd.go GetConnectionCountCmd.MarshalJSON 100.00% (1/1) -github.com/conformal/btcjson/jsoncmd.go NewStopCmd 100.00% (1/1) -github.com/conformal/btcjson/jsoncmd.go NewGetDifficultyCmd 100.00% (1/1) +github.com/conformal/btcjson/jsoncmd.go DebugLevelCmd.Id 100.00% (1/1) github.com/conformal/btcjson/jsoncmd.go DebugLevelCmd.Method 100.00% (1/1) github.com/conformal/btcjson/jsoncmd.go DebugLevelCmd.MarshalJSON 100.00% (1/1) -github.com/conformal/btcjson/jsoncmd.go GetDifficultyCmd.MarshalJSON 100.00% (1/1) -github.com/conformal/btcjson/jsoncmd.go NewGetGenerateCmd 100.00% (1/1) github.com/conformal/btcjson/jsoncmd.go NewDecodeRawTransactionCmd 100.00% (1/1) -github.com/conformal/btcjson/jsoncmd.go NewVerifyMessageCmd 100.00% (1/1) -github.com/conformal/btcjson/jsoncmd.go GetGenerateCmd.MarshalJSON 100.00% (1/1) -github.com/conformal/btcjson/jsoncmd.go NewWalletLockCmd 100.00% (1/1) -github.com/conformal/btcjson/jsoncmd.go NewGetHashesPerSecCmd 100.00% (1/1) -github.com/conformal/btcjson/jsoncmd.go NewWalletPassphraseCmd 100.00% (1/1) -github.com/conformal/btcjson/jsoncmd.go GetHashesPerSecCmd.MarshalJSON 100.00% (1/1) -github.com/conformal/btcjson/jsoncmd.go NewWalletPassphraseChangeCmd 100.00% (1/1) -github.com/conformal/btcjson/jsoncmd.go NewGetInfoCmd 100.00% (1/1) +github.com/conformal/btcjson/jsoncmd.go DecodeRawTransactionCmd.Id 100.00% (1/1) github.com/conformal/btcjson/jsoncmd.go DecodeRawTransactionCmd.MarshalJSON 100.00% (1/1) -github.com/conformal/btcjson/jsoncmd.go GetInfoCmd.MarshalJSON 100.00% (1/1) -github.com/conformal/btcjson/jsoncmd.go NewGetMiningInfoCmd 100.00% (1/1) +github.com/conformal/btcjson/jsoncmd.go NewStopCmd 100.00% (1/1) github.com/conformal/btcjson/jsoncmd.go NewDecodeScriptCmd 100.00% (1/1) -github.com/conformal/btcjson/jsoncmd.go GetMiningInfoCmd.MarshalJSON 100.00% (1/1) -github.com/conformal/btcjson/jsoncmd.go NewGetNetTotalsCmd 100.00% (1/1) -github.com/conformal/btcjson/jsoncmd.go GetNetTotalsCmd.MarshalJSON 100.00% (1/1) +github.com/conformal/btcjson/jsoncmd.go DecodeScriptCmd.Id 100.00% (1/1) +github.com/conformal/btcjson/jsoncmd.go SignRawTransactionCmd.Id 100.00% (1/1) github.com/conformal/btcjson/jsoncmd.go DecodeScriptCmd.MarshalJSON 100.00% (1/1) github.com/conformal/btcjson/jsoncmd.go NewDumpPrivKeyCmd 100.00% (1/1) -github.com/conformal/btcjson/jsoncmd.go NewGetPeerInfoCmd 100.00% (1/1) +github.com/conformal/btcjson/jsoncmd.go DumpPrivKeyCmd.Id 100.00% (1/1) github.com/conformal/btcjson/jsoncmd.go DumpPrivKeyCmd.MarshalJSON 100.00% (1/1) -github.com/conformal/btcjson/jsoncmd.go GetPeerInfoCmd.MarshalJSON 100.00% (1/1) +github.com/conformal/btcjson/jsoncmd.go SignMessageCmd.Id 100.00% (1/1) github.com/conformal/btcjson/jsoncmd.go NewDumpWalletCmd 100.00% (1/1) -github.com/conformal/btcjson/jsonapi.go RpcCommand 100.00% (1/1) +github.com/conformal/btcjson/jsoncmd.go DumpWalletCmd.Id 100.00% (1/1) +github.com/conformal/btcjson/jsoncmd.go NewSignMessageCmd 100.00% (1/1) github.com/conformal/btcjson/jsoncmd.go DumpWalletCmd.MarshalJSON 100.00% (1/1) -github.com/conformal/btcjson/jsoncmd.go NewEncryptWalletCmd 100.00% (1/1) -github.com/conformal/btcjson/jsoncmd.go EncryptWalletCmd.MarshalJSON 100.00% (1/1) +github.com/conformal/btcjson/jsoncmd.go GetGenerateCmd.Id 100.00% (1/1) +github.com/conformal/btcjson/jsoncmd.go NewGetHashesPerSecCmd 100.00% (1/1) +github.com/conformal/btcjson/jsoncmd.go GetHashesPerSecCmd.Id 100.00% (1/1) +github.com/conformal/btcjson/jsoncmd.go LockUnspentCmd.Id 100.00% (1/1) +github.com/conformal/btcjson/jsoncmd.go GetHashesPerSecCmd.MarshalJSON 100.00% (1/1) +github.com/conformal/btcjson/jsoncmd.go NewGetInfoCmd 100.00% (1/1) +github.com/conformal/btcjson/jsoncmd.go GetInfoCmd.Id 100.00% (1/1) +github.com/conformal/btcjson/jsoncmd.go GetInfoCmd.MarshalJSON 100.00% (1/1) +github.com/conformal/btcjson/jsoncmd.go ListUnspentCmd.Id 100.00% (1/1) +github.com/conformal/btcjson/jsoncmd.go NewGetMiningInfoCmd 100.00% (1/1) +github.com/conformal/btcjson/jsoncmd.go GetMiningInfoCmd.Id 100.00% (1/1) +github.com/conformal/btcjson/jsoncmd.go GetMiningInfoCmd.MarshalJSON 100.00% (1/1) +github.com/conformal/btcjson/jsoncmd.go NewGetNetTotalsCmd 100.00% (1/1) +github.com/conformal/btcjson/jsoncmd.go GetNetTotalsCmd.Id 100.00% (1/1) +github.com/conformal/btcjson/jsoncmd.go GetNetTotalsCmd.MarshalJSON 100.00% (1/1) +github.com/conformal/btcjson/jsoncmd.go ListTransactionsCmd.Id 100.00% (1/1) +github.com/conformal/btcjson/jsoncmd.go GetNetworkHashPSCmd.Id 100.00% (1/1) +github.com/conformal/btcjson/jsoncmd.go GetNewAddressCmd.Id 100.00% (1/1) +github.com/conformal/btcjson/jsoncmd.go ListReceivedByAccountCmd.Id 100.00% (1/1) +github.com/conformal/btcjson/jsoncmd.go NewGetPeerInfoCmd 100.00% (1/1) +github.com/conformal/btcjson/jsoncmd.go GetPeerInfoCmd.Id 100.00% (1/1) +github.com/conformal/btcjson/jsoncmd.go GetPeerInfoCmd.MarshalJSON 100.00% (1/1) +github.com/conformal/btcjson/jsoncmd.go ListLockUnspentCmd.Id 100.00% (1/1) +github.com/conformal/btcjson/jsoncmd.go GetRawChangeAddressCmd.Id 100.00% (1/1) +github.com/conformal/btcjson/jsoncmd.go NewListLockUnspentCmd 100.00% (1/1) +github.com/conformal/btcjson/jsoncmd.go GetRawMempoolCmd.Id 100.00% (1/1) +github.com/conformal/btcjson/jsoncmd.go GetRawTransactionCmd.Id 100.00% (1/1) +github.com/conformal/btcjson/jsoncmd.go ListAddressGroupingsCmd.Id 100.00% (1/1) +github.com/conformal/btcjson/jsoncmd.go MoveCmd.Id 100.00% (1/1) +github.com/conformal/btcjson/jsoncmd.go GetReceivedByAccountCmd.Id 100.00% (1/1) +github.com/conformal/btcjson/jsoncmd.go NewListAddressGroupingsCmd 100.00% (1/1) +github.com/conformal/btcjson/jsoncmd.go ListAccountsCmd.Id 100.00% (1/1) github.com/conformal/btcjson/jsoncmd.go NewGetTransactionCmd 100.00% (1/1) -github.com/conformal/btcjson/jsoncmd.go NewGetAccountCmd 100.00% (1/1) -github.com/conformal/btcjson/jsonapi.go Error.Error 100.00% (1/1) +github.com/conformal/btcjson/jsoncmd.go GetTransactionCmd.Id 100.00% (1/1) +github.com/conformal/btcjson/jsoncmd.go KeyPoolRefillCmd.Id 100.00% (1/1) +github.com/conformal/btcjson/jsoncmd.go GetTxOutCmd.Id 100.00% (1/1) +github.com/conformal/btcjson/jsoncmd.go NewKeyPoolRefillCmd 100.00% (1/1) github.com/conformal/btcjson/jsoncmd.go NewGetTxOutSetInfoCmd 100.00% (1/1) -github.com/conformal/btcjson/jsoncmd.go GetAccountCmd.MarshalJSON 100.00% (1/1) -github.com/conformal/btcjson/jsoncmd.go NewGetWorkCmd 100.00% (1/1) -github.com/conformal/btcjson/jsoncmd.go NewGetAccountAddressCmd 100.00% (1/1) -github.com/conformal/btcjson/jsoncmd.go AddNodeCmd.MarshalJSON 100.00% (1/1) -github.com/conformal/btcjson/jsoncmd.go GetAccountAddressCmd.MarshalJSON 100.00% (1/1) +github.com/conformal/btcjson/jsoncmd.go GetTxOutSetInfoCmd.Id 100.00% (1/1) +github.com/conformal/btcjson/jsoncmd.go ImportWalletCmd.Id 100.00% (1/1) github.com/conformal/btcjson/jsoncmd.go NewImportWalletCmd 100.00% (1/1) +github.com/conformal/btcjson/jsoncmd.go NewGetWorkCmd 100.00% (1/1) +github.com/conformal/btcjson/jsoncmd.go GetWorkCmd.Id 100.00% (1/1) +github.com/conformal/btcjson/jsoncmd.go HelpCmd.Id 100.00% (1/1) +github.com/conformal/btcjson/jsoncmd.go ImportPrivKeyCmd.Id 100.00% (1/1) +github.com/conformal/btcjson/jsoncmd.go GetReceivedByAddressCmd.Id 100.00% (1/1) +github.com/conformal/btcjson/jsoncmd.go NewGetConnectionCountCmd 100.00% (1/1) +github.com/conformal/btcjson/jsoncmd.go GetConnectionCountCmd.Id 100.00% (1/1) +github.com/conformal/btcjson/jsoncmd.go GetConnectionCountCmd.MarshalJSON 100.00% (1/1) +github.com/conformal/btcjson/jsoncmd.go PingCmd.Id 100.00% (1/1) +github.com/conformal/btcjson/jsoncmd.go NewGetDifficultyCmd 100.00% (1/1) +github.com/conformal/btcjson/jsoncmd.go GetDifficultyCmd.Id 100.00% (1/1) +github.com/conformal/btcjson/jsoncmd.go NewPingCmd 100.00% (1/1) +github.com/conformal/btcjson/jsoncmd.go GetDifficultyCmd.MarshalJSON 100.00% (1/1) +github.com/conformal/btcjson/jsoncmd.go NewGetGenerateCmd 100.00% (1/1) github.com/conformal/btcjson/jsonapi.go CreateMessageWithId 96.18% (327/340) github.com/conformal/btcjson/jsoncmd.go ParseMarshaledCmd 89.53% (77/86) github.com/conformal/btcjson/jsoncmd.go NewVerifyChainCmd 88.89% (8/9) -github.com/conformal/btcjson/jsoncmd.go NewListUnspentCmd 88.89% (8/9) github.com/conformal/btcjson/jsoncmd.go NewGetNetworkHashPSCmd 88.89% (8/9) +github.com/conformal/btcjson/jsoncmd.go NewListUnspentCmd 88.89% (8/9) github.com/conformal/btcjson/jsonapi.go ReadResultCmd 88.00% (66/75) -github.com/conformal/btcjson/jsoncmd.go NewGetBlockTemplateCmd 83.33% (5/6) -github.com/conformal/btcjson/jsoncmd.go NewGetTxOutCmd 83.33% (5/6) -github.com/conformal/btcjson/jsoncmd.go NewGetAddedNodeInfoCmd 83.33% (5/6) -github.com/conformal/btcjson/jsoncmd.go NewGetRawChangeAddressCmd 83.33% (5/6) -github.com/conformal/btcjson/jsoncmd.go NewGetRawMempoolCmd 83.33% (5/6) github.com/conformal/btcjson/jsoncmd.go NewGetNewAddressCmd 83.33% (5/6) -github.com/conformal/btcjson/jsoncmd.go NewSubmitBlockCmd 83.33% (5/6) +github.com/conformal/btcjson/jsoncmd.go NewHelpCmd 83.33% (5/6) github.com/conformal/btcjson/jsoncmd.go GetReceivedByAddressCmd.MarshalJSON 83.33% (5/6) github.com/conformal/btcjson/jsoncmd.go NewListAccountsCmd 83.33% (5/6) +github.com/conformal/btcjson/jsoncmd.go NewGetBlockTemplateCmd 83.33% (5/6) +github.com/conformal/btcjson/jsoncmd.go NewGetRawChangeAddressCmd 83.33% (5/6) +github.com/conformal/btcjson/jsoncmd.go NewSubmitBlockCmd 83.33% (5/6) +github.com/conformal/btcjson/jsoncmd.go NewSetGenerateCmd 83.33% (5/6) +github.com/conformal/btcjson/jsoncmd.go NewGetRawMempoolCmd 83.33% (5/6) +github.com/conformal/btcjson/jsoncmd.go NewAddMultisigAddressCmd 83.33% (5/6) +github.com/conformal/btcjson/jsoncmd.go NewGetAddedNodeInfoCmd 83.33% (5/6) github.com/conformal/btcjson/jsoncmd.go GetReceivedByAccountCmd.MarshalJSON 83.33% (5/6) github.com/conformal/btcjson/jsoncmd.go NewGetRawTransactionCmd 83.33% (5/6) -github.com/conformal/btcjson/jsoncmd.go NewHelpCmd 83.33% (5/6) -github.com/conformal/btcjson/jsoncmd.go NewSetGenerateCmd 83.33% (5/6) -github.com/conformal/btcjson/jsoncmd.go NewAddMultisigAddressCmd 83.33% (5/6) +github.com/conformal/btcjson/jsoncmd.go NewGetTxOutCmd 83.33% (5/6) github.com/conformal/btcjson/jsoncmd.go NewListTransactionsCmd 80.95% (17/21) github.com/conformal/btcjson/jsoncmd.go NewSendFromCmd 80.95% (17/21) -github.com/conformal/btcjson/jsoncmd.go NewMoveCmd 80.00% (12/15) github.com/conformal/btcjson/jsoncmd.go NewGetReceivedByAddressCmd 80.00% (12/15) github.com/conformal/btcjson/jsoncmd.go NewSendManyCmd 80.00% (12/15) +github.com/conformal/btcjson/jsoncmd.go NewGetBalanceCmd 80.00% (12/15) github.com/conformal/btcjson/jsoncmd.go NewGetReceivedByAccountCmd 80.00% (12/15) github.com/conformal/btcjson/jsoncmd.go NewSendToAddressCmd 80.00% (12/15) -github.com/conformal/btcjson/jsoncmd.go NewGetBalanceCmd 80.00% (12/15) +github.com/conformal/btcjson/jsoncmd.go NewMoveCmd 80.00% (12/15) github.com/conformal/btcjson/jsoncmd.go GetBlockTemplateCmd.UnmarshalJSON 79.41% (27/34) github.com/conformal/btcjson/jsoncmd.go NewImportPrivKeyCmd 78.57% (11/14) -github.com/conformal/btcjson/jsoncmd.go ListTransactionsCmd.UnmarshalJSON 76.92% (20/26) github.com/conformal/btcjson/jsoncmd.go SubmitBlockCmd.UnmarshalJSON 76.92% (20/26) -github.com/conformal/btcjson/jsoncmd.go GetNetworkHashPSCmd.UnmarshalJSON 76.19% (16/21) -github.com/conformal/btcjson/jsoncmd.go VerifyChainCmd.UnmarshalJSON 76.19% (16/21) +github.com/conformal/btcjson/jsoncmd.go ListTransactionsCmd.UnmarshalJSON 76.92% (20/26) github.com/conformal/btcjson/jsoncmd.go GetBalanceCmd.UnmarshalJSON 76.19% (16/21) +github.com/conformal/btcjson/jsoncmd.go GetNetworkHashPSCmd.UnmarshalJSON 76.19% (16/21) github.com/conformal/btcjson/jsoncmd.go ListUnspentCmd.UnmarshalJSON 76.19% (16/21) +github.com/conformal/btcjson/jsoncmd.go VerifyChainCmd.UnmarshalJSON 76.19% (16/21) github.com/conformal/btcjson/jsoncmd.go SendManyCmd.UnmarshalJSON 75.00% (27/36) github.com/conformal/btcjson/jsoncmd.go ImportPrivKeyCmd.UnmarshalJSON 75.00% (18/24) -github.com/conformal/btcjson/jsoncmd.go GetRawChangeAddressCmd.UnmarshalJSON 75.00% (12/16) -github.com/conformal/btcjson/jsoncmd.go GetRawMempoolCmd.UnmarshalJSON 75.00% (12/16) github.com/conformal/btcjson/jsoncmd.go GetNewAddressCmd.UnmarshalJSON 75.00% (12/16) +github.com/conformal/btcjson/jsoncmd.go GetRawMempoolCmd.UnmarshalJSON 75.00% (12/16) +github.com/conformal/btcjson/jsoncmd.go GetRawChangeAddressCmd.UnmarshalJSON 75.00% (12/16) github.com/conformal/btcjson/jsoncmd.go HelpCmd.UnmarshalJSON 75.00% (12/16) -github.com/conformal/btcjson/jsoncmd.go ListAccountsCmd.MarshalJSON 75.00% (3/4) -github.com/conformal/btcjson/jsoncmd.go GetTxOutCmd.MarshalJSON 75.00% (3/4) github.com/conformal/btcjson/jsoncmd.go LockUnspentCmd.MarshalJSON 75.00% (3/4) +github.com/conformal/btcjson/jsoncmd.go GetTxOutCmd.MarshalJSON 75.00% (3/4) +github.com/conformal/btcjson/jsoncmd.go ListAccountsCmd.MarshalJSON 75.00% (3/4) github.com/conformal/btcjson/jsoncmd.go SendFromCmd.UnmarshalJSON 73.68% (28/38) -github.com/conformal/btcjson/jsoncmd.go SetGenerateCmd.UnmarshalJSON 73.68% (14/19) github.com/conformal/btcjson/jsoncmd.go GetRawTransactionCmd.UnmarshalJSON 73.68% (14/19) +github.com/conformal/btcjson/jsoncmd.go SetGenerateCmd.UnmarshalJSON 73.68% (14/19) github.com/conformal/btcjson/jsoncmd.go GetWorkCmd.UnmarshalJSON 73.53% (25/34) github.com/conformal/btcjson/jsoncmd.go SendToAddressCmd.UnmarshalJSON 73.33% (22/30) github.com/conformal/btcjson/jsoncmd.go AddMultisigAddressCmd.UnmarshalJSON 73.08% (19/26) @@ -169,46 +239,46 @@ github.com/conformal/btcjson/jsoncmd.go GetAddedNodeInfoCmd.UnmarshalJSON 72.2 github.com/conformal/btcjson/jsoncmd.go CreateMultisigCmd.UnmarshalJSON 71.43% (15/21) github.com/conformal/btcjson/jsoncmd.go StopCmd.UnmarshalJSON 70.00% (7/10) github.com/conformal/btcjson/jsoncmd.go GetDifficultyCmd.UnmarshalJSON 70.00% (7/10) -github.com/conformal/btcjson/jsoncmd.go GetGenerateCmd.UnmarshalJSON 70.00% (7/10) github.com/conformal/btcjson/jsoncmd.go WalletLockCmd.UnmarshalJSON 70.00% (7/10) +github.com/conformal/btcjson/jsoncmd.go GetGenerateCmd.UnmarshalJSON 70.00% (7/10) github.com/conformal/btcjson/jsoncmd.go GetHashesPerSecCmd.UnmarshalJSON 70.00% (7/10) github.com/conformal/btcjson/jsoncmd.go GetInfoCmd.UnmarshalJSON 70.00% (7/10) github.com/conformal/btcjson/jsoncmd.go GetMiningInfoCmd.UnmarshalJSON 70.00% (7/10) github.com/conformal/btcjson/jsoncmd.go GetNetTotalsCmd.UnmarshalJSON 70.00% (7/10) -github.com/conformal/btcjson/jsoncmd.go ListLockUnspentCmd.UnmarshalJSON 70.00% (7/10) -github.com/conformal/btcjson/jsoncmd.go GetTxOutSetInfoCmd.UnmarshalJSON 70.00% (7/10) -github.com/conformal/btcjson/jsoncmd.go GetPeerInfoCmd.UnmarshalJSON 70.00% (7/10) -github.com/conformal/btcjson/jsoncmd.go PingCmd.UnmarshalJSON 70.00% (7/10) -github.com/conformal/btcjson/jsoncmd.go GetBlockCountCmd.UnmarshalJSON 70.00% (7/10) -github.com/conformal/btcjson/jsoncmd.go KeyPoolRefillCmd.UnmarshalJSON 70.00% (7/10) github.com/conformal/btcjson/jsoncmd.go ListAddressGroupingsCmd.UnmarshalJSON 70.00% (7/10) +github.com/conformal/btcjson/jsoncmd.go GetPeerInfoCmd.UnmarshalJSON 70.00% (7/10) +github.com/conformal/btcjson/jsoncmd.go KeyPoolRefillCmd.UnmarshalJSON 70.00% (7/10) +github.com/conformal/btcjson/jsoncmd.go ListLockUnspentCmd.UnmarshalJSON 70.00% (7/10) +github.com/conformal/btcjson/jsoncmd.go GetBlockCountCmd.UnmarshalJSON 70.00% (7/10) +github.com/conformal/btcjson/jsoncmd.go GetTxOutSetInfoCmd.UnmarshalJSON 70.00% (7/10) github.com/conformal/btcjson/jsoncmd.go GetBestBlockHashCmd.UnmarshalJSON 70.00% (7/10) +github.com/conformal/btcjson/jsoncmd.go PingCmd.UnmarshalJSON 70.00% (7/10) github.com/conformal/btcjson/jsoncmd.go GetConnectionCountCmd.UnmarshalJSON 70.00% (7/10) github.com/conformal/btcjson/jsoncmd.go GetAccountCmd.UnmarshalJSON 69.23% (9/13) -github.com/conformal/btcjson/jsoncmd.go DumpWalletCmd.UnmarshalJSON 69.23% (9/13) -github.com/conformal/btcjson/jsoncmd.go GetBlockHashCmd.UnmarshalJSON 69.23% (9/13) -github.com/conformal/btcjson/jsoncmd.go DecodeScriptCmd.UnmarshalJSON 69.23% (9/13) -github.com/conformal/btcjson/jsoncmd.go DumpPrivKeyCmd.UnmarshalJSON 69.23% (9/13) -github.com/conformal/btcjson/jsoncmd.go GetTransactionCmd.UnmarshalJSON 69.23% (9/13) github.com/conformal/btcjson/jsoncmd.go ImportWalletCmd.UnmarshalJSON 69.23% (9/13) +github.com/conformal/btcjson/jsoncmd.go ValidateAddressCmd.UnmarshalJSON 69.23% (9/13) +github.com/conformal/btcjson/jsoncmd.go DecodeScriptCmd.UnmarshalJSON 69.23% (9/13) +github.com/conformal/btcjson/jsoncmd.go BackupWalletCmd.UnmarshalJSON 69.23% (9/13) +github.com/conformal/btcjson/jsoncmd.go CreateRawTransactionCmd.UnmarshalJSON 69.23% (9/13) +github.com/conformal/btcjson/jsoncmd.go GetTransactionCmd.UnmarshalJSON 69.23% (9/13) github.com/conformal/btcjson/jsoncmd.go DebugLevelCmd.UnmarshalJSON 69.23% (9/13) github.com/conformal/btcjson/jsoncmd.go DecodeRawTransactionCmd.UnmarshalJSON 69.23% (9/13) +github.com/conformal/btcjson/jsoncmd.go DumpPrivKeyCmd.UnmarshalJSON 69.23% (9/13) +github.com/conformal/btcjson/jsoncmd.go DumpWalletCmd.UnmarshalJSON 69.23% (9/13) +github.com/conformal/btcjson/jsoncmd.go EncryptWalletCmd.UnmarshalJSON 69.23% (9/13) github.com/conformal/btcjson/jsoncmd.go GetAccountAddressCmd.UnmarshalJSON 69.23% (9/13) github.com/conformal/btcjson/jsoncmd.go GetAddressesByAccountCmd.UnmarshalJSON 69.23% (9/13) -github.com/conformal/btcjson/jsoncmd.go ValidateAddressCmd.UnmarshalJSON 69.23% (9/13) -github.com/conformal/btcjson/jsoncmd.go CreateRawTransactionCmd.UnmarshalJSON 69.23% (9/13) -github.com/conformal/btcjson/jsoncmd.go EncryptWalletCmd.UnmarshalJSON 69.23% (9/13) -github.com/conformal/btcjson/jsoncmd.go BackupWalletCmd.UnmarshalJSON 69.23% (9/13) github.com/conformal/btcjson/jsoncmd.go SendRawTransactionCmd.UnmarshalJSON 69.23% (9/13) -github.com/conformal/btcjson/jsoncmd.go WalletPassphraseCmd.UnmarshalJSON 68.75% (11/16) -github.com/conformal/btcjson/jsoncmd.go AddNodeCmd.UnmarshalJSON 68.75% (11/16) -github.com/conformal/btcjson/jsoncmd.go SignMessageCmd.UnmarshalJSON 68.75% (11/16) +github.com/conformal/btcjson/jsoncmd.go GetBlockHashCmd.UnmarshalJSON 69.23% (9/13) github.com/conformal/btcjson/jsoncmd.go WalletPassphraseChangeCmd.UnmarshalJSON 68.75% (11/16) +github.com/conformal/btcjson/jsoncmd.go AddNodeCmd.UnmarshalJSON 68.75% (11/16) +github.com/conformal/btcjson/jsoncmd.go WalletPassphraseCmd.UnmarshalJSON 68.75% (11/16) +github.com/conformal/btcjson/jsoncmd.go SignMessageCmd.UnmarshalJSON 68.75% (11/16) github.com/conformal/btcjson/jsoncmd.go SetAccountCmd.UnmarshalJSON 68.75% (11/16) github.com/conformal/btcjson/jsoncmd.go SetTxFeeCmd.UnmarshalJSON 68.75% (11/16) github.com/conformal/btcjson/jsoncmd.go VerifyMessageCmd.UnmarshalJSON 68.42% (13/19) -github.com/conformal/btcjson/jsoncmd.go NewLockUnspentCmd 66.67% (4/6) github.com/conformal/btcjson/jsoncmd.go ListReceivedByAccountCmd.MarshalJSON 66.67% (4/6) +github.com/conformal/btcjson/jsoncmd.go NewLockUnspentCmd 66.67% (4/6) github.com/conformal/btcjson/jsoncmd.go NewAddNodeCmd 66.67% (2/3) github.com/conformal/btcjson/jsonfxns.go jsonRpcSend 62.50% (10/16) github.com/conformal/btcjson/jsoncmd.go SignRawTransactionCmd.MarshalJSON 62.50% (5/8) @@ -226,165 +296,95 @@ github.com/conformal/btcjson/jsoncmd.go NewSignRawTransactionCmd 38.10% (8/21 github.com/conformal/btcjson/jsoncmd.go NewGetBlockCmd 36.36% (4/11) github.com/conformal/btcjson/jsoncmd.go LockUnspentCmd.UnmarshalJSON 30.56% (11/36) github.com/conformal/btcjson/jsoncmd.go SignRawTransactionCmd.UnmarshalJSON 22.03% (13/59) -github.com/conformal/btcjson/jsoncmd.go ListReceivedByAddressCmd.UnmarshalJSON 0.00% (0/21) github.com/conformal/btcjson/jsoncmd.go ListSinceBlockCmd.UnmarshalJSON 0.00% (0/21) +github.com/conformal/btcjson/jsoncmd.go ListReceivedByAddressCmd.UnmarshalJSON 0.00% (0/21) github.com/conformal/btcjson/jsoncmd.go NewListSinceBlockCmd 0.00% (0/15) github.com/conformal/btcjson/jsoncmd.go NewListReceivedByAddressCmd 0.00% (0/15) -github.com/conformal/btcjson/jsoncmd.go ListSinceBlockCmd.MarshalJSON 0.00% (0/6) github.com/conformal/btcjson/jsoncmd.go ListReceivedByAddressCmd.MarshalJSON 0.00% (0/6) github.com/conformal/btcjson/jsoncmd.go unparsableCmd.UnmarshalJSON 0.00% (0/6) +github.com/conformal/btcjson/jsoncmd.go ListSinceBlockCmd.MarshalJSON 0.00% (0/6) github.com/conformal/btcjson/jsonapi.go Vin.MarshalJSON 0.00% (0/5) github.com/conformal/btcjson/jsoncmd.go unparsableCmd.MarshalJSON 0.00% (0/2) -github.com/conformal/btcjson/jsoncmd.go GetHashesPerSecCmd.Id 0.00% (0/1) -github.com/conformal/btcjson/jsonapi.go TlsRpcCommand 0.00% (0/1) -github.com/conformal/btcjson/jsonapi.go TlsRpcRawCommand 0.00% (0/1) -github.com/conformal/btcjson/jsonapi.go RpcRawCommand 0.00% (0/1) -github.com/conformal/btcjson/jsoncmd.go RegisterCustomCmd 0.00% (0/1) -github.com/conformal/btcjson/jsoncmd.go newUnparsableCmd 0.00% (0/1) -github.com/conformal/btcjson/jsoncmd.go unparsableCmd.Id 0.00% (0/1) -github.com/conformal/btcjson/jsoncmd.go unparsableCmd.Method 0.00% (0/1) -github.com/conformal/btcjson/jsoncmd.go AddMultisigAddressCmd.Id 0.00% (0/1) -github.com/conformal/btcjson/jsoncmd.go AddMultisigAddressCmd.Method 0.00% (0/1) -github.com/conformal/btcjson/jsoncmd.go AddNodeCmd.Id 0.00% (0/1) -github.com/conformal/btcjson/jsoncmd.go AddNodeCmd.Method 0.00% (0/1) -github.com/conformal/btcjson/jsoncmd.go BackupWalletCmd.Id 0.00% (0/1) -github.com/conformal/btcjson/jsoncmd.go BackupWalletCmd.Method 0.00% (0/1) -github.com/conformal/btcjson/jsoncmd.go CreateMultisigCmd.Id 0.00% (0/1) -github.com/conformal/btcjson/jsoncmd.go CreateMultisigCmd.Method 0.00% (0/1) -github.com/conformal/btcjson/jsoncmd.go CreateRawTransactionCmd.Id 0.00% (0/1) -github.com/conformal/btcjson/jsoncmd.go CreateRawTransactionCmd.Method 0.00% (0/1) -github.com/conformal/btcjson/jsoncmd.go DebugLevelCmd.Id 0.00% (0/1) -github.com/conformal/btcjson/jsoncmd.go DecodeRawTransactionCmd.Id 0.00% (0/1) -github.com/conformal/btcjson/jsoncmd.go DecodeRawTransactionCmd.Method 0.00% (0/1) -github.com/conformal/btcjson/jsoncmd.go DecodeScriptCmd.Id 0.00% (0/1) -github.com/conformal/btcjson/jsoncmd.go DecodeScriptCmd.Method 0.00% (0/1) -github.com/conformal/btcjson/jsoncmd.go DumpPrivKeyCmd.Id 0.00% (0/1) -github.com/conformal/btcjson/jsoncmd.go DumpPrivKeyCmd.Method 0.00% (0/1) -github.com/conformal/btcjson/jsoncmd.go DumpWalletCmd.Id 0.00% (0/1) -github.com/conformal/btcjson/jsoncmd.go DumpWalletCmd.Method 0.00% (0/1) -github.com/conformal/btcjson/jsoncmd.go EncryptWalletCmd.Id 0.00% (0/1) -github.com/conformal/btcjson/jsoncmd.go EncryptWalletCmd.Method 0.00% (0/1) -github.com/conformal/btcjson/jsoncmd.go GetAccountCmd.Id 0.00% (0/1) -github.com/conformal/btcjson/jsoncmd.go GetAccountCmd.Method 0.00% (0/1) -github.com/conformal/btcjson/jsoncmd.go GetAccountAddressCmd.Id 0.00% (0/1) -github.com/conformal/btcjson/jsoncmd.go GetAccountAddressCmd.Method 0.00% (0/1) -github.com/conformal/btcjson/jsoncmd.go GetAddedNodeInfoCmd.Id 0.00% (0/1) -github.com/conformal/btcjson/jsoncmd.go GetAddedNodeInfoCmd.Method 0.00% (0/1) -github.com/conformal/btcjson/jsoncmd.go GetAddressesByAccountCmd.Id 0.00% (0/1) -github.com/conformal/btcjson/jsoncmd.go GetAddressesByAccountCmd.Method 0.00% (0/1) -github.com/conformal/btcjson/jsoncmd.go GetBalanceCmd.Id 0.00% (0/1) -github.com/conformal/btcjson/jsoncmd.go GetBalanceCmd.Method 0.00% (0/1) -github.com/conformal/btcjson/jsoncmd.go GetBestBlockHashCmd.Id 0.00% (0/1) -github.com/conformal/btcjson/jsoncmd.go GetBestBlockHashCmd.Method 0.00% (0/1) -github.com/conformal/btcjson/jsoncmd.go GetBlockCmd.Id 0.00% (0/1) -github.com/conformal/btcjson/jsoncmd.go GetBlockCmd.Method 0.00% (0/1) -github.com/conformal/btcjson/jsoncmd.go GetBlockCountCmd.Id 0.00% (0/1) -github.com/conformal/btcjson/jsoncmd.go GetBlockCountCmd.Method 0.00% (0/1) -github.com/conformal/btcjson/jsoncmd.go GetBlockHashCmd.Id 0.00% (0/1) -github.com/conformal/btcjson/jsoncmd.go GetBlockHashCmd.Method 0.00% (0/1) -github.com/conformal/btcjson/jsoncmd.go GetBlockTemplateCmd.Id 0.00% (0/1) -github.com/conformal/btcjson/jsoncmd.go GetBlockTemplateCmd.Method 0.00% (0/1) -github.com/conformal/btcjson/jsoncmd.go GetConnectionCountCmd.Id 0.00% (0/1) -github.com/conformal/btcjson/jsoncmd.go GetConnectionCountCmd.Method 0.00% (0/1) -github.com/conformal/btcjson/jsoncmd.go GetDifficultyCmd.Id 0.00% (0/1) -github.com/conformal/btcjson/jsoncmd.go GetDifficultyCmd.Method 0.00% (0/1) -github.com/conformal/btcjson/jsoncmd.go GetGenerateCmd.Id 0.00% (0/1) -github.com/conformal/btcjson/jsoncmd.go GetGenerateCmd.Method 0.00% (0/1) -github.com/conformal/btcjson/jsoncmd.go GetHashesPerSecCmd.Method 0.00% (0/1) -github.com/conformal/btcjson/jsoncmd.go GetInfoCmd.Id 0.00% (0/1) -github.com/conformal/btcjson/jsoncmd.go GetInfoCmd.Method 0.00% (0/1) -github.com/conformal/btcjson/jsoncmd.go GetMiningInfoCmd.Id 0.00% (0/1) -github.com/conformal/btcjson/jsoncmd.go GetMiningInfoCmd.Method 0.00% (0/1) -github.com/conformal/btcjson/jsoncmd.go GetNetTotalsCmd.Id 0.00% (0/1) -github.com/conformal/btcjson/jsoncmd.go GetNetTotalsCmd.Method 0.00% (0/1) -github.com/conformal/btcjson/jsoncmd.go GetNetworkHashPSCmd.Id 0.00% (0/1) -github.com/conformal/btcjson/jsoncmd.go GetNetworkHashPSCmd.Method 0.00% (0/1) -github.com/conformal/btcjson/jsoncmd.go GetNewAddressCmd.Id 0.00% (0/1) -github.com/conformal/btcjson/jsoncmd.go GetNewAddressCmd.Method 0.00% (0/1) -github.com/conformal/btcjson/jsoncmd.go GetPeerInfoCmd.Id 0.00% (0/1) -github.com/conformal/btcjson/jsoncmd.go GetPeerInfoCmd.Method 0.00% (0/1) -github.com/conformal/btcjson/jsoncmd.go GetRawChangeAddressCmd.Id 0.00% (0/1) -github.com/conformal/btcjson/jsoncmd.go GetRawChangeAddressCmd.Method 0.00% (0/1) -github.com/conformal/btcjson/jsoncmd.go GetRawMempoolCmd.Id 0.00% (0/1) -github.com/conformal/btcjson/jsoncmd.go GetRawMempoolCmd.Method 0.00% (0/1) -github.com/conformal/btcjson/jsoncmd.go GetRawTransactionCmd.Id 0.00% (0/1) -github.com/conformal/btcjson/jsoncmd.go GetRawTransactionCmd.Method 0.00% (0/1) -github.com/conformal/btcjson/jsoncmd.go GetReceivedByAccountCmd.Id 0.00% (0/1) -github.com/conformal/btcjson/jsoncmd.go GetReceivedByAccountCmd.Method 0.00% (0/1) -github.com/conformal/btcjson/jsoncmd.go GetReceivedByAddressCmd.Id 0.00% (0/1) -github.com/conformal/btcjson/jsoncmd.go GetReceivedByAddressCmd.Method 0.00% (0/1) -github.com/conformal/btcjson/jsoncmd.go GetTransactionCmd.Id 0.00% (0/1) -github.com/conformal/btcjson/jsoncmd.go GetTransactionCmd.Method 0.00% (0/1) -github.com/conformal/btcjson/jsoncmd.go GetTxOutCmd.Id 0.00% (0/1) -github.com/conformal/btcjson/jsoncmd.go GetTxOutCmd.Method 0.00% (0/1) -github.com/conformal/btcjson/jsoncmd.go GetTxOutSetInfoCmd.Id 0.00% (0/1) -github.com/conformal/btcjson/jsoncmd.go GetTxOutSetInfoCmd.Method 0.00% (0/1) -github.com/conformal/btcjson/jsoncmd.go GetWorkCmd.Id 0.00% (0/1) -github.com/conformal/btcjson/jsoncmd.go GetWorkCmd.Method 0.00% (0/1) -github.com/conformal/btcjson/jsoncmd.go HelpCmd.Id 0.00% (0/1) -github.com/conformal/btcjson/jsoncmd.go HelpCmd.Method 0.00% (0/1) -github.com/conformal/btcjson/jsoncmd.go ImportPrivKeyCmd.Id 0.00% (0/1) -github.com/conformal/btcjson/jsoncmd.go ImportPrivKeyCmd.Method 0.00% (0/1) -github.com/conformal/btcjson/jsoncmd.go ImportWalletCmd.Id 0.00% (0/1) -github.com/conformal/btcjson/jsoncmd.go ImportWalletCmd.Method 0.00% (0/1) -github.com/conformal/btcjson/jsoncmd.go KeyPoolRefillCmd.Id 0.00% (0/1) -github.com/conformal/btcjson/jsoncmd.go KeyPoolRefillCmd.Method 0.00% (0/1) -github.com/conformal/btcjson/jsoncmd.go ListAccountsCmd.Id 0.00% (0/1) -github.com/conformal/btcjson/jsoncmd.go ListAccountsCmd.Method 0.00% (0/1) -github.com/conformal/btcjson/jsoncmd.go ListAddressGroupingsCmd.Id 0.00% (0/1) -github.com/conformal/btcjson/jsoncmd.go ListAddressGroupingsCmd.Method 0.00% (0/1) -github.com/conformal/btcjson/jsoncmd.go ListLockUnspentCmd.Id 0.00% (0/1) -github.com/conformal/btcjson/jsoncmd.go ListLockUnspentCmd.Method 0.00% (0/1) -github.com/conformal/btcjson/jsoncmd.go ListReceivedByAccountCmd.Id 0.00% (0/1) -github.com/conformal/btcjson/jsoncmd.go ListReceivedByAccountCmd.Method 0.00% (0/1) -github.com/conformal/btcjson/jsoncmd.go ListReceivedByAddressCmd.Id 0.00% (0/1) -github.com/conformal/btcjson/jsoncmd.go ListReceivedByAddressCmd.Method 0.00% (0/1) -github.com/conformal/btcjson/jsoncmd.go ListSinceBlockCmd.Id 0.00% (0/1) -github.com/conformal/btcjson/jsoncmd.go ListSinceBlockCmd.Method 0.00% (0/1) -github.com/conformal/btcjson/jsoncmd.go ListTransactionsCmd.Id 0.00% (0/1) -github.com/conformal/btcjson/jsoncmd.go ListTransactionsCmd.Method 0.00% (0/1) -github.com/conformal/btcjson/jsoncmd.go ListUnspentCmd.Id 0.00% (0/1) -github.com/conformal/btcjson/jsoncmd.go ListUnspentCmd.Method 0.00% (0/1) -github.com/conformal/btcjson/jsoncmd.go LockUnspentCmd.Id 0.00% (0/1) -github.com/conformal/btcjson/jsoncmd.go LockUnspentCmd.Method 0.00% (0/1) -github.com/conformal/btcjson/jsoncmd.go MoveCmd.Id 0.00% (0/1) -github.com/conformal/btcjson/jsoncmd.go MoveCmd.Method 0.00% (0/1) -github.com/conformal/btcjson/jsoncmd.go PingCmd.Id 0.00% (0/1) -github.com/conformal/btcjson/jsoncmd.go PingCmd.Method 0.00% (0/1) -github.com/conformal/btcjson/jsoncmd.go SendFromCmd.Id 0.00% (0/1) -github.com/conformal/btcjson/jsoncmd.go SendFromCmd.Method 0.00% (0/1) -github.com/conformal/btcjson/jsoncmd.go SendManyCmd.Id 0.00% (0/1) github.com/conformal/btcjson/jsoncmd.go SendManyCmd.Method 0.00% (0/1) -github.com/conformal/btcjson/jsoncmd.go SendRawTransactionCmd.Id 0.00% (0/1) +github.com/conformal/btcjson/jsoncmd.go GetBlockCountCmd.Method 0.00% (0/1) +github.com/conformal/btcjson/jsoncmd.go GetBlockCmd.Method 0.00% (0/1) +github.com/conformal/btcjson/jsoncmd.go GetBlockHashCmd.Method 0.00% (0/1) +github.com/conformal/btcjson/jsoncmd.go SendFromCmd.Method 0.00% (0/1) github.com/conformal/btcjson/jsoncmd.go SendRawTransactionCmd.Method 0.00% (0/1) -github.com/conformal/btcjson/jsoncmd.go SendToAddressCmd.Id 0.00% (0/1) +github.com/conformal/btcjson/jsoncmd.go GetBestBlockHashCmd.Method 0.00% (0/1) +github.com/conformal/btcjson/jsoncmd.go GetBlockTemplateCmd.Method 0.00% (0/1) +github.com/conformal/btcjson/jsoncmd.go GetBalanceCmd.Method 0.00% (0/1) +github.com/conformal/btcjson/jsoncmd.go GetConnectionCountCmd.Method 0.00% (0/1) github.com/conformal/btcjson/jsoncmd.go SendToAddressCmd.Method 0.00% (0/1) -github.com/conformal/btcjson/jsoncmd.go SetAccountCmd.Id 0.00% (0/1) +github.com/conformal/btcjson/jsoncmd.go GetAddressesByAccountCmd.Method 0.00% (0/1) +github.com/conformal/btcjson/jsoncmd.go PingCmd.Method 0.00% (0/1) +github.com/conformal/btcjson/jsoncmd.go GetDifficultyCmd.Method 0.00% (0/1) +github.com/conformal/btcjson/jsoncmd.go GetAddedNodeInfoCmd.Method 0.00% (0/1) github.com/conformal/btcjson/jsoncmd.go SetAccountCmd.Method 0.00% (0/1) -github.com/conformal/btcjson/jsoncmd.go SetGenerateCmd.Id 0.00% (0/1) +github.com/conformal/btcjson/jsoncmd.go MoveCmd.Method 0.00% (0/1) +github.com/conformal/btcjson/jsoncmd.go GetGenerateCmd.Method 0.00% (0/1) +github.com/conformal/btcjson/jsoncmd.go GetAccountAddressCmd.Method 0.00% (0/1) +github.com/conformal/btcjson/jsoncmd.go LockUnspentCmd.Method 0.00% (0/1) github.com/conformal/btcjson/jsoncmd.go SetGenerateCmd.Method 0.00% (0/1) -github.com/conformal/btcjson/jsoncmd.go SetTxFeeCmd.Id 0.00% (0/1) -github.com/conformal/btcjson/jsoncmd.go SetTxFeeCmd.Method 0.00% (0/1) -github.com/conformal/btcjson/jsoncmd.go SignMessageCmd.Id 0.00% (0/1) -github.com/conformal/btcjson/jsoncmd.go SignMessageCmd.Method 0.00% (0/1) -github.com/conformal/btcjson/jsoncmd.go SignRawTransactionCmd.Id 0.00% (0/1) -github.com/conformal/btcjson/jsoncmd.go SignRawTransactionCmd.Method 0.00% (0/1) -github.com/conformal/btcjson/jsoncmd.go StopCmd.Id 0.00% (0/1) -github.com/conformal/btcjson/jsoncmd.go StopCmd.Method 0.00% (0/1) -github.com/conformal/btcjson/jsoncmd.go SubmitBlockCmd.Id 0.00% (0/1) -github.com/conformal/btcjson/jsoncmd.go SubmitBlockCmd.Method 0.00% (0/1) -github.com/conformal/btcjson/jsoncmd.go ValidateAddressCmd.Id 0.00% (0/1) -github.com/conformal/btcjson/jsoncmd.go ValidateAddressCmd.Method 0.00% (0/1) -github.com/conformal/btcjson/jsoncmd.go VerifyChainCmd.Id 0.00% (0/1) -github.com/conformal/btcjson/jsoncmd.go VerifyChainCmd.Method 0.00% (0/1) -github.com/conformal/btcjson/jsoncmd.go VerifyMessageCmd.Id 0.00% (0/1) -github.com/conformal/btcjson/jsoncmd.go VerifyMessageCmd.Method 0.00% (0/1) -github.com/conformal/btcjson/jsoncmd.go WalletLockCmd.Id 0.00% (0/1) -github.com/conformal/btcjson/jsoncmd.go WalletLockCmd.Method 0.00% (0/1) -github.com/conformal/btcjson/jsoncmd.go WalletPassphraseCmd.Id 0.00% (0/1) -github.com/conformal/btcjson/jsoncmd.go WalletPassphraseCmd.Method 0.00% (0/1) -github.com/conformal/btcjson/jsoncmd.go WalletPassphraseChangeCmd.Id 0.00% (0/1) -github.com/conformal/btcjson/jsoncmd.go WalletPassphraseChangeCmd.Method 0.00% (0/1) +github.com/conformal/btcjson/jsoncmd.go GetAccountCmd.Method 0.00% (0/1) github.com/conformal/btcjson/jsonapi.go Vin.IsCoinBase 0.00% (0/1) -github.com/conformal/btcjson --------------------------------------- 69.96% (1879/2686) +github.com/conformal/btcjson/jsoncmd.go GetHashesPerSecCmd.Method 0.00% (0/1) +github.com/conformal/btcjson/jsoncmd.go EncryptWalletCmd.Method 0.00% (0/1) +github.com/conformal/btcjson/jsoncmd.go SetTxFeeCmd.Method 0.00% (0/1) +github.com/conformal/btcjson/jsoncmd.go GetInfoCmd.Method 0.00% (0/1) +github.com/conformal/btcjson/jsoncmd.go ListUnspentCmd.Method 0.00% (0/1) +github.com/conformal/btcjson/jsoncmd.go DumpWalletCmd.Method 0.00% (0/1) +github.com/conformal/btcjson/jsoncmd.go GetMiningInfoCmd.Method 0.00% (0/1) +github.com/conformal/btcjson/jsoncmd.go SignMessageCmd.Method 0.00% (0/1) +github.com/conformal/btcjson/jsoncmd.go DumpPrivKeyCmd.Method 0.00% (0/1) +github.com/conformal/btcjson/jsoncmd.go GetNetTotalsCmd.Method 0.00% (0/1) +github.com/conformal/btcjson/jsoncmd.go ListTransactionsCmd.Method 0.00% (0/1) +github.com/conformal/btcjson/jsoncmd.go DecodeScriptCmd.Method 0.00% (0/1) +github.com/conformal/btcjson/jsoncmd.go SignRawTransactionCmd.Method 0.00% (0/1) +github.com/conformal/btcjson/jsoncmd.go GetNetworkHashPSCmd.Method 0.00% (0/1) +github.com/conformal/btcjson/jsoncmd.go ListSinceBlockCmd.Method 0.00% (0/1) +github.com/conformal/btcjson/jsoncmd.go ListSinceBlockCmd.Id 0.00% (0/1) +github.com/conformal/btcjson/jsoncmd.go DecodeRawTransactionCmd.Method 0.00% (0/1) +github.com/conformal/btcjson/jsoncmd.go StopCmd.Method 0.00% (0/1) +github.com/conformal/btcjson/jsoncmd.go ImportPrivKeyCmd.Method 0.00% (0/1) +github.com/conformal/btcjson/jsoncmd.go HelpCmd.Method 0.00% (0/1) +github.com/conformal/btcjson/jsoncmd.go ListReceivedByAddressCmd.Method 0.00% (0/1) +github.com/conformal/btcjson/jsoncmd.go CreateRawTransactionCmd.Method 0.00% (0/1) +github.com/conformal/btcjson/jsoncmd.go SubmitBlockCmd.Method 0.00% (0/1) +github.com/conformal/btcjson/jsoncmd.go ListReceivedByAddressCmd.Id 0.00% (0/1) +github.com/conformal/btcjson/jsoncmd.go ListReceivedByAccountCmd.Method 0.00% (0/1) +github.com/conformal/btcjson/jsoncmd.go CreateMultisigCmd.Method 0.00% (0/1) +github.com/conformal/btcjson/jsoncmd.go GetNewAddressCmd.Method 0.00% (0/1) +github.com/conformal/btcjson/jsoncmd.go ValidateAddressCmd.Method 0.00% (0/1) +github.com/conformal/btcjson/jsoncmd.go BackupWalletCmd.Method 0.00% (0/1) +github.com/conformal/btcjson/jsoncmd.go GetPeerInfoCmd.Method 0.00% (0/1) +github.com/conformal/btcjson/jsoncmd.go ListLockUnspentCmd.Method 0.00% (0/1) +github.com/conformal/btcjson/jsoncmd.go AddNodeCmd.Method 0.00% (0/1) +github.com/conformal/btcjson/jsoncmd.go VerifyChainCmd.Method 0.00% (0/1) +github.com/conformal/btcjson/jsoncmd.go GetRawChangeAddressCmd.Method 0.00% (0/1) +github.com/conformal/btcjson/jsoncmd.go GetRawMempoolCmd.Method 0.00% (0/1) +github.com/conformal/btcjson/jsoncmd.go AddMultisigAddressCmd.Method 0.00% (0/1) +github.com/conformal/btcjson/jsoncmd.go ListAddressGroupingsCmd.Method 0.00% (0/1) +github.com/conformal/btcjson/jsoncmd.go VerifyMessageCmd.Method 0.00% (0/1) +github.com/conformal/btcjson/jsoncmd.go GetReceivedByAccountCmd.Method 0.00% (0/1) +github.com/conformal/btcjson/jsoncmd.go ListAccountsCmd.Method 0.00% (0/1) +github.com/conformal/btcjson/jsoncmd.go unparsableCmd.Method 0.00% (0/1) +github.com/conformal/btcjson/jsoncmd.go unparsableCmd.Id 0.00% (0/1) +github.com/conformal/btcjson/jsoncmd.go WalletLockCmd.Method 0.00% (0/1) +github.com/conformal/btcjson/jsoncmd.go newUnparsableCmd 0.00% (0/1) +github.com/conformal/btcjson/jsoncmd.go GetReceivedByAddressCmd.Method 0.00% (0/1) +github.com/conformal/btcjson/jsoncmd.go RegisterCustomCmd 0.00% (0/1) +github.com/conformal/btcjson/jsoncmd.go GetTransactionCmd.Method 0.00% (0/1) +github.com/conformal/btcjson/jsoncmd.go WalletPassphraseCmd.Method 0.00% (0/1) +github.com/conformal/btcjson/jsonapi.go RpcRawCommand 0.00% (0/1) +github.com/conformal/btcjson/jsoncmd.go KeyPoolRefillCmd.Method 0.00% (0/1) +github.com/conformal/btcjson/jsonapi.go TlsRpcRawCommand 0.00% (0/1) +github.com/conformal/btcjson/jsoncmd.go GetTxOutCmd.Method 0.00% (0/1) +github.com/conformal/btcjson/jsoncmd.go WalletPassphraseChangeCmd.Method 0.00% (0/1) +github.com/conformal/btcjson/jsonapi.go TlsRpcCommand 0.00% (0/1) +github.com/conformal/btcjson/jsoncmd.go ImportWalletCmd.Method 0.00% (0/1) +github.com/conformal/btcjson/jsoncmd.go GetTxOutSetInfoCmd.Method 0.00% (0/1) +github.com/conformal/btcjson/jsoncmd.go GetWorkCmd.Method 0.00% (0/1) +github.com/conformal/btcjson/jsoncmd.go GetRawTransactionCmd.Method 0.00% (0/1) +github.com/conformal/btcjson --------------------------------------- 72.56% (1949/2686)