Home / Function/ BenchmarkMapFormName() — gin Function Reference

BenchmarkMapFormName() — gin Function Reference

Architecture documentation for the BenchmarkMapFormName() function in form_mapping_benchmark_test.go from the gin codebase.

Entity Profile

Dependency Diagram

graph TD
  7d4c40f6_541c_a932_093a_cce8fc763de9["BenchmarkMapFormName()"]
  652e7bf5_3c89_5be4_42af_9fdbc680bb55["form_mapping_benchmark_test.go"]
  7d4c40f6_541c_a932_093a_cce8fc763de9 -->|defined in| 652e7bf5_3c89_5be4_42af_9fdbc680bb55
  style 7d4c40f6_541c_a932_093a_cce8fc763de9 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

binding/form_mapping_benchmark_test.go lines 55–67

func BenchmarkMapFormName(b *testing.B) {
	var s structName
	for b.Loop() {
		err := mapForm(&s, form)
		if err != nil {
			b.Fatalf("Error on a form mapping")
		}
	}
	b.StopTimer()

	t := b
	assert.Equal(t, "mike", s.Name)
}

Subdomains

Frequently Asked Questions

What does BenchmarkMapFormName() do?
BenchmarkMapFormName() is a function in the gin codebase, defined in binding/form_mapping_benchmark_test.go.
Where is BenchmarkMapFormName() defined?
BenchmarkMapFormName() is defined in binding/form_mapping_benchmark_test.go at line 55.

Analyze Your Own Codebase

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

Try Supermodel Free