TestUriBinding() — gin Function Reference
Architecture documentation for the TestUriBinding() function in binding_test.go from the gin codebase.
Entity Profile
Dependency Diagram
graph TD 7a29323d_e58a_d7ba_5442_0af7c3c5884d["TestUriBinding()"] 314c6481_2bd0_e5a7_282c_94e41df6062a["binding_test.go"] 7a29323d_e58a_d7ba_5442_0af7c3c5884d -->|defined in| 314c6481_2bd0_e5a7_282c_94e41df6062a style 7a29323d_e58a_d7ba_5442_0af7c3c5884d fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
binding/binding_test.go lines 815–834
func TestUriBinding(t *testing.T) {
b := Uri
assert.Equal(t, "uri", b.Name())
type Tag struct {
Name string `uri:"name"`
}
var tag Tag
m := make(map[string][]string)
m["name"] = []string{"thinkerou"}
require.NoError(t, b.BindUri(m, &tag))
assert.Equal(t, "thinkerou", tag.Name)
type NotSupportStruct struct {
Name map[string]any `uri:"name"`
}
var not NotSupportStruct
require.Error(t, b.BindUri(m, ¬))
assert.Equal(t, map[string]any(nil), not.Name)
}
Domain
Subdomains
Defined In
Source
Frequently Asked Questions
What does TestUriBinding() do?
TestUriBinding() is a function in the gin codebase, defined in binding/binding_test.go.
Where is TestUriBinding() defined?
TestUriBinding() is defined in binding/binding_test.go at line 815.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free