Home / File/ core_test.go — fiber Source File

core_test.go — fiber Source File

Architecture documentation for core_test.go, a go file in the fiber codebase. 1 imports, 0 dependents.

File go FiberClient Transport 1 imports 5 functions 1 classes

Entity Profile

Dependency Diagram

graph LR
  35aff514_5856_8aa3_8f9e_63a5c957346d["core_test.go"]
  c0b86961_3ef1_0168_52fc_98627566ed27["bytes"]
  35aff514_5856_8aa3_8f9e_63a5c957346d --> c0b86961_3ef1_0168_52fc_98627566ed27
  style 35aff514_5856_8aa3_8f9e_63a5c957346d fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

package client

import (
	"bytes"
	"context"
	"crypto/tls"
	"errors"
	"net"
	"sync"
	"testing"
	"time"

	"github.com/stretchr/testify/assert"
	"github.com/stretchr/testify/require"
	"github.com/valyala/fasthttp"
	"github.com/valyala/fasthttp/fasthttputil"

	"github.com/gofiber/fiber/v3"
)

func Test_AddMissing_Port(t *testing.T) {
	t.Parallel()

	type args struct {
		addr  string
		isTLS bool
	}
	tests := []struct {
		name string
		want string
		args args
	}{
		{
			name: "do anything",
			args: args{
				addr: "example.com:1234",
			},
			want: "example.com:1234",
		},
		{
			name: "add 80 port",
			args: args{
				addr: "example.com",
			},
			want: "example.com:80",
		},
		{
			name: "add 443 port",
			args: args{
				addr:  "example.com",
				isTLS: true,
			},
			want: "example.com:443",
		},
	}
	for _, tt := range tests {
		t.Run(tt.name, func(t *testing.T) {
			t.Parallel()
			require.Equal(t, tt.want, addMissingPort(tt.args.addr, tt.args.isTLS))
		})
// ... (485 more lines)

Domain

Subdomains

Classes

Dependencies

  • bytes

Frequently Asked Questions

What does core_test.go do?
core_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 core_test.go?
core_test.go defines 5 function(s): Test_AddMissing_Port, Test_Core_RequestBodyStream, Test_Exec_Func, Test_Execute, newBlockingErrTransport.
What does core_test.go depend on?
core_test.go imports 1 module(s): bytes.
Where is core_test.go in the architecture?
core_test.go is located at client/core_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