TestYAMLBindingBindBody() — gin Function Reference
Architecture documentation for the TestYAMLBindingBindBody() function in yaml_test.go from the gin codebase.
Entity Profile
Dependency Diagram
graph TD 9a40e45e_e4c9_137a_a7f7_de6c64f748b6["TestYAMLBindingBindBody()"] 807df86b_7577_e40d_d191_79f62aef00ef["yaml_test.go"] 9a40e45e_e4c9_137a_a7f7_de6c64f748b6 -->|defined in| 807df86b_7577_e40d_d191_79f62aef00ef style 9a40e45e_e4c9_137a_a7f7_de6c64f748b6 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
binding/yaml_test.go lines 14–21
func TestYAMLBindingBindBody(t *testing.T) {
var s struct {
Foo string `yaml:"foo"`
}
err := yamlBinding{}.BindBody([]byte("foo: FOO"), &s)
require.NoError(t, err)
assert.Equal(t, "FOO", s.Foo)
}
Domain
Subdomains
Defined In
Source
Frequently Asked Questions
What does TestYAMLBindingBindBody() do?
TestYAMLBindingBindBody() is a function in the gin codebase, defined in binding/yaml_test.go.
Where is TestYAMLBindingBindBody() defined?
TestYAMLBindingBindBody() is defined in binding/yaml_test.go at line 14.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free