Home / Function/ TestMappingCustomArrayUnmarshalTextUri() — gin Function Reference

TestMappingCustomArrayUnmarshalTextUri() — gin Function Reference

Architecture documentation for the TestMappingCustomArrayUnmarshalTextUri() function in form_mapping_test.go from the gin codebase.

Entity Profile

Dependency Diagram

graph TD
  033b3d67_710f_d773_9b3c_e117e6881da4["TestMappingCustomArrayUnmarshalTextUri()"]
  36de44f8_6a8c_78ab_4c20_59952e276c82["form_mapping_test.go"]
  033b3d67_710f_d773_9b3c_e117e6881da4 -->|defined in| 36de44f8_6a8c_78ab_4c20_59952e276c82
  1285f4f5_f0ab_d88b_9429_cec4c58637a5["convertToOidUnmarshalText()"]
  033b3d67_710f_d773_9b3c_e117e6881da4 -->|calls| 1285f4f5_f0ab_d88b_9429_cec4c58637a5
  style 033b3d67_710f_d773_9b3c_e117e6881da4 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

binding/form_mapping_test.go lines 942–952

func TestMappingCustomArrayUnmarshalTextUri(t *testing.T) {
	var s struct {
		FileData objectIDUnmarshalText `uri:"id,parser=encoding.TextUnmarshaler"`
	}
	val := `664a062ac74a8ad104e0e80f`
	err := mappingByPtr(&s, formSource{"id": {val}}, "uri")
	require.NoError(t, err)

	expected, _ := convertToOidUnmarshalText(val)
	assert.Equal(t, expected, s.FileData)
}

Subdomains

Frequently Asked Questions

What does TestMappingCustomArrayUnmarshalTextUri() do?
TestMappingCustomArrayUnmarshalTextUri() is a function in the gin codebase, defined in binding/form_mapping_test.go.
Where is TestMappingCustomArrayUnmarshalTextUri() defined?
TestMappingCustomArrayUnmarshalTextUri() is defined in binding/form_mapping_test.go at line 942.
What does TestMappingCustomArrayUnmarshalTextUri() call?
TestMappingCustomArrayUnmarshalTextUri() calls 1 function(s): convertToOidUnmarshalText.

Analyze Your Own Codebase

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

Try Supermodel Free