go-ethereum/eth/tracers/internal/tracetest
2024-03-15 14:06:11 -04:00
..
testdata Backported a bunch more of eth/tracers 2024-03-15 14:06:11 -04:00
calltrace_test.go Backported a bunch more of eth/tracers 2024-03-15 14:06:11 -04:00
flat_calltrace_test.go rename tracer methods to On pattern 2024-03-14 16:16:18 -04:00
makeTest.js Backporting extended-tracer branch 2024-02-06 13:06:08 -05:00
prestate_test.go Backported a bunch more of eth/tracers 2024-03-15 14:06:11 -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' })