Test_Bind_SkipValidation() — fiber Function Reference
Architecture documentation for the Test_Bind_SkipValidation() function in bind_test.go from the fiber codebase.
Entity Profile
Dependency Diagram
graph TD 550a2919_f647_2205_afd0_47f32335c17c["Test_Bind_SkipValidation()"] 55065b01_f5dc_4e53_5a74_5ecc7aca8f52["bind_test.go"] 550a2919_f647_2205_afd0_47f32335c17c -->|defined in| 55065b01_f5dc_4e53_5a74_5ecc7aca8f52 style 550a2919_f647_2205_afd0_47f32335c17c fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
bind_test.go lines 1931–1962
func Test_Bind_SkipValidation(t *testing.T) {
t.Parallel()
app := New(Config{StructValidator: &structValidator{}})
t.Run("validation enabled", func(t *testing.T) {
t.Parallel()
c := app.AcquireCtx(&fasthttp.RequestCtx{})
t.Cleanup(func() {
app.ReleaseCtx(c)
})
rq := new(simpleQuery)
c.Request().URI().SetQueryString("name=efe")
require.Equal(t, "you should have entered right name", c.Bind().SkipValidation(false).Query(rq).Error())
})
t.Run("validation skipped", func(t *testing.T) {
t.Parallel()
c := app.AcquireCtx(&fasthttp.RequestCtx{})
t.Cleanup(func() {
app.ReleaseCtx(c)
})
rq := new(simpleQuery)
c.Request().URI().SetQueryString("name=efe")
require.NoError(t, c.Bind().SkipValidation(true).Query(rq))
require.Equal(t, "efe", rq.Name)
})
}
Domain
Subdomains
Defined In
Source
Frequently Asked Questions
What does Test_Bind_SkipValidation() do?
Test_Bind_SkipValidation() is a function in the fiber codebase, defined in bind_test.go.
Where is Test_Bind_SkipValidation() defined?
Test_Bind_SkipValidation() is defined in bind_test.go at line 1931.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free