Test_Ctx_Context() — fiber Function Reference
Architecture documentation for the Test_Ctx_Context() function in ctx_test.go from the fiber codebase.
Entity Profile
Dependency Diagram
graph TD 5f19c421_23b4_dd78_33ca_f0988a74d036["Test_Ctx_Context()"] 7b3d4933_5ae3_f84d_ff6d_0cb34e268026["ctx_test.go"] 5f19c421_23b4_dd78_33ca_f0988a74d036 -->|defined in| 7b3d4933_5ae3_f84d_ff6d_0cb34e268026 01abf773_217c_9cb0_9cd2_6539f5b80a92["Context()"] 5f19c421_23b4_dd78_33ca_f0988a74d036 -->|calls| 01abf773_217c_9cb0_9cd2_6539f5b80a92 style 5f19c421_23b4_dd78_33ca_f0988a74d036 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
ctx_test.go lines 3371–3389
func Test_Ctx_Context(t *testing.T) {
t.Parallel()
app := New()
c := app.AcquireCtx(&fasthttp.RequestCtx{})
t.Run("Nil_Context", func(t *testing.T) {
t.Parallel()
ctx := c.Context()
require.Equal(t, ctx, context.Background())
})
t.Run("ValueContext", func(t *testing.T) {
t.Parallel()
var testKey testContextKey
testValue := "Test Value"
ctx := context.WithValue(context.Background(), testKey, testValue)
require.Equal(t, testValue, ctx.Value(testKey))
})
}
Domain
Subdomains
Defined In
Calls
Source
Frequently Asked Questions
What does Test_Ctx_Context() do?
Test_Ctx_Context() is a function in the fiber codebase, defined in ctx_test.go.
Where is Test_Ctx_Context() defined?
Test_Ctx_Context() is defined in ctx_test.go at line 3371.
What does Test_Ctx_Context() call?
Test_Ctx_Context() calls 1 function(s): Context.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free