github.com/machinefi/w3bstream@v1.6.5-rc9.0.20240426031326-b8c7c4876e72/pkg/depends/kit/httptransport/client/roundtrippers/log_round_tripper_test.go (about)

     1  package roundtrippers_test
     2  
     3  import (
     4  	"net/http"
     5  	"testing"
     6  
     7  	"github.com/machinefi/w3bstream/pkg/depends/kit/httptransport"
     8  	. "github.com/machinefi/w3bstream/pkg/depends/kit/httptransport/client/roundtrippers"
     9  )
    10  
    11  func TestLogRoundTripper(t *testing.T) {
    12  	mgr := httptransport.NewRequestTsfmFactory(nil, nil)
    13  	mgr.SetDefault()
    14  
    15  	req, _ := mgr.NewRequest(http.MethodGet, "https://github.com", nil)
    16  	_, _ = NewLogRoundTripper()(http.DefaultTransport).RoundTrip(req)
    17  }