Benchmark_Encrypt_Cookie_Except_Parallel() — fiber Function Reference
Architecture documentation for the Benchmark_Encrypt_Cookie_Except_Parallel() function in encryptcookie_test.go from the fiber codebase.
Entity Profile
Dependency Diagram
graph TD 251537c1_3122_249d_b761_12ef193a8156["Benchmark_Encrypt_Cookie_Except_Parallel()"] ac3bbef3_a1d3_d68b_64fb_619088dde10d["encryptcookie_test.go"] 251537c1_3122_249d_b761_12ef193a8156 -->|defined in| ac3bbef3_a1d3_d68b_64fb_619088dde10d style 251537c1_3122_249d_b761_12ef193a8156 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
middleware/encryptcookie/encryptcookie_test.go lines 679–714
func Benchmark_Encrypt_Cookie_Except_Parallel(b *testing.B) {
testKey := GenerateKey(32)
app := fiber.New()
app.Use(New(Config{
Key: testKey,
Except: []string{
"test1",
},
}))
app.Get("/", func(c fiber.Ctx) error {
c.Cookie(&fiber.Cookie{
Name: "test1",
Value: "SomeThing",
})
c.Cookie(&fiber.Cookie{
Name: "test2",
Value: "SomeThing",
})
return nil
})
h := app.Handler()
b.ReportAllocs()
b.ResetTimer()
b.RunParallel(func(pb *testing.PB) {
for pb.Next() {
ctx := &fasthttp.RequestCtx{}
ctx.Request.Header.SetMethod(fiber.MethodGet)
h(ctx)
}
})
}
Domain
Subdomains
Source
Frequently Asked Questions
What does Benchmark_Encrypt_Cookie_Except_Parallel() do?
Benchmark_Encrypt_Cookie_Except_Parallel() is a function in the fiber codebase, defined in middleware/encryptcookie/encryptcookie_test.go.
Where is Benchmark_Encrypt_Cookie_Except_Parallel() defined?
Benchmark_Encrypt_Cookie_Except_Parallel() is defined in middleware/encryptcookie/encryptcookie_test.go at line 679.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free