app_test.go — fiber Source File
Architecture documentation for app_test.go, a go file in the fiber codebase. 1 imports, 0 dependents.
Entity Profile
Dependency Diagram
graph LR e728fdd2_242f_706b_c1d2_041b3d6badb5["app_test.go"] 3c539dc4_ce70_7be5_43dc_5058a965884a["bufio"] e728fdd2_242f_706b_c1d2_041b3d6badb5 --> 3c539dc4_ce70_7be5_43dc_5058a965884a style e728fdd2_242f_706b_c1d2_041b3d6badb5 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
// ⚡️ Fiber is an Express inspired web framework written in Go with ☕️
// 🤖 GitHub Repository: https://github.com/gofiber/fiber
// 📌 API Documentation: https://docs.gofiber.io
package fiber
import (
"bufio"
"bytes"
"context"
"crypto/tls"
"encoding/json"
"errors"
"fmt"
"io"
"mime/multipart"
"net"
"net/http"
"net/http/httptest"
"os"
"path/filepath"
"reflect"
"regexp"
"runtime"
"strconv"
"strings"
"sync"
"testing"
"time"
"unsafe"
"github.com/gofiber/utils/v2"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
"github.com/valyala/fasthttp"
"github.com/valyala/fasthttp/fasthttputil"
)
type fileView struct {
path string
content string
loads int
}
func (v *fileView) Load() error {
contents, err := os.ReadFile(v.path)
if err != nil {
return fmt.Errorf("read template: %w", err)
}
v.content = string(contents)
v.loads++
return nil
}
func (*fileView) Render(io.Writer, string, any, ...string) error { return nil }
func testEmptyHandler(_ Ctx) error {
return nil
// ... (3017 more lines)
Domain
Subdomains
Functions
- Benchmark_Communication_Flow()
- Benchmark_Communication_Flow_Parallel()
- Benchmark_Ctx_AcquireReleaseFlow()
- Benchmark_Ctx_AcquireReleaseFlow_Parallel()
- Benchmark_NewError()
- Benchmark_NewError_Parallel()
- TestErrorHandler_PicksRightOne()
- Test_App_AddCustomRequestMethod()
- Test_App_Add_Method_Test()
- Test_App_All_Method_Test()
- Test_App_AutoHead_Compliance()
- Test_App_AutoHead_Compliance_SendFile()
- Test_App_BadRequest()
- Test_App_BodyLimit_LargerThanDefault()
- Test_App_BodyLimit_Negative()
- Test_App_BodyLimit_Zero()
- Test_App_Chaining()
- Test_App_Config()
- Test_App_CustomConstraint()
- Test_App_Custom_Middleware_404_Should_Not_SetMethodNotAllowed()
- Test_App_Deep_Group()
- Test_App_DisablePreParseMultipartForm()
- Test_App_ErrorHandler_Custom()
- Test_App_ErrorHandler_HandlerStack()
- Test_App_ErrorHandler_RouteStack()
- Test_App_Error_In_Fasthttp_Server()
- Test_App_Errors()
- Test_App_GETOnly()
- Test_App_GetBytes()
- Test_App_GetRoutes()
- Test_App_GetString()
- Test_App_Group()
- Test_App_Group_Invalid()
- Test_App_Handler()
- Test_App_HandlersCount()
- Test_App_Init_Error_View()
- Test_App_MethodNotAllowed()
- Test_App_Methods()
- Test_App_Mixed_Routes_WithSameLen()
- Test_App_Nested_Params()
- Test_App_New()
- Test_App_New_Test_Parallel()
- Test_App_Next_Method()
- Test_App_Not_Use_StrictRouting()
- Test_App_OptionsAsterisk()
- Test_App_Order()
- Test_App_ReadBodyStream()
- Test_App_ReadTimeout()
- Test_App_RegisterNetHTTPHandler()
- Test_App_ReloadViews_Error()
- Test_App_ReloadViews_InterfaceNilPointer()
- Test_App_ReloadViews_MountedViews()
- Test_App_ReloadViews_MountedViews_Error()
- Test_App_ReloadViews_MountedViews_MultipleApps()
- Test_App_ReloadViews_MountedViews_WithParentViews()
- Test_App_ReloadViews_NoEngine()
- Test_App_ReloadViews_Success()
- Test_App_Route()
- Test_App_RouteChain()
- Test_App_Route_Naming()
- Test_App_Route_nilFuncPanics()
- Test_App_Server()
- Test_App_ServerErrorHandler_SmallReadBuffer()
- Test_App_SetTLSHandler()
- Test_App_Shutdown()
- Test_App_ShutdownWithContext()
- Test_App_ShutdownWithTimeout()
- Test_App_SmallReadBuffer()
- Test_App_Stack()
- Test_App_State()
- Test_App_Test_CloseFail()
- Test_App_Test_Goroutine_Leak_Compare()
- Test_App_Test_ReadFail()
- Test_App_Test_SmallTimeout_WithFailOnTimeoutFalse()
- Test_App_Test_SmallTimeout_WithFailOnTimeoutTrue()
- Test_App_Test_drop_empty_response()
- Test_App_Test_no_timeout_infinitely()
- Test_App_Test_response_error()
- Test_App_Test_timeout()
- Test_App_Test_timeout_empty_response()
- Test_App_Use_CaseSensitive()
- Test_App_Use_MultiplePrefix()
- Test_App_Use_Params()
- Test_App_Use_Params_Group()
- Test_App_Use_StrictRouting()
- Test_App_Use_UnescapedPath()
- Test_App_serverErrorHandler_Internal_Error()
- Test_App_serverErrorHandler_Network_Error()
- Test_App_serverErrorHandler_Unsupported_Method_Error()
- Test_App_serverErrorHandler_Unsupported_Method_Request()
- Test_Group_RouteChain_All()
- Test_Group_Route_nilFuncPanics()
- Test_Group_Use_NoBoundary()
- Test_Middleware_Route_Naming_With_Use()
- Test_NewError()
- Test_NewErrorf_Format()
- Test_Route_Naming_Issue_2671_2685()
- Test_Test_DumpError()
- Test_Test_Timeout()
- acquireDefaultCtxForAppBenchmark()
- testEmptyHandler()
- testErrorResponse()
- testStatus200()
Types
Dependencies
- bufio
Source
Frequently Asked Questions
What does app_test.go do?
app_test.go is a source file in the fiber codebase, written in go. It belongs to the FiberCore domain, Context subdomain.
What functions are defined in app_test.go?
app_test.go defines 103 function(s): Benchmark_Communication_Flow, Benchmark_Communication_Flow_Parallel, Benchmark_Ctx_AcquireReleaseFlow, Benchmark_Ctx_AcquireReleaseFlow_Parallel, Benchmark_NewError, Benchmark_NewError_Parallel, TestErrorHandler_PicksRightOne, Test_App_AddCustomRequestMethod, Test_App_Add_Method_Test, Test_App_All_Method_Test, and 93 more.
What does app_test.go depend on?
app_test.go imports 1 module(s): bufio.
Where is app_test.go in the architecture?
app_test.go is located at app_test.go (domain: FiberCore, subdomain: Context).
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free