mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-27 15:16:43 +00:00
format
This commit is contained in:
parent
df2f78856a
commit
85913cfb3c
1 changed files with 41 additions and 48 deletions
|
|
@ -115,6 +115,47 @@ func TestGethClient(t *testing.T) {
|
|||
name string
|
||||
test func(t *testing.T)
|
||||
}{
|
||||
{
|
||||
"TestGetProof1",
|
||||
func(t *testing.T) { testGetProof(t, client, testAddr) },
|
||||
}, {
|
||||
"TestGetProof2",
|
||||
func(t *testing.T) { testGetProof(t, client, testContract) },
|
||||
}, {
|
||||
"TestGetProofEmpty",
|
||||
func(t *testing.T) { testGetProof(t, client, testEmpty) },
|
||||
}, {
|
||||
"TestGetProofNonExistent",
|
||||
func(t *testing.T) { testGetProofNonExistent(t, client) },
|
||||
}, {
|
||||
"TestGetProofCanonicalizeKeys",
|
||||
func(t *testing.T) { testGetProofCanonicalizeKeys(t, client) },
|
||||
}, {
|
||||
"TestGCStats",
|
||||
func(t *testing.T) { testGCStats(t, client) },
|
||||
}, {
|
||||
"TestMemStats",
|
||||
func(t *testing.T) { testMemStats(t, client) },
|
||||
}, {
|
||||
"TestGetNodeInfo",
|
||||
func(t *testing.T) { testGetNodeInfo(t, client) },
|
||||
}, {
|
||||
"TestSubscribePendingTxHashes",
|
||||
func(t *testing.T) { testSubscribePendingTransactions(t, client) },
|
||||
}, {
|
||||
"TestSubscribePendingTxs",
|
||||
func(t *testing.T) { testSubscribeFullPendingTransactions(t, client) },
|
||||
}, {
|
||||
"TestCallContract",
|
||||
func(t *testing.T) { testCallContract(t, client) },
|
||||
}, {
|
||||
"TestCallContractWithBlockOverrides",
|
||||
func(t *testing.T) { testCallContractWithBlockOverrides(t, client) },
|
||||
},
|
||||
// The testaccesslist is a bit time-sensitive: the newTestBackend imports
|
||||
// one block. The `testAccessList` fails if the miner has not yet created a
|
||||
// new pending-block after the import event.
|
||||
// Hence: this test should be last, execute the tests serially.
|
||||
{
|
||||
"TestAccessList",
|
||||
func(t *testing.T) { testAccessList(t, client) },
|
||||
|
|
@ -123,54 +164,6 @@ func TestGethClient(t *testing.T) {
|
|||
"TestBatchAccessList",
|
||||
func(t *testing.T) { testBatchAccessList(t, client) },
|
||||
},
|
||||
{
|
||||
"TestGetProof",
|
||||
func(t *testing.T) { testGetProof(t, client, testAddr) },
|
||||
},
|
||||
{
|
||||
"TestGetProof2",
|
||||
func(t *testing.T) { testGetProof(t, client, testContract) },
|
||||
},
|
||||
{
|
||||
"TestGetProofEmpty",
|
||||
func(t *testing.T) { testGetProof(t, client, testEmpty) },
|
||||
},
|
||||
{
|
||||
"TestGetProofNonExistent",
|
||||
func(t *testing.T) { testGetProofNonExistent(t, client) },
|
||||
},
|
||||
{
|
||||
"TestGetProofCanonicalizeKeys",
|
||||
func(t *testing.T) { testGetProofCanonicalizeKeys(t, client) },
|
||||
},
|
||||
{
|
||||
"TestGCStats",
|
||||
func(t *testing.T) { testGCStats(t, client) },
|
||||
},
|
||||
{
|
||||
"TestMemStats",
|
||||
func(t *testing.T) { testMemStats(t, client) },
|
||||
},
|
||||
{
|
||||
"TestGetNodeInfo",
|
||||
func(t *testing.T) { testGetNodeInfo(t, client) },
|
||||
},
|
||||
{
|
||||
"TestSubscribePendingTxHashes",
|
||||
func(t *testing.T) { testSubscribePendingTransactions(t, client) },
|
||||
},
|
||||
{
|
||||
"TestSubscribePendingTxs",
|
||||
func(t *testing.T) { testSubscribeFullPendingTransactions(t, client) },
|
||||
},
|
||||
{
|
||||
"TestCallContract",
|
||||
func(t *testing.T) { testCallContract(t, client) },
|
||||
},
|
||||
{
|
||||
"TestCallContractWithBlockOverrides",
|
||||
func(t *testing.T) { testCallContractWithBlockOverrides(t, client) },
|
||||
},
|
||||
{
|
||||
"TestSetHead",
|
||||
func(t *testing.T) { testSetHead(t, client) },
|
||||
|
|
|
|||
Loading…
Reference in a new issue