transport_test.go — fiber Source File
Architecture documentation for transport_test.go, a go file in the fiber codebase. 1 imports, 0 dependents.
Entity Profile
Dependency Diagram
graph LR b137f470_30b5_d002_b6e6_5173073c07e3["transport_test.go"] 633f63d7_c731_5dad_c6ed_c9824feba192["tls"] b137f470_30b5_d002_b6e6_5173073c07e3 --> 633f63d7_c731_5dad_c6ed_c9824feba192 style b137f470_30b5_d002_b6e6_5173073c07e3 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
package client
import (
"crypto/tls"
"errors"
"net"
"sync/atomic"
"testing"
"time"
"github.com/stretchr/testify/require"
"github.com/valyala/fasthttp"
)
type stubBalancingClient struct{}
func (stubBalancingClient) DoDeadline(*fasthttp.Request, *fasthttp.Response, time.Time) error {
return nil
}
func (stubBalancingClient) PendingRequests() int { return 0 }
type lbBalancingClient struct {
client *fasthttp.LBClient
}
func (l *lbBalancingClient) DoDeadline(req *fasthttp.Request, resp *fasthttp.Response, deadline time.Time) error {
if l.client == nil {
return nil
}
return l.client.DoDeadline(req, resp, deadline)
}
func (*lbBalancingClient) PendingRequests() int { return 0 }
func (l *lbBalancingClient) LBClient() *fasthttp.LBClient { return l.client }
type stubRedirectCall struct {
err error
status *int
location *string
}
func ptrInt(v int) *int { return &v }
func ptrString(v string) *string { return &v }
type stubRedirectClient struct {
calls []stubRedirectCall
callCount int
}
func (s *stubRedirectClient) Do(req *fasthttp.Request, resp *fasthttp.Response) error {
_ = req
s.callCount++
if len(s.calls) == 0 {
resp.Reset()
resp.Header.SetStatusCode(fasthttp.StatusOK)
return nil
}
// ... (447 more lines)
Domain
Subdomains
Functions
- TestDoRedirectsWithClientBranches()
- TestDoRedirectsWithClientDefaultLimit()
- TestExtractTLSConfigVariations()
- TestHostClientTransportClientAccessor()
- TestLBClientTransportAccessorsAndOverrides()
- TestStandardClientTransportCoverage()
- TestWalkBalancingClientWithBreak()
- Test_HostClientTransport_StreamResponseBody()
- Test_LBClientTransport_StreamResponseBody()
- Test_StandardClientTransport_StreamResponseBody()
- Test_httpClientTransport_Interface()
- ptrInt()
- ptrString()
Classes
Types
Dependencies
- tls
Source
Frequently Asked Questions
What does transport_test.go do?
transport_test.go is a source file in the fiber codebase, written in go. It belongs to the FiberClient domain, Transport subdomain.
What functions are defined in transport_test.go?
transport_test.go defines 13 function(s): TestDoRedirectsWithClientBranches, TestDoRedirectsWithClientDefaultLimit, TestExtractTLSConfigVariations, TestHostClientTransportClientAccessor, TestLBClientTransportAccessorsAndOverrides, TestStandardClientTransportCoverage, TestWalkBalancingClientWithBreak, Test_HostClientTransport_StreamResponseBody, Test_LBClientTransport_StreamResponseBody, Test_StandardClientTransport_StreamResponseBody, and 3 more.
What does transport_test.go depend on?
transport_test.go imports 1 module(s): tls.
Where is transport_test.go in the architecture?
transport_test.go is located at client/transport_test.go (domain: FiberClient, subdomain: Transport, directory: client).
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free