This commit is contained in:
georgehao 2025-03-23 00:00:58 +08:00
parent df2f78856a
commit 85913cfb3c
No known key found for this signature in database

View file

@ -115,6 +115,47 @@ func TestGethClient(t *testing.T) {
name string name string
test func(t *testing.T) 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", "TestAccessList",
func(t *testing.T) { testAccessList(t, client) }, func(t *testing.T) { testAccessList(t, client) },
@ -123,54 +164,6 @@ func TestGethClient(t *testing.T) {
"TestBatchAccessList", "TestBatchAccessList",
func(t *testing.T) { testBatchAccessList(t, client) }, 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", "TestSetHead",
func(t *testing.T) { testSetHead(t, client) }, func(t *testing.T) { testSetHead(t, client) },