TestTOMLBindingBindBody() — gin Function Reference
Architecture documentation for the TestTOMLBindingBindBody() function in toml_test.go from the gin codebase.
Entity Profile
Dependency Diagram
graph TD 5f417f8a_2348_ffc7_dfc0_114e00ed4147["TestTOMLBindingBindBody()"] 2b798f99_e660_7740_ea9e_4efba35f9bb9["toml_test.go"] 5f417f8a_2348_ffc7_dfc0_114e00ed4147 -->|defined in| 2b798f99_e660_7740_ea9e_4efba35f9bb9 style 5f417f8a_2348_ffc7_dfc0_114e00ed4147 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
binding/toml_test.go lines 14–22
func TestTOMLBindingBindBody(t *testing.T) {
var s struct {
Foo string `toml:"foo"`
}
tomlBody := `foo="FOO"`
err := tomlBinding{}.BindBody([]byte(tomlBody), &s)
require.NoError(t, err)
assert.Equal(t, "FOO", s.Foo)
}
Domain
Subdomains
Defined In
Source
Frequently Asked Questions
What does TestTOMLBindingBindBody() do?
TestTOMLBindingBindBody() is a function in the gin codebase, defined in binding/toml_test.go.
Where is TestTOMLBindingBindBody() defined?
TestTOMLBindingBindBody() is defined in binding/toml_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