Test_parseToStruct_MismatchedData() — fiber Function Reference
Architecture documentation for the Test_parseToStruct_MismatchedData() function in mapping_test.go from the fiber codebase.
Entity Profile
Dependency Diagram
graph TD 8c0b3e91_302e_7a36_b5c5_464a179a12fd["Test_parseToStruct_MismatchedData()"] ecb7a598_be7d_ed73_d2c3_8ca5f67838de["mapping_test.go"] 8c0b3e91_302e_7a36_b5c5_464a179a12fd -->|defined in| ecb7a598_be7d_ed73_d2c3_8ca5f67838de style 8c0b3e91_302e_7a36_b5c5_464a179a12fd fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
binder/mapping_test.go lines 337–353
func Test_parseToStruct_MismatchedData(t *testing.T) {
t.Parallel()
type User struct {
Name string `query:"name"`
Age int `query:"age"`
}
data := map[string][]string{
"name": {"John"},
"age": {"invalidAge"},
}
err := parseToStruct("query", &User{}, data)
require.Error(t, err)
require.EqualError(t, err, "bind: schema: error converting value for \"age\"")
}
Domain
Subdomains
Defined In
Source
Frequently Asked Questions
What does Test_parseToStruct_MismatchedData() do?
Test_parseToStruct_MismatchedData() is a function in the fiber codebase, defined in binder/mapping_test.go.
Where is Test_parseToStruct_MismatchedData() defined?
Test_parseToStruct_MismatchedData() is defined in binder/mapping_test.go at line 337.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free