testing.benchContext.maxLen (field)
7 uses
testing (current package)
benchmark.go#L221: if n := len(b.name) + ctx.extLen + 1; n > ctx.maxLen {
benchmark.go#L222: ctx.maxLen = n + 8 // Add additional slack to avoid too many jumps in size.
benchmark.go#L496: maxLen int // The largest recorded benchmark name.
benchmark.go#L527: if l := len(benchName) + ctx.extLen + 1; l > ctx.maxLen {
benchmark.go#L528: ctx.maxLen = l
benchmark.go#L563: fmt.Fprintf(b.w, "%-*s\t", ctx.maxLen, benchName)
benchmark.go#L590: fmt.Fprintf(b.w, "%-*s\t", ctx.maxLen, benchName)
![]() |
The pages are generated with Golds v0.3.2-preview. (GOOS=darwin GOARCH=amd64) Golds is a Go 101 project developed by Tapir Liu. PR and bug reports are welcome and can be submitted to the issue list. Please follow @Go100and1 (reachable from the left QR code) to get the latest news of Golds. |