Home / Function/ TestBindingFormPostForMap() — gin Function Reference

TestBindingFormPostForMap() — gin Function Reference

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

Entity Profile

Dependency Diagram

graph TD
  27ebe3e5_31d8_386a_d67c_656a3559a0ac["TestBindingFormPostForMap()"]
  5ebebc5b_7ff8_ebf8_ae85_37d0951be4e5["createFormPostRequestForMap()"]
  27ebe3e5_31d8_386a_d67c_656a3559a0ac -->|calls| 5ebebc5b_7ff8_ebf8_ae85_37d0951be4e5
  style 27ebe3e5_31d8_386a_d67c_656a3559a0ac fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

binding/binding_test.go lines 643–649

func TestBindingFormPostForMap(t *testing.T) {
	req := createFormPostRequestForMap(t)
	var obj FooStructForMapType
	err := FormPost.Bind(req, &obj)
	require.NoError(t, err)
	assert.InDelta(t, float64(123), obj.MapFoo["bar"].(float64), 0.01)
}

Domain

Subdomains

Frequently Asked Questions

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

Analyze Your Own Codebase

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

Try Supermodel Free