From 0ef14522477a573ffd1d53e0ea20c16f0e36a56d Mon Sep 17 00:00:00 2001 From: "John C. Vernaleo" Date: Mon, 6 Jan 2014 10:12:35 -0500 Subject: [PATCH] Improve test coverage a bit. Fix bug in a json command caught by new test. --- jsoncmd.go | 2 +- jsoncmd_test.go | 334 ++++++++++++++++++++++------------- test_coverage.txt | 434 +++++++++++++++++++++++----------------------- 3 files changed, 435 insertions(+), 335 deletions(-) diff --git a/jsoncmd.go b/jsoncmd.go index 44406612..b19f9a05 100644 --- a/jsoncmd.go +++ b/jsoncmd.go @@ -3177,7 +3177,7 @@ func (cmd *GetReceivedByAddressCmd) Id() interface{} { // Method satisfies the Cmd interface by returning the json method. func (cmd *GetReceivedByAddressCmd) Method() string { - return "getrecivedbyaddress" + return "getreceivedbyaddress" } // MarshalJSON returns the JSON encoding of cmd. Part of the Cmd interface. diff --git a/jsoncmd_test.go b/jsoncmd_test.go index ffd1c09a..6f8ba515 100644 --- a/jsoncmd_test.go +++ b/jsoncmd_test.go @@ -16,11 +16,13 @@ var testId = float64(1) var jsoncmdtests = []struct { name string + cmd string f func() (Cmd, error) result Cmd // after marshal and unmarshal }{ { - name: "basic addmultisigaddress", + name: "basic", + cmd: "addmultisigaddress", f: func() (Cmd, error) { return NewAddMultisigAddressCmd(testId, 1, []string{"foo", "bar"}) @@ -33,7 +35,8 @@ var jsoncmdtests = []struct { }, }, { - name: "addmultisigaddress + optional", + name: "+ optional", + cmd: "addmultisigaddress", f: func() (Cmd, error) { return NewAddMultisigAddressCmd(testId, 1, []string{"foo", "bar"}, "address") @@ -47,7 +50,8 @@ var jsoncmdtests = []struct { }, // TODO(oga) Too many arguments to newaddmultisigaddress { - name: "basic addnode add", + name: "basic add", + cmd: "addnode", f: func() (Cmd, error) { return NewAddNodeCmd(testId, "address", "add") @@ -59,7 +63,8 @@ var jsoncmdtests = []struct { }, }, { - name: "basic addnode remove", + name: "basic remove", + cmd: "addnode", f: func() (Cmd, error) { return NewAddNodeCmd(testId, "address", "remove") @@ -71,7 +76,8 @@ var jsoncmdtests = []struct { }, }, { - name: "basic addnode onetry", + name: "basic onetry", + cmd: "addnode", f: func() (Cmd, error) { return NewAddNodeCmd(testId, "address", "onetry") @@ -84,7 +90,8 @@ var jsoncmdtests = []struct { }, // TODO(oga) try invalid subcmds { - name: "basic backupwallet", + name: "basic", + cmd: "backupwallet", f: func() (Cmd, error) { return NewBackupWalletCmd(testId, "destination") }, @@ -94,7 +101,8 @@ var jsoncmdtests = []struct { }, }, { - name: "basic createmultisig", + name: "basic", + cmd: "createmultisig", f: func() (Cmd, error) { return NewCreateMultisigCmd(testId, 1, []string{"key1", "key2", "key3"}) @@ -106,7 +114,8 @@ var jsoncmdtests = []struct { }, }, { - name: "basic createrawtransaction", + name: "basic", + cmd: "createrawtransaction", f: func() (Cmd, error) { return NewCreateRawTransactionCmd(testId, []TransactionInput{ @@ -127,7 +136,8 @@ var jsoncmdtests = []struct { }, }, { - name: "basic debuglevel", + name: "basic", + cmd: "debuglevel", f: func() (Cmd, error) { return NewDebugLevelCmd(testId, "debug") }, @@ -137,7 +147,8 @@ var jsoncmdtests = []struct { }, }, { - name: "basic decoderawtransaction", + name: "basic", + cmd: "decoderawtransaction", f: func() (Cmd, error) { return NewDecodeRawTransactionCmd(testId, "thisisahexidecimaltransaction") @@ -148,7 +159,8 @@ var jsoncmdtests = []struct { }, }, { - name: "basic decodescript", + name: "basic", + cmd: "decodescript", f: func() (Cmd, error) { return NewDecodeScriptCmd(testId, "a bunch of hex") @@ -159,7 +171,8 @@ var jsoncmdtests = []struct { }, }, { - name: "basic dumpprivkey", + name: "basic", + cmd: "dumpprivkey", f: func() (Cmd, error) { return NewDumpPrivKeyCmd(testId, "address") @@ -170,7 +183,8 @@ var jsoncmdtests = []struct { }, }, { - name: "basic dumpwallet", + name: "basic", + cmd: "dumpwallet", f: func() (Cmd, error) { return NewDumpWalletCmd(testId, "filename") @@ -181,7 +195,8 @@ var jsoncmdtests = []struct { }, }, { - name: "basic encryptwallet", + name: "basic", + cmd: "encryptwallet", f: func() (Cmd, error) { return NewEncryptWalletCmd(testId, "passphrase") @@ -192,7 +207,8 @@ var jsoncmdtests = []struct { }, }, { - name: "basic getaccount", + name: "basic", + cmd: "getaccount", f: func() (Cmd, error) { return NewGetAccountCmd(testId, "address") @@ -203,7 +219,8 @@ var jsoncmdtests = []struct { }, }, { - name: "basic getaccountaddress", + name: "basic", + cmd: "getaccountaddress", f: func() (Cmd, error) { return NewGetAccountAddressCmd(testId, "account") @@ -214,7 +231,8 @@ var jsoncmdtests = []struct { }, }, { - name: "basic getaddednodeinfo true", + name: "basic true", + cmd: "getaddednodeinfo", f: func() (Cmd, error) { return NewGetAddedNodeInfoCmd(testId, true) }, @@ -224,7 +242,8 @@ var jsoncmdtests = []struct { }, }, { - name: "basic getaddednodeinfo false", + name: "basic false", + cmd: "getaddednodeinfo", f: func() (Cmd, error) { return NewGetAddedNodeInfoCmd(testId, false) }, @@ -234,7 +253,8 @@ var jsoncmdtests = []struct { }, }, { - name: "basic getaddednodeinfo withnode", + name: "basic withnode", + cmd: "getaddednodeinfo", f: func() (Cmd, error) { return NewGetAddedNodeInfoCmd(testId, true, "thisisanode") @@ -246,7 +266,8 @@ var jsoncmdtests = []struct { }, }, { - name: "basic getaddressesbyaccount", + name: "basic", + cmd: "getaddressesbyaccount", f: func() (Cmd, error) { return NewGetAddressesByAccountCmd(testId, "account") @@ -257,7 +278,8 @@ var jsoncmdtests = []struct { }, }, { - name: "basic getbalance", + name: "basic", + cmd: "getbalance", f: func() (Cmd, error) { return NewGetBalanceCmd(testId) }, @@ -267,7 +289,8 @@ var jsoncmdtests = []struct { }, }, { - name: "basic getbalance + account", + name: "basic + account", + cmd: "getbalance", f: func() (Cmd, error) { return NewGetBalanceCmd(testId, "account") }, @@ -278,7 +301,8 @@ var jsoncmdtests = []struct { }, }, { - name: "basic getbalance + minconf", + name: "basic + minconf", + cmd: "getbalance", f: func() (Cmd, error) { return NewGetBalanceCmd(testId, "", 2) }, @@ -288,7 +312,8 @@ var jsoncmdtests = []struct { }, }, { - name: "basic getbalance + account + minconf", + name: "basic + account + minconf", + cmd: "getbalance", f: func() (Cmd, error) { return NewGetBalanceCmd(testId, "account", 2) }, @@ -299,7 +324,8 @@ var jsoncmdtests = []struct { }, }, { - name: "basic getbestblockhash", + name: "basic", + cmd: "getbestblockhash", f: func() (Cmd, error) { return NewGetBestBlockHashCmd(testId) }, @@ -308,7 +334,8 @@ var jsoncmdtests = []struct { }, }, { - name: "basic getblock", + name: "basic", + cmd: "getblock", f: func() (Cmd, error) { return NewGetBlockCmd(testId, "somehash") @@ -320,7 +347,8 @@ var jsoncmdtests = []struct { }, }, { - name: "basic getblockcount", + name: "basic", + cmd: "getblockcount", f: func() (Cmd, error) { return NewGetBlockCountCmd(testId) }, @@ -329,7 +357,8 @@ var jsoncmdtests = []struct { }, }, { - name: "basic getblockhash", + name: "basic", + cmd: "getblockhash", f: func() (Cmd, error) { return NewGetBlockHashCmd(testId, 1234) }, @@ -339,7 +368,8 @@ var jsoncmdtests = []struct { }, }, { - name: "basic getblocktemplate", + name: "basic", + cmd: "getblocktemplate", f: func() (Cmd, error) { return NewGetBlockTemplateCmd(testId) }, @@ -348,7 +378,8 @@ var jsoncmdtests = []struct { }, }, { - name: "basic getblocktemplate + request", + name: "basic + request", + cmd: "getblocktemplate", f: func() (Cmd, error) { return NewGetBlockTemplateCmd(testId, &TemplateRequest{Mode: "mode", @@ -367,7 +398,8 @@ var jsoncmdtests = []struct { }, }, { - name: "basic getblocktemplate + request no mode", + name: "basic + request no mode", + cmd: "getblocktemplate", f: func() (Cmd, error) { return NewGetBlockTemplateCmd(testId, &TemplateRequest{ @@ -385,7 +417,8 @@ var jsoncmdtests = []struct { }, }, { - name: "basic getconectioncount", + name: "basic", + cmd: "getconnectioncount", f: func() (Cmd, error) { return NewGetConnectionCountCmd(testId) }, @@ -394,7 +427,8 @@ var jsoncmdtests = []struct { }, }, { - name: "basic getdifficulty", + name: "basic", + cmd: "getdifficulty", f: func() (Cmd, error) { return NewGetDifficultyCmd(testId) }, @@ -403,7 +437,8 @@ var jsoncmdtests = []struct { }, }, { - name: "basic getgeneratecmd", + name: "basic", + cmd: "getgenerate", f: func() (Cmd, error) { return NewGetGenerateCmd(testId) }, @@ -412,7 +447,8 @@ var jsoncmdtests = []struct { }, }, { - name: "basic gethashespersec", + name: "basic", + cmd: "gethashespersec", f: func() (Cmd, error) { return NewGetHashesPerSecCmd(testId) }, @@ -421,7 +457,8 @@ var jsoncmdtests = []struct { }, }, { - name: "basic getinfo", + name: "basic", + cmd: "getinfo", f: func() (Cmd, error) { return NewGetInfoCmd(testId) }, @@ -430,16 +467,8 @@ var jsoncmdtests = []struct { }, }, { - name: "basic getinfo", - f: func() (Cmd, error) { - return NewGetInfoCmd(testId) - }, - result: &GetInfoCmd{ - id: testId, - }, - }, - { - name: "basic getmininginfo", + name: "basic", + cmd: "getmininginfo", f: func() (Cmd, error) { return NewGetMiningInfoCmd(testId) }, @@ -448,7 +477,8 @@ var jsoncmdtests = []struct { }, }, { - name: "basic getnettotals", + name: "basic", + cmd: "getnettotals", f: func() (Cmd, error) { return NewGetNetTotalsCmd(testId) }, @@ -457,7 +487,8 @@ var jsoncmdtests = []struct { }, }, { - name: "basic getnetworkhashps", + name: "basic", + cmd: "getnetworkhashps", f: func() (Cmd, error) { return NewGetNetworkHashPSCmd(testId) }, @@ -468,7 +499,8 @@ var jsoncmdtests = []struct { }, }, { - name: "basic getnetworkhashps + blocks", + name: "basic + blocks", + cmd: "getnetworkhashps", f: func() (Cmd, error) { return NewGetNetworkHashPSCmd(testId, 5000) }, @@ -479,7 +511,8 @@ var jsoncmdtests = []struct { }, }, { - name: "basic getnetworkhashps + blocks + height", + name: "basic + blocks + height", + cmd: "getnetworkhashps", f: func() (Cmd, error) { return NewGetNetworkHashPSCmd(testId, 5000, 1000) }, @@ -490,7 +523,8 @@ var jsoncmdtests = []struct { }, }, { - name: "basic getnewaddress", + name: "basic", + cmd: "getnewaddress", f: func() (Cmd, error) { return NewGetNewAddressCmd(testId, "account") }, @@ -500,7 +534,8 @@ var jsoncmdtests = []struct { }, }, { - name: "basic getpeerinfo", + name: "basic", + cmd: "getpeerinfo", f: func() (Cmd, error) { return NewGetPeerInfoCmd(testId) }, @@ -509,7 +544,8 @@ var jsoncmdtests = []struct { }, }, { - name: "basic getrawmchangeaddress", + name: "basic", + cmd: "getrawchangeaddress", f: func() (Cmd, error) { return NewGetRawChangeAddressCmd(testId) }, @@ -518,7 +554,8 @@ var jsoncmdtests = []struct { }, }, { - name: "basic getrawmchangeaddress + account", + name: "basic + account", + cmd: "getrawchangeaddress", f: func() (Cmd, error) { return NewGetRawChangeAddressCmd(testId, "accountname") @@ -529,7 +566,8 @@ var jsoncmdtests = []struct { }, }, { - name: "basic getrawmempool", + name: "basic", + cmd: "getrawmempool", f: func() (Cmd, error) { return NewGetRawMempoolCmd(testId) }, @@ -538,7 +576,8 @@ var jsoncmdtests = []struct { }, }, { - name: "basic getrawmempool noverbose", + name: "basic noverbose", + cmd: "getrawmempool", f: func() (Cmd, error) { return NewGetRawMempoolCmd(testId, false) }, @@ -547,7 +586,8 @@ var jsoncmdtests = []struct { }, }, { - name: "basic getrawmempool verbose", + name: "basic verbose", + cmd: "getrawmempool", f: func() (Cmd, error) { return NewGetRawMempoolCmd(testId, true) }, @@ -557,7 +597,8 @@ var jsoncmdtests = []struct { }, }, { - name: "basic getrawtransaction", + name: "basic", + cmd: "getrawtransaction", f: func() (Cmd, error) { return NewGetRawTransactionCmd(testId, "sometxid") @@ -568,7 +609,8 @@ var jsoncmdtests = []struct { }, }, { - name: "basic getrawtransaction + verbose", + name: "basic + verbose", + cmd: "getrawtransaction", f: func() (Cmd, error) { return NewGetRawTransactionCmd(testId, "sometxid", @@ -581,7 +623,8 @@ var jsoncmdtests = []struct { }, }, { - name: "basic getreceivedbyaccount", + name: "basic", + cmd: "getreceivedbyaccount", f: func() (Cmd, error) { return NewGetReceivedByAccountCmd(testId, "abtcaccount", @@ -594,7 +637,8 @@ var jsoncmdtests = []struct { }, }, { - name: "basic getreceivedbyaddress", + name: "basic", + cmd: "getreceivedbyaddress", f: func() (Cmd, error) { return NewGetReceivedByAddressCmd(testId, "abtcaddress", @@ -607,7 +651,8 @@ var jsoncmdtests = []struct { }, }, { - name: "basic gettransaction", + name: "basic", + cmd: "gettransaction", f: func() (Cmd, error) { return NewGetTransactionCmd(testId, "atxid") @@ -618,7 +663,8 @@ var jsoncmdtests = []struct { }, }, { - name: "basic gettxout", + name: "basic", + cmd: "gettxout", f: func() (Cmd, error) { return NewGetTxOutCmd(testId, "sometx", @@ -631,7 +677,8 @@ var jsoncmdtests = []struct { }, }, { - name: "basic gettxout + optional", + name: "basic + optional", + cmd: "gettxout", f: func() (Cmd, error) { return NewGetTxOutCmd(testId, "sometx", @@ -646,7 +693,8 @@ var jsoncmdtests = []struct { }, }, { - name: "basic gettxsetoutinfo", + name: "basic", + cmd: "gettxoutsetinfo", f: func() (Cmd, error) { return NewGetTxOutSetInfoCmd(testId) }, @@ -655,7 +703,8 @@ var jsoncmdtests = []struct { }, }, { - name: "basic getwork", + name: "basic", + cmd: "getwork", f: func() (Cmd, error) { return NewGetWorkCmd(testId, WorkRequest{ @@ -674,7 +723,8 @@ var jsoncmdtests = []struct { }, }, { - name: "basic help", + name: "basic", + cmd: "help", f: func() (Cmd, error) { return NewHelpCmd(testId) }, @@ -683,7 +733,8 @@ var jsoncmdtests = []struct { }, }, { - name: "basic help + optional cmd", + name: "basic + optional cmd", + cmd: "help", f: func() (Cmd, error) { return NewHelpCmd(testId, "getinfo") @@ -694,7 +745,8 @@ var jsoncmdtests = []struct { }, }, { - name: "basic importprivkey", + name: "basic", + cmd: "importprivkey", f: func() (Cmd, error) { return NewImportPrivKeyCmd(testId, "somereallongprivatekey") @@ -706,7 +758,8 @@ var jsoncmdtests = []struct { }, }, { - name: "basic importprivkey + 1 opt", + name: "basic + 1 opt", + cmd: "importprivkey", f: func() (Cmd, error) { return NewImportPrivKeyCmd(testId, "somereallongprivatekey", @@ -720,7 +773,8 @@ var jsoncmdtests = []struct { }, }, { - name: "basic importprivkey + 2 opts", + name: "basic + 2 opts", + cmd: "importprivkey", f: func() (Cmd, error) { return NewImportPrivKeyCmd(testId, "somereallongprivatekey", @@ -735,7 +789,8 @@ var jsoncmdtests = []struct { }, }, { - name: "basic importwallet", + name: "basic", + cmd: "importwallet", f: func() (Cmd, error) { return NewImportWalletCmd(testId, "walletfilename.dat") @@ -746,7 +801,8 @@ var jsoncmdtests = []struct { }, }, { - name: "basic keypoolrefill", + name: "basic", + cmd: "keypoolrefill", f: func() (Cmd, error) { return NewKeyPoolRefillCmd(testId) }, @@ -755,7 +811,8 @@ var jsoncmdtests = []struct { }, }, { - name: "basic listaccounts", + name: "basic", + cmd: "listaccounts", f: func() (Cmd, error) { return NewListAccountsCmd(testId, 1) }, @@ -765,7 +822,8 @@ var jsoncmdtests = []struct { }, }, { - name: "basic listaddressgroupings", + name: "basic", + cmd: "listaddressgroupings", f: func() (Cmd, error) { return NewListAddressGroupingsCmd(testId) }, @@ -774,7 +832,8 @@ var jsoncmdtests = []struct { }, }, { - name: "basic listlockunspent", + name: "basic", + cmd: "listlockunspent", f: func() (Cmd, error) { return NewListLockUnspentCmd(testId) }, @@ -783,7 +842,8 @@ var jsoncmdtests = []struct { }, }, { - name: "basic listreceivedbyaccount", + name: "basic", + cmd: "listreceivedbyaccount", f: func() (Cmd, error) { return NewListReceivedByAccountCmd(testId) }, @@ -793,7 +853,8 @@ var jsoncmdtests = []struct { }, }, { - name: "basic listtransactions", + name: "basic", + cmd: "listtransactions", f: func() (Cmd, error) { return NewListTransactionsCmd(testId) }, @@ -805,7 +866,8 @@ var jsoncmdtests = []struct { }, }, { - name: "listtransactions 1 optarg", + name: "+ 1 optarg", + cmd: "listtransactions", f: func() (Cmd, error) { return NewListTransactionsCmd(testId, "abcde") }, @@ -817,7 +879,8 @@ var jsoncmdtests = []struct { }, }, { - name: "listtransactions 2 optargs", + name: "+ 2 optargs", + cmd: "listtransactions", f: func() (Cmd, error) { return NewListTransactionsCmd(testId, "abcde", 123) }, @@ -829,7 +892,8 @@ var jsoncmdtests = []struct { }, }, { - name: "listtransactions 3 optargs", + name: "+ 3 optargs", + cmd: "listtransactions", f: func() (Cmd, error) { return NewListTransactionsCmd(testId, "abcde", 123, 456) }, @@ -841,7 +905,8 @@ var jsoncmdtests = []struct { }, }, { - name: "basic listunspent", + name: "basic", + cmd: "listunspent", f: func() (Cmd, error) { return NewListUnspentCmd(testId) }, @@ -852,7 +917,8 @@ var jsoncmdtests = []struct { }, }, { - name: "basic listunspent + opts", + name: "basic + opts", + cmd: "listunspent", f: func() (Cmd, error) { return NewListUnspentCmd(testId, 0, 6) }, @@ -863,7 +929,8 @@ var jsoncmdtests = []struct { }, }, { - name: "basic lockunspent", + name: "basic", + cmd: "lockunspent", f: func() (Cmd, error) { return NewLockUnspentCmd(testId, true) }, @@ -873,7 +940,8 @@ var jsoncmdtests = []struct { }, }, { - name: "basic move", + name: "basic", + cmd: "move", f: func() (Cmd, error) { return NewMoveCmd(testId, "account1", @@ -890,7 +958,8 @@ var jsoncmdtests = []struct { }, }, { - name: "basic move + optionals", + name: "basic + optionals", + cmd: "move", f: func() (Cmd, error) { return NewMoveCmd(testId, "account1", @@ -909,7 +978,8 @@ var jsoncmdtests = []struct { }, }, { - name: "basic ping", + name: "basic", + cmd: "ping", f: func() (Cmd, error) { return NewPingCmd(testId) }, @@ -918,7 +988,8 @@ var jsoncmdtests = []struct { }, }, { - name: "basic sendfrom", + name: "basic", + cmd: "sendfrom", f: func() (Cmd, error) { return NewSendFromCmd(testId, "account", @@ -935,7 +1006,8 @@ var jsoncmdtests = []struct { }, }, { - name: "basic sendfrom + options", + name: "basic + options", + cmd: "sendfrom", f: func() (Cmd, error) { return NewSendFromCmd(testId, "account", @@ -956,7 +1028,8 @@ var jsoncmdtests = []struct { }, }, { - name: "basic sendmany", + name: "basic", + cmd: "sendmany", f: func() (Cmd, error) { pairs := map[string]int64{ "address A": 1000, @@ -979,7 +1052,8 @@ var jsoncmdtests = []struct { }, }, { - name: "sendmany + options", + name: "+ options", + cmd: "sendmany", f: func() (Cmd, error) { pairs := map[string]int64{ "address A": 1000, @@ -1005,7 +1079,8 @@ var jsoncmdtests = []struct { }, }, { - name: "basic sendrawtransaction", + name: "basic", + cmd: "sendrawtransaction", f: func() (Cmd, error) { return NewSendRawTransactionCmd(testId, "hexstringofatx") @@ -1016,7 +1091,8 @@ var jsoncmdtests = []struct { }, }, { - name: "basic sendtoaddress", + name: "basic", + cmd: "sendtoaddress", f: func() (Cmd, error) { return NewSendToAddressCmd(testId, "somebtcaddress", @@ -1029,7 +1105,8 @@ var jsoncmdtests = []struct { }, }, { - name: "basic sendtoaddress plus optional", + name: "basic + optional", + cmd: "sendtoaddress", f: func() (Cmd, error) { return NewSendToAddressCmd(testId, "somebtcaddress", @@ -1046,7 +1123,8 @@ var jsoncmdtests = []struct { }, }, { - name: "basic setaccount", + name: "basic", + cmd: "setaccount", f: func() (Cmd, error) { return NewSetAccountCmd(testId, "somebtcaddress", @@ -1059,7 +1137,8 @@ var jsoncmdtests = []struct { }, }, { - name: "basic setgenerate", + name: "basic", + cmd: "setgenerate", f: func() (Cmd, error) { return NewSetGenerateCmd(testId, true) }, @@ -1069,7 +1148,8 @@ var jsoncmdtests = []struct { }, }, { - name: "basic setgenerate + optional", + name: "basic + optional", + cmd: "setgenerate", f: func() (Cmd, error) { return NewSetGenerateCmd(testId, true, 10) }, @@ -1080,7 +1160,8 @@ var jsoncmdtests = []struct { }, }, { - name: "basic settxfee", + name: "basic", + cmd: "settxfee", f: func() (Cmd, error) { return NewSetTxFeeCmd(testId, 10) }, @@ -1090,7 +1171,8 @@ var jsoncmdtests = []struct { }, }, { - name: "basic signmessage", + name: "basic", + cmd: "signmessage", f: func() (Cmd, error) { return NewSignMessageCmd(testId, "btcaddress", @@ -1103,7 +1185,8 @@ var jsoncmdtests = []struct { }, }, { - name: "basic signrawtransaction", + name: "basic", + cmd: "signrawtransaction", f: func() (Cmd, error) { return NewSignRawTransactionCmd(testId, "sometxstring") @@ -1114,7 +1197,8 @@ var jsoncmdtests = []struct { }, }, /* { - name: "basic signrawtransaction with optional", + name: "basic + optional", + cmd: "signrawtransaction", f: func() (Cmd, error) { return NewSignRawTransactionCmd(testId, "sometxstring", @@ -1145,7 +1229,8 @@ var jsoncmdtests = []struct { }, },*/ { - name: "basic stop", + name: "basic", + cmd: "stop", f: func() (Cmd, error) { return NewStopCmd(testId) }, @@ -1154,7 +1239,8 @@ var jsoncmdtests = []struct { }, }, { - name: "basic submitblock", + name: "basic", + cmd: "submitblock", f: func() (Cmd, error) { return NewSubmitBlockCmd(testId, "lotsofhex") @@ -1165,7 +1251,8 @@ var jsoncmdtests = []struct { }, }, { - name: "submitblock with optional object", + name: "+ optional object", + cmd: "submitblock", f: func() (Cmd, error) { return NewSubmitBlockCmd(testId, "lotsofhex", @@ -1178,7 +1265,8 @@ var jsoncmdtests = []struct { }, }, { - name: "basic validateaddress", + name: "basic", + cmd: "validateaddress", f: func() (Cmd, error) { return NewValidateAddressCmd(testId, "somebtcaddress") @@ -1189,7 +1277,8 @@ var jsoncmdtests = []struct { }, }, { - name: "basic verifychain", + name: "basic", + cmd: "verifychain", f: func() (Cmd, error) { return NewVerifyChainCmd(testId) }, @@ -1200,7 +1289,8 @@ var jsoncmdtests = []struct { }, }, { - name: "basic verifychain + optional", + name: "basic + optional", + cmd: "verifychain", f: func() (Cmd, error) { return NewVerifyChainCmd(testId, 4, 1) }, @@ -1211,7 +1301,8 @@ var jsoncmdtests = []struct { }, }, { - name: "basic verifymessage", + name: "basic", + cmd: "verifymessage", f: func() (Cmd, error) { return NewVerifyMessageCmd(testId, "someaddress", @@ -1226,7 +1317,8 @@ var jsoncmdtests = []struct { }, }, { - name: "basic walletlock", + name: "basic", + cmd: "walletlock", f: func() (Cmd, error) { return NewWalletLockCmd(testId) }, @@ -1235,7 +1327,8 @@ var jsoncmdtests = []struct { }, }, { - name: "basic walletpassphrase", + name: "basic", + cmd: "walletpassphrase", f: func() (Cmd, error) { return NewWalletPassphraseCmd(testId, "phrase1", @@ -1248,7 +1341,8 @@ var jsoncmdtests = []struct { }, }, { - name: "basic walletpassphrasechange", + name: "basic", + cmd: "walletpassphrasechange", f: func() (Cmd, error) { return NewWalletPassphraseChangeCmd(testId, "phrase1", "phrase2") @@ -1264,39 +1358,45 @@ var jsoncmdtests = []struct { func TestCmds(t *testing.T) { for _, test := range jsoncmdtests { c, err := test.f() + name := test.cmd + " " + test.name if err != nil { t.Errorf("%s: failed to run func: %v", - test.name, err) + name, err) continue } msg, err := json.Marshal(c) if err != nil { t.Errorf("%s: failed to marshal cmd: %v", - test.name, err) + name, err) continue } c2, err := ParseMarshaledCmd(msg) if err != nil { t.Errorf("%s: failed to ummarshal cmd: %v", - test.name, err) + name, err) continue } id, ok := (c.Id()).(float64) if !ok || id != testId { - t.Errorf("%s: id not returned properly", test.name) + t.Errorf("%s: id not returned properly", name) + } + + if c.Method() != test.cmd { + t.Errorf("%s: Method name not returned properly: "+ + "%s vs. %s", name, c.Method(), test.cmd) } if !reflect.DeepEqual(test.result, c2) { t.Errorf("%s: unmarshal not as expected. "+ - "got %v wanted %v", test.name, spew.Sdump(c2), + "got %v wanted %v", name, spew.Sdump(c2), spew.Sdump(test.result)) } if !reflect.DeepEqual(c, c2) { t.Errorf("%s: unmarshal not as we started with. "+ - "got %v wanted %v", test.name, spew.Sdump(c2), + "got %v wanted %v", name, spew.Sdump(c2), spew.Sdump(c)) } diff --git a/test_coverage.txt b/test_coverage.txt index 02a5122c..5e5cad11 100644 --- a/test_coverage.txt +++ b/test_coverage.txt @@ -5,231 +5,300 @@ github.com/conformal/btcjson/jsoncmd.go SendManyCmd.MarshalJSON 100.00% (9/9) 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 MoveCmd.MarshalJSON 100.00% (6/6) +github.com/conformal/btcjson/jsoncmd.go GetNetworkHashPSCmd.MarshalJSON 100.00% (6/6) +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 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/jsoncmd.go MoveCmd.MarshalJSON 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/jsonapi.go jsonWithArgs 100.00% (5/5) -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 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 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/jsoncmd.go GetRawTransactionCmd.MarshalJSON 100.00% (4/4) +github.com/conformal/btcjson/jsoncmd.go CreateRawTransactionCmd.MarshalJSON 100.00% (4/4) +github.com/conformal/btcjson/jsoncmd.go GetAddedNodeInfoCmd.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 AddMultisigAddressCmd.MarshalJSON 100.00% (4/4) +github.com/conformal/btcjson/jsoncmd.go HelpCmd.MarshalJSON 100.00% (4/4) +github.com/conformal/btcjson/jsoncmd.go SubmitBlockCmd.MarshalJSON 100.00% (4/4) github.com/conformal/btcjson/jsonapi.go IsValidIdType 100.00% (3/3) -github.com/conformal/btcjson/jsoncmd.go GetTxOutSetInfoCmd.MarshalJSON 100.00% (2/2) -github.com/conformal/btcjson/jsoncmd.go SignMessageCmd.MarshalJSON 100.00% (2/2) +github.com/conformal/btcjson/jsoncmd.go SetAccountCmd.MarshalJSON 100.00% (2/2) +github.com/conformal/btcjson/jsoncmd.go PingCmd.MarshalJSON 100.00% (2/2) github.com/conformal/btcjson/jsoncmd.go WalletLockCmd.MarshalJSON 100.00% (2/2) +github.com/conformal/btcjson/jsoncmd.go VerifyMessageCmd.MarshalJSON 100.00% (2/2) +github.com/conformal/btcjson/jsoncmd.go ValidateAddressCmd.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 SignMessageCmd.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 SendRawTransactionCmd.MarshalJSON 100.00% (2/2) -github.com/conformal/btcjson/jsoncmd.go KeyPoolRefillCmd.MarshalJSON 100.00% (2/2) +github.com/conformal/btcjson/jsoncmd.go GetTxOutSetInfoCmd.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 SendRawTransactionCmd.MarshalJSON 100.00% (2/2) +github.com/conformal/btcjson/jsoncmd.go ListLockUnspentCmd.MarshalJSON 100.00% (2/2) +github.com/conformal/btcjson/jsonapi.go CreateMessage 100.00% (2/2) +github.com/conformal/btcjson/jsoncmd.go ListAddressGroupingsCmd.MarshalJSON 100.00% (2/2) +github.com/conformal/btcjson/jsoncmd.go WalletPassphraseChangeCmd.MarshalJSON 100.00% (2/2) +github.com/conformal/btcjson/jsoncmd.go WalletPassphraseCmd.MarshalJSON 100.00% (2/2) +github.com/conformal/btcjson/jsoncmd.go ImportWalletCmd.MarshalJSON 100.00% (2/2) +github.com/conformal/btcjson/jsoncmd.go GetAccountCmd.Method 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 GetAccountAddressCmd.Method 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 GetAddedNodeInfoCmd.Method 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 GetBalanceCmd.Method 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.Method 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 GetBlockHashCmd.Id 100.00% (1/1) -github.com/conformal/btcjson/jsoncmd.go GetBlockHashCmd.MarshalJSON 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/jsoncmd.go MoveCmd.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 AddMultisigAddressCmd.Method 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.Method 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.Method 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 CreateMultisigCmd.Method 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 CreateRawTransactionCmd.Method 100.00% (1/1) +github.com/conformal/btcjson/jsoncmd.go GetAddressesByAccountCmd.Method 100.00% (1/1) github.com/conformal/btcjson/jsoncmd.go NewDebugLevelCmd 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 NewDecodeRawTransactionCmd 100.00% (1/1) github.com/conformal/btcjson/jsoncmd.go DecodeRawTransactionCmd.Id 100.00% (1/1) +github.com/conformal/btcjson/jsoncmd.go DecodeRawTransactionCmd.Method 100.00% (1/1) github.com/conformal/btcjson/jsoncmd.go DecodeRawTransactionCmd.MarshalJSON 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 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.Method 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 DumpPrivKeyCmd.Id 100.00% (1/1) +github.com/conformal/btcjson/jsoncmd.go DumpPrivKeyCmd.Method 100.00% (1/1) github.com/conformal/btcjson/jsoncmd.go DumpPrivKeyCmd.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/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.Method 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.Id 100.00% (1/1) +github.com/conformal/btcjson/jsoncmd.go EncryptWalletCmd.Method 100.00% (1/1) +github.com/conformal/btcjson/jsoncmd.go EncryptWalletCmd.MarshalJSON 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 GetBlockHashCmd.Method 100.00% (1/1) +github.com/conformal/btcjson/jsoncmd.go GetBlockHashCmd.MarshalJSON 100.00% (1/1) +github.com/conformal/btcjson/jsoncmd.go GetBlockTemplateCmd.Id 100.00% (1/1) +github.com/conformal/btcjson/jsoncmd.go GetBlockTemplateCmd.Method 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.Method 100.00% (1/1) +github.com/conformal/btcjson/jsoncmd.go GetConnectionCountCmd.MarshalJSON 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 GetDifficultyCmd.Method 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 GetGenerateCmd.Id 100.00% (1/1) +github.com/conformal/btcjson/jsoncmd.go GetGenerateCmd.Method 100.00% (1/1) +github.com/conformal/btcjson/jsoncmd.go GetGenerateCmd.MarshalJSON 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.Method 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.Method 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.Method 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.Method 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 GetNetworkHashPSCmd.Method 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 GetNewAddressCmd.Method 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.Method 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 GetRawChangeAddressCmd.Method 100.00% (1/1) github.com/conformal/btcjson/jsoncmd.go GetRawMempoolCmd.Id 100.00% (1/1) +github.com/conformal/btcjson/jsoncmd.go GetRawMempoolCmd.Method 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 GetRawTransactionCmd.Method 100.00% (1/1) +github.com/conformal/btcjson/jsoncmd.go KeyPoolRefillCmd.Method 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 GetReceivedByAccountCmd.Method 100.00% (1/1) +github.com/conformal/btcjson/jsoncmd.go GetReceivedByAddressCmd.Id 100.00% (1/1) +github.com/conformal/btcjson/jsoncmd.go GetReceivedByAddressCmd.Method 100.00% (1/1) github.com/conformal/btcjson/jsoncmd.go NewGetTransactionCmd 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 GetTransactionCmd.Method 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 GetTxOutCmd.Method 100.00% (1/1) github.com/conformal/btcjson/jsoncmd.go NewGetTxOutSetInfoCmd 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 GetTxOutSetInfoCmd.Method 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 GetWorkCmd.Method 100.00% (1/1) github.com/conformal/btcjson/jsoncmd.go HelpCmd.Id 100.00% (1/1) +github.com/conformal/btcjson/jsoncmd.go HelpCmd.Method 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 ImportPrivKeyCmd.Method 100.00% (1/1) +github.com/conformal/btcjson/jsoncmd.go NewImportWalletCmd 100.00% (1/1) +github.com/conformal/btcjson/jsoncmd.go ImportWalletCmd.Id 100.00% (1/1) +github.com/conformal/btcjson/jsoncmd.go ImportWalletCmd.Method 100.00% (1/1) +github.com/conformal/btcjson/jsoncmd.go NewKeyPoolRefillCmd 100.00% (1/1) +github.com/conformal/btcjson/jsoncmd.go KeyPoolRefillCmd.Id 100.00% (1/1) +github.com/conformal/btcjson/jsoncmd.go ListAccountsCmd.Id 100.00% (1/1) +github.com/conformal/btcjson/jsoncmd.go ListAccountsCmd.Method 100.00% (1/1) +github.com/conformal/btcjson/jsoncmd.go NewListAddressGroupingsCmd 100.00% (1/1) +github.com/conformal/btcjson/jsoncmd.go ListAddressGroupingsCmd.Id 100.00% (1/1) +github.com/conformal/btcjson/jsoncmd.go ListAddressGroupingsCmd.Method 100.00% (1/1) +github.com/conformal/btcjson/jsoncmd.go NewListLockUnspentCmd 100.00% (1/1) +github.com/conformal/btcjson/jsoncmd.go ListLockUnspentCmd.Id 100.00% (1/1) +github.com/conformal/btcjson/jsoncmd.go ListLockUnspentCmd.Method 100.00% (1/1) +github.com/conformal/btcjson/jsoncmd.go ListReceivedByAccountCmd.Id 100.00% (1/1) +github.com/conformal/btcjson/jsoncmd.go ListReceivedByAccountCmd.Method 100.00% (1/1) +github.com/conformal/btcjson/jsoncmd.go ListTransactionsCmd.Id 100.00% (1/1) +github.com/conformal/btcjson/jsoncmd.go ListTransactionsCmd.Method 100.00% (1/1) +github.com/conformal/btcjson/jsoncmd.go ListUnspentCmd.Id 100.00% (1/1) +github.com/conformal/btcjson/jsoncmd.go ListUnspentCmd.Method 100.00% (1/1) +github.com/conformal/btcjson/jsoncmd.go LockUnspentCmd.Id 100.00% (1/1) +github.com/conformal/btcjson/jsoncmd.go LockUnspentCmd.Method 100.00% (1/1) +github.com/conformal/btcjson/jsoncmd.go MoveCmd.Method 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/jsoncmd.go PingCmd.Id 100.00% (1/1) +github.com/conformal/btcjson/jsoncmd.go PingCmd.Method 100.00% (1/1) +github.com/conformal/btcjson/jsoncmd.go SendFromCmd.Id 100.00% (1/1) +github.com/conformal/btcjson/jsoncmd.go SendFromCmd.Method 100.00% (1/1) +github.com/conformal/btcjson/jsoncmd.go SendManyCmd.Id 100.00% (1/1) +github.com/conformal/btcjson/jsoncmd.go SendManyCmd.Method 100.00% (1/1) +github.com/conformal/btcjson/jsoncmd.go NewSendRawTransactionCmd 100.00% (1/1) +github.com/conformal/btcjson/jsoncmd.go SendRawTransactionCmd.Id 100.00% (1/1) +github.com/conformal/btcjson/jsoncmd.go SendRawTransactionCmd.Method 100.00% (1/1) +github.com/conformal/btcjson/jsoncmd.go SendToAddressCmd.Id 100.00% (1/1) +github.com/conformal/btcjson/jsoncmd.go SendToAddressCmd.Method 100.00% (1/1) +github.com/conformal/btcjson/jsoncmd.go NewSetAccountCmd 100.00% (1/1) +github.com/conformal/btcjson/jsoncmd.go SetAccountCmd.Id 100.00% (1/1) +github.com/conformal/btcjson/jsoncmd.go SetAccountCmd.Method 100.00% (1/1) +github.com/conformal/btcjson/jsoncmd.go SetGenerateCmd.Id 100.00% (1/1) +github.com/conformal/btcjson/jsoncmd.go SetGenerateCmd.Method 100.00% (1/1) +github.com/conformal/btcjson/jsoncmd.go NewSetTxFeeCmd 100.00% (1/1) +github.com/conformal/btcjson/jsoncmd.go SetTxFeeCmd.Id 100.00% (1/1) +github.com/conformal/btcjson/jsoncmd.go SetTxFeeCmd.Method 100.00% (1/1) +github.com/conformal/btcjson/jsoncmd.go NewSignMessageCmd 100.00% (1/1) +github.com/conformal/btcjson/jsoncmd.go SignMessageCmd.Id 100.00% (1/1) +github.com/conformal/btcjson/jsoncmd.go SignMessageCmd.Method 100.00% (1/1) +github.com/conformal/btcjson/jsoncmd.go SignRawTransactionCmd.Id 100.00% (1/1) +github.com/conformal/btcjson/jsoncmd.go SignRawTransactionCmd.Method 100.00% (1/1) +github.com/conformal/btcjson/jsoncmd.go NewStopCmd 100.00% (1/1) +github.com/conformal/btcjson/jsoncmd.go StopCmd.Id 100.00% (1/1) +github.com/conformal/btcjson/jsoncmd.go StopCmd.Method 100.00% (1/1) +github.com/conformal/btcjson/jsoncmd.go SubmitBlockCmd.Id 100.00% (1/1) +github.com/conformal/btcjson/jsoncmd.go SubmitBlockCmd.Method 100.00% (1/1) +github.com/conformal/btcjson/jsoncmd.go NewValidateAddressCmd 100.00% (1/1) +github.com/conformal/btcjson/jsoncmd.go ValidateAddressCmd.Id 100.00% (1/1) +github.com/conformal/btcjson/jsoncmd.go ValidateAddressCmd.Method 100.00% (1/1) +github.com/conformal/btcjson/jsoncmd.go VerifyChainCmd.Id 100.00% (1/1) +github.com/conformal/btcjson/jsoncmd.go VerifyChainCmd.Method 100.00% (1/1) +github.com/conformal/btcjson/jsoncmd.go NewVerifyMessageCmd 100.00% (1/1) +github.com/conformal/btcjson/jsoncmd.go VerifyMessageCmd.Id 100.00% (1/1) +github.com/conformal/btcjson/jsoncmd.go VerifyMessageCmd.Method 100.00% (1/1) +github.com/conformal/btcjson/jsoncmd.go NewWalletLockCmd 100.00% (1/1) +github.com/conformal/btcjson/jsoncmd.go WalletLockCmd.Id 100.00% (1/1) +github.com/conformal/btcjson/jsoncmd.go WalletLockCmd.Method 100.00% (1/1) +github.com/conformal/btcjson/jsoncmd.go NewWalletPassphraseCmd 100.00% (1/1) +github.com/conformal/btcjson/jsoncmd.go WalletPassphraseCmd.Id 100.00% (1/1) +github.com/conformal/btcjson/jsoncmd.go WalletPassphraseCmd.Method 100.00% (1/1) +github.com/conformal/btcjson/jsoncmd.go NewWalletPassphraseChangeCmd 100.00% (1/1) +github.com/conformal/btcjson/jsoncmd.go WalletPassphraseChangeCmd.Id 100.00% (1/1) +github.com/conformal/btcjson/jsoncmd.go WalletPassphraseChangeCmd.Method 100.00% (1/1) +github.com/conformal/btcjson/jsoncmd.go GetBlockCmd.Id 100.00% (1/1) +github.com/conformal/btcjson/jsoncmd.go GetBlockCmd.Method 100.00% (1/1) +github.com/conformal/btcjson/jsoncmd.go NewGetBlockCountCmd 100.00% (1/1) +github.com/conformal/btcjson/jsoncmd.go GetBlockCountCmd.Id 100.00% (1/1) +github.com/conformal/btcjson/jsoncmd.go GetBlockCountCmd.Method 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 GetBlockHashCmd.Id 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 NewGetNetworkHashPSCmd 88.89% (8/9) +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/jsonapi.go ReadResultCmd 88.00% (66/75) -github.com/conformal/btcjson/jsoncmd.go NewGetNewAddressCmd 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 GetReceivedByAddressCmd.MarshalJSON 83.33% (5/6) +github.com/conformal/btcjson/jsoncmd.go NewSetGenerateCmd 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 NewGetBlockTemplateCmd 83.33% (5/6) +github.com/conformal/btcjson/jsoncmd.go NewGetRawMempoolCmd 83.33% (5/6) +github.com/conformal/btcjson/jsoncmd.go NewGetRawChangeAddressCmd 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 NewHelpCmd 83.33% (5/6) +github.com/conformal/btcjson/jsoncmd.go NewSubmitBlockCmd 83.33% (5/6) +github.com/conformal/btcjson/jsoncmd.go NewGetNewAddressCmd 83.33% (5/6) +github.com/conformal/btcjson/jsoncmd.go NewListAccountsCmd 83.33% (5/6) github.com/conformal/btcjson/jsoncmd.go NewSendFromCmd 80.95% (17/21) -github.com/conformal/btcjson/jsoncmd.go NewGetReceivedByAddressCmd 80.00% (12/15) +github.com/conformal/btcjson/jsoncmd.go NewListTransactionsCmd 80.95% (17/21) 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 NewMoveCmd 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 NewGetReceivedByAddressCmd 80.00% (12/15) +github.com/conformal/btcjson/jsoncmd.go NewGetReceivedByAccountCmd 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 SubmitBlockCmd.UnmarshalJSON 76.92% (20/26) 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 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 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 GetRawMempoolCmd.UnmarshalJSON 75.00% (12/16) +github.com/conformal/btcjson/jsoncmd.go GetNewAddressCmd.UnmarshalJSON 75.00% (12/16) github.com/conformal/btcjson/jsoncmd.go HelpCmd.UnmarshalJSON 75.00% (12/16) 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 GetRawTransactionCmd.UnmarshalJSON 73.68% (14/19) 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 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) @@ -237,45 +306,45 @@ github.com/conformal/btcjson/jsoncmd.go MoveCmd.UnmarshalJSON 72.73% (24/33) github.com/conformal/btcjson/jsoncmd.go ConvertCreateRawTxParams 72.22% (26/36) github.com/conformal/btcjson/jsoncmd.go GetAddedNodeInfoCmd.UnmarshalJSON 72.22% (13/18) 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 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 GetTxOutSetInfoCmd.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 ListAddressGroupingsCmd.UnmarshalJSON 70.00% (7/10) -github.com/conformal/btcjson/jsoncmd.go GetPeerInfoCmd.UnmarshalJSON 70.00% (7/10) +github.com/conformal/btcjson/jsoncmd.go WalletLockCmd.UnmarshalJSON 70.00% (7/10) +github.com/conformal/btcjson/jsoncmd.go StopCmd.UnmarshalJSON 70.00% (7/10) +github.com/conformal/btcjson/jsoncmd.go GetGenerateCmd.UnmarshalJSON 70.00% (7/10) +github.com/conformal/btcjson/jsoncmd.go GetDifficultyCmd.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 GetPeerInfoCmd.UnmarshalJSON 70.00% (7/10) +github.com/conformal/btcjson/jsoncmd.go ListLockUnspentCmd.UnmarshalJSON 70.00% (7/10) +github.com/conformal/btcjson/jsoncmd.go GetBestBlockHashCmd.UnmarshalJSON 70.00% (7/10) +github.com/conformal/btcjson/jsoncmd.go ListAddressGroupingsCmd.UnmarshalJSON 70.00% (7/10) +github.com/conformal/btcjson/jsoncmd.go GetBlockCountCmd.UnmarshalJSON 70.00% (7/10) +github.com/conformal/btcjson/jsoncmd.go PingCmd.UnmarshalJSON 70.00% (7/10) github.com/conformal/btcjson/jsoncmd.go GetAccountCmd.UnmarshalJSON 69.23% (9/13) +github.com/conformal/btcjson/jsoncmd.go GetAddressesByAccountCmd.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 ValidateAddressCmd.UnmarshalJSON 69.23% (9/13) +github.com/conformal/btcjson/jsoncmd.go CreateRawTransactionCmd.UnmarshalJSON 69.23% (9/13) +github.com/conformal/btcjson/jsoncmd.go SendRawTransactionCmd.UnmarshalJSON 69.23% (9/13) +github.com/conformal/btcjson/jsoncmd.go GetTransactionCmd.UnmarshalJSON 69.23% (9/13) +github.com/conformal/btcjson/jsoncmd.go GetBlockHashCmd.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 SendRawTransactionCmd.UnmarshalJSON 69.23% (9/13) -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 DumpPrivKeyCmd.UnmarshalJSON 69.23% (9/13) +github.com/conformal/btcjson/jsoncmd.go DecodeRawTransactionCmd.UnmarshalJSON 69.23% (9/13) +github.com/conformal/btcjson/jsoncmd.go DecodeScriptCmd.UnmarshalJSON 69.23% (9/13) +github.com/conformal/btcjson/jsoncmd.go DumpWalletCmd.UnmarshalJSON 69.23% (9/13) +github.com/conformal/btcjson/jsoncmd.go BackupWalletCmd.UnmarshalJSON 69.23% (9/13) 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 AddNodeCmd.UnmarshalJSON 68.75% (11/16) +github.com/conformal/btcjson/jsoncmd.go WalletPassphraseChangeCmd.UnmarshalJSON 68.75% (11/16) +github.com/conformal/btcjson/jsoncmd.go WalletPassphraseCmd.UnmarshalJSON 68.75% (11/16) github.com/conformal/btcjson/jsoncmd.go VerifyMessageCmd.UnmarshalJSON 68.42% (13/19) github.com/conformal/btcjson/jsoncmd.go ListReceivedByAccountCmd.MarshalJSON 66.67% (4/6) github.com/conformal/btcjson/jsoncmd.go NewLockUnspentCmd 66.67% (4/6) @@ -300,91 +369,22 @@ github.com/conformal/btcjson/jsoncmd.go ListSinceBlockCmd.UnmarshalJSON 0.00% 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 ListReceivedByAddressCmd.MarshalJSON 0.00% (0/6) github.com/conformal/btcjson/jsoncmd.go unparsableCmd.UnmarshalJSON 0.00% (0/6) +github.com/conformal/btcjson/jsoncmd.go ListReceivedByAddressCmd.MarshalJSON 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 SendManyCmd.Method 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 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 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 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 GetAccountCmd.Method 0.00% (0/1) -github.com/conformal/btcjson/jsonapi.go Vin.IsCoinBase 0.00% (0/1) -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 Vin.IsCoinBase 0.00% (0/1) +github.com/conformal/btcjson/jsoncmd.go ListSinceBlockCmd.Id 0.00% (0/1) +github.com/conformal/btcjson/jsoncmd.go newUnparsableCmd 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 unparsableCmd.Id 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/jsoncmd.go unparsableCmd.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) +github.com/conformal/btcjson/jsonapi.go TlsRpcRawCommand 0.00% (0/1) +github.com/conformal/btcjson/jsoncmd.go ListSinceBlockCmd.Method 0.00% (0/1) +github.com/conformal/btcjson --------------------------------------- 75.13% (2018/2686)