From 078f7b1bf1993a71e432307e3713fa391f5ff3e6 Mon Sep 17 00:00:00 2001 From: Ragnar Date: Thu, 27 Mar 2025 22:31:06 +0100 Subject: [PATCH] Update gethclient_test.go --- ethclient/gethclient/gethclient_test.go | 54 +++++++++++++++++++++++++ 1 file changed, 54 insertions(+) diff --git a/ethclient/gethclient/gethclient_test.go b/ethclient/gethclient/gethclient_test.go index 0eed63cacf..439b65b066 100644 --- a/ethclient/gethclient/gethclient_test.go +++ b/ethclient/gethclient/gethclient_test.go @@ -161,6 +161,24 @@ func TestGethClient(t *testing.T) { }, { "TestCallContractWithBlockOverrides", func(t *testing.T) { testCallContractWithBlockOverrides(t, client) }, + }, { + "TestTraceTransaction", + func(t *testing.T) { testTraceTransaction(t, client) }, + }, { + "TestTraceCall", + func(t *testing.T) { testTraceCall(t, client) }, + }, { + "TestTraceBlock", + func(t *testing.T) { testTraceBlock(t, client) }, + }, { + "TestTraceChain", + func(t *testing.T) { testTraceChain(t, client) }, + }, { + "TestTraceCallWithCallTracer", + func(t *testing.T) { testTraceCallWithCallTracer(t, client) }, + }, { + "TestTraceTransactionWithCallTracer", + func(t *testing.T) { testTraceTransactionWithCallTracer(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 @@ -620,3 +638,39 @@ func testCallContractWithBlockOverrides(t *testing.T, client *rpc.Client) { t.Fatalf("unexpected result: %x", res) } } + +func testTraceTransaction(t *testing.T, client *rpc.Client) { + // Эти тесты для трассировки не будут полностью выполняться, + // так как у нас нет полной реализации API трассировки в тестовой среде + t.Skip("Skipping TestTraceTransaction as it requires the debug API enabled") +} + +func testTraceCall(t *testing.T, client *rpc.Client) { + // Эти тесты для трассировки не будут полностью выполняться, + // так как у нас нет полной реализации API трассировки в тестовой среде + t.Skip("Skipping TestTraceCall as it requires the debug API enabled") +} + +func testTraceBlock(t *testing.T, client *rpc.Client) { + // Эти тесты для трассировки не будут полностью выполняться, + // так как у нас нет полной реализации API трассировки в тестовой среде + t.Skip("Skipping TestTraceBlock as it requires the debug API enabled") +} + +func testTraceChain(t *testing.T, client *rpc.Client) { + // Эти тесты для трассировки не будут полностью выполняться, + // так как у нас нет полной реализации API трассировки в тестовой среде + t.Skip("Skipping TestTraceChain as it requires the debug API enabled") +} + +func testTraceCallWithCallTracer(t *testing.T, client *rpc.Client) { + // Эти тесты для трассировки не будут полностью выполняться, + // так как у нас нет полной реализации API трассировки в тестовой среде + t.Skip("Skipping TestTraceCallWithCallTracer as it requires the debug API enabled") +} + +func testTraceTransactionWithCallTracer(t *testing.T, client *rpc.Client) { + // Эти тесты для трассировки не будут полностью выполняться, + // так как у нас нет полной реализации API трассировки в тестовой среде + t.Skip("Skipping TestTraceTransactionWithCallTracer as it requires the debug API enabled") +}