packagetcpimport("testing"ma"github.com/jbenet/go-multiaddr"utils"github.com/libp2p/go-libp2p-transport/test")funcTestTcpTransport(t*testing.T){ta:=NewTCPTransport()tb:=NewTCPTransport()zero:="/ip4/127.0.0.1/tcp/0"utils.SubtestTransport(t,ta,tb,zero)}funcTestTcpTransportCantListenUtp(t*testing.T){utpa,err:=ma.NewMultiaddr("/ip4/127.0.0.1/udp/0/utp")iferr!=nil{t.Fatal(err)}tpt:=NewTCPTransport()_,err=tpt.Listen(utpa)iferr==nil{t.Fatal("shouldnt be able to listen on utp addr with tcp transport")}}