Home / Function/ TestTOMLBindingBindBody() — gin Function Reference

TestTOMLBindingBindBody() — gin Function Reference

Architecture documentation for the TestTOMLBindingBindBody() function in toml_test.go from the gin codebase.

Entity Profile

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

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free