go-ethereum/eth/tracers/internal/tracetest
Sina Mahmoodi ca8ae560cb drop directory pkg
# Conflicts:
#	cmd/evm/internal/t8ntool/transition.go
2024-03-25 15:18:37 -04:00
..
testdata Backported a bunch more of eth/tracers 2024-03-15 14:06:11 -04:00
calltrace_test.go drop directory pkg 2024-03-25 15:18:37 -04:00
flat_calltrace_test.go drop directory pkg 2024-03-25 15:18:37 -04:00
makeTest.js Backporting extended-tracer branch 2024-02-06 13:06:08 -05:00
prestate_test.go drop directory pkg 2024-03-25 15:18:37 -04:00
README.md Backporting extended-tracer branch 2024-02-06 13:06:08 -05:00
util.go Backporting extended-tracer branch 2024-02-06 13:06:08 -05:00

Filling test cases

To fill test cases for the built-in tracers, the makeTest.js script can be used. Given a transaction on a dev/test network, makeTest.js will fetch its prestate and then traces with the given configuration. In the Geth console do:

let tx = '0x...'
loadScript('makeTest.js')
makeTest(tx, { tracer: 'callTracer' })