yaml_test.go — gin Source File
Architecture documentation for yaml_test.go, a go file in the gin codebase. 1 imports, 0 dependents.
Entity Profile
Dependency Diagram
graph LR 807df86b_7577_e40d_d191_79f62aef00ef["yaml_test.go"] 0ff88466_66bc_01d5_630e_e073ff70cccb["testing"] 807df86b_7577_e40d_d191_79f62aef00ef --> 0ff88466_66bc_01d5_630e_e073ff70cccb style 807df86b_7577_e40d_d191_79f62aef00ef fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
// Copyright 2019 Gin Core Team. All rights reserved.
// Use of this source code is governed by a MIT style
// license that can be found in the LICENSE file.
package binding
import (
"testing"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
)
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
Functions
Types
Dependencies
- testing
Source
Frequently Asked Questions
What does yaml_test.go do?
yaml_test.go is a source file in the gin codebase, written in go. It belongs to the RequestBinding domain, FormBinding subdomain.
What functions are defined in yaml_test.go?
yaml_test.go defines 1 function(s): TestYAMLBindingBindBody.
What does yaml_test.go depend on?
yaml_test.go imports 1 module(s): testing.
Where is yaml_test.go in the architecture?
yaml_test.go is located at binding/yaml_test.go (domain: RequestBinding, subdomain: FormBinding, directory: binding).
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free