github.com/lmittmann/w3@v0.20.0/module/txpool/status_test.go (about)

     1  package txpool_test
     2  
     3  import (
     4  	"testing"
     5  
     6  	"github.com/lmittmann/w3/module/txpool"
     7  	"github.com/lmittmann/w3/rpctest"
     8  )
     9  
    10  func TestStatus(t *testing.T) {
    11  	rpctest.RunTestCases(t, []rpctest.TestCase[*txpool.StatusResponse]{
    12  		{
    13  			Golden:  "status",
    14  			Call:    txpool.Status(),
    15  			WantRet: &txpool.StatusResponse{Pending: 10, Queued: 7},
    16  		},
    17  	})
    18  }