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

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)
}

Domain

Subdomains

Analyze Your Own Codebase

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

Try Supermodel Free