Test_CORS_DisableValueRedaction() — fiber Function Reference
Architecture documentation for the Test_CORS_DisableValueRedaction() function in cors_test.go from the fiber codebase.
Entity Profile
Dependency Diagram
graph TD 987d1c35_1189_e1d8_37c3_e5f626e42967["Test_CORS_DisableValueRedaction()"] e59a43fd_cfa4_0f6b_1938_4a08e36ad74e["cors_test.go"] 987d1c35_1189_e1d8_37c3_e5f626e42967 -->|defined in| e59a43fd_cfa4_0f6b_1938_4a08e36ad74e style 987d1c35_1189_e1d8_37c3_e5f626e42967 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
middleware/cors/cors_test.go lines 323–339
func Test_CORS_DisableValueRedaction(t *testing.T) {
t.Parallel()
require.PanicsWithValue(t, "[CORS] Invalid origin format in configuration: [redacted]", func() {
New(Config{
AllowOrigins: []string{"http://"},
DisableValueRedaction: false,
})
})
require.PanicsWithValue(t, "[CORS] Invalid origin format in configuration: http://", func() {
New(Config{
AllowOrigins: []string{"http://"},
DisableValueRedaction: true,
})
})
}
Domain
Subdomains
Defined In
Source
Frequently Asked Questions
What does Test_CORS_DisableValueRedaction() do?
Test_CORS_DisableValueRedaction() is a function in the fiber codebase, defined in middleware/cors/cors_test.go.
Where is Test_CORS_DisableValueRedaction() defined?
Test_CORS_DisableValueRedaction() is defined in middleware/cors/cors_test.go at line 323.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free