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
  f7ea2487_4ef9_d218_e594_0aaeea2a690e["TestBindingFormPostForMap()"]
  314c6481_2bd0_e5a7_282c_94e41df6062a["binding_test.go"]
  f7ea2487_4ef9_d218_e594_0aaeea2a690e -->|defined in| 314c6481_2bd0_e5a7_282c_94e41df6062a
  b566667a_5307_de87_7176_236170c899fd["createFormPostRequestForMap()"]
  f7ea2487_4ef9_d218_e594_0aaeea2a690e -->|calls| b566667a_5307_de87_7176_236170c899fd
  style f7ea2487_4ef9_d218_e594_0aaeea2a690e 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)
}

Subdomains

Frequently Asked Questions

What does TestBindingFormPostForMap() do?
TestBindingFormPostForMap() is a function in the gin codebase, defined in binding/binding_test.go.
Where is TestBindingFormPostForMap() defined?
TestBindingFormPostForMap() is defined in binding/binding_test.go at line 643.
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