github.com/lmittmann/w3@v0.20.0/module/eth/syncing_test.go (about) 1 package eth_test 2 3 import ( 4 "testing" 5 6 "github.com/lmittmann/w3/module/eth" 7 "github.com/lmittmann/w3/rpctest" 8 ) 9 10 func TestSyncing(t *testing.T) { 11 rpctest.RunTestCases(t, []rpctest.TestCase[bool]{ 12 { 13 Golden: "syncing__false", 14 Call: eth.Syncing(), 15 WantRet: false, 16 }, 17 { 18 Golden: "syncing__true", 19 Call: eth.Syncing(), 20 WantRet: true, 21 }, 22 }) 23 }