Home / Function/ TestBindingFormPost() — gin Function Reference

TestBindingFormPost() — gin Function Reference

Architecture documentation for the TestBindingFormPost() function in binding_test.go from the gin codebase.

Entity Profile

Dependency Diagram

graph TD
  9edd611b_825f_fea0_22ef_6dec16bdeedf["TestBindingFormPost()"]
  a97f215d_74c4_087d_0d79_29c6388482cf["createFormPostRequest()"]
  9edd611b_825f_fea0_22ef_6dec16bdeedf -->|calls| a97f215d_74c4_087d_0d79_29c6388482cf
  style 9edd611b_825f_fea0_22ef_6dec16bdeedf fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

binding/binding_test.go lines 624–632

func TestBindingFormPost(t *testing.T) {
	req := createFormPostRequest(t)
	var obj FooBarStruct
	require.NoError(t, FormPost.Bind(req, &obj))

	assert.Equal(t, "form-urlencoded", FormPost.Name())
	assert.Equal(t, "bar", obj.Foo)
	assert.Equal(t, "foo", obj.Bar)
}

Domain

Subdomains

Frequently Asked Questions

What does TestBindingFormPost() do?
TestBindingFormPost() is a function in the gin codebase.
What does TestBindingFormPost() call?
TestBindingFormPost() calls 1 function(s): createFormPostRequest.

Analyze Your Own Codebase

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

Try Supermodel Free