Home / Function/ TestMsgpackBindingBindBody() — gin Function Reference

TestMsgpackBindingBindBody() — gin Function Reference

Architecture documentation for the TestMsgpackBindingBindBody() function in msgpack_test.go from the gin codebase.

Entity Profile

Dependency Diagram

graph TD
  e49196e5_5b6a_445d_22c1_638afea7e6a8["TestMsgpackBindingBindBody()"]
  35f89c70_61d0_e90b_b96b_49fce8878e4b["msgpack_test.go"]
  e49196e5_5b6a_445d_22c1_638afea7e6a8 -->|defined in| 35f89c70_61d0_e90b_b96b_49fce8878e4b
  f8574d50_f70c_ccf3_41dc_fac1ecdadc39["msgpackBody()"]
  e49196e5_5b6a_445d_22c1_638afea7e6a8 -->|calls| f8574d50_f70c_ccf3_41dc_fac1ecdadc39
  style e49196e5_5b6a_445d_22c1_638afea7e6a8 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

binding/msgpack_test.go lines 18–26

func TestMsgpackBindingBindBody(t *testing.T) {
	type teststruct struct {
		Foo string `msgpack:"foo"`
	}
	var s teststruct
	err := msgpackBinding{}.BindBody(msgpackBody(t, teststruct{"FOO"}), &s)
	require.NoError(t, err)
	assert.Equal(t, "FOO", s.Foo)
}

Subdomains

Frequently Asked Questions

What does TestMsgpackBindingBindBody() do?
TestMsgpackBindingBindBody() is a function in the gin codebase, defined in binding/msgpack_test.go.
Where is TestMsgpackBindingBindBody() defined?
TestMsgpackBindingBindBody() is defined in binding/msgpack_test.go at line 18.
What does TestMsgpackBindingBindBody() call?
TestMsgpackBindingBindBody() calls 1 function(s): msgpackBody.

Analyze Your Own Codebase

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

Try Supermodel Free