BenchmarkSliceValidationError() — gin Function Reference
Architecture documentation for the BenchmarkSliceValidationError() function in default_validator_benchmark_test.go from the gin codebase.
Entity Profile
Dependency Diagram
graph TD d5c26c32_378c_3791_66a6_b70b1be38f14["BenchmarkSliceValidationError()"] c4ddb0b5_3667_31b9_0b5a_e8ac6a79a794["default_validator_benchmark_test.go"] d5c26c32_378c_3791_66a6_b70b1be38f14 -->|defined in| c4ddb0b5_3667_31b9_0b5a_e8ac6a79a794 style d5c26c32_378c_3791_66a6_b70b1be38f14 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
binding/default_validator_benchmark_test.go lines 13–27
func BenchmarkSliceValidationError(b *testing.B) {
const size int = 100
e := make(SliceValidationError, size)
for j := 0; j < size; j++ {
e[j] = errors.New(strconv.Itoa(j))
}
b.ReportAllocs()
for b.Loop() {
if len(e.Error()) == 0 {
b.Errorf("error")
}
}
}
Domain
Subdomains
Defined In
Source
Frequently Asked Questions
What does BenchmarkSliceValidationError() do?
BenchmarkSliceValidationError() is a function in the gin codebase, defined in binding/default_validator_benchmark_test.go.
Where is BenchmarkSliceValidationError() defined?
BenchmarkSliceValidationError() is defined in binding/default_validator_benchmark_test.go at line 13.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free