MCPcopy
hub / github.com/grpc/grpc-go / PrintableName

Method PrintableName

benchmark/stats/stats.go:184–188  ·  view source on GitHub ↗

PrintableName returns a one line name which includes the features specified by 'wantFeatures' which is a bitmask of wanted features, indexed by FeaturesIndex.

(wantFeatures []bool)

Source from the content-addressed store, hash-verified

182// by 'wantFeatures' which is a bitmask of wanted features, indexed by
183// FeaturesIndex.
184func (f Features) PrintableName(wantFeatures []bool) string {
185 var b bytes.Buffer
186 f.partialString(&b, wantFeatures, "_", "-")
187 return b.String()
188}
189
190// partialString writes features specified by 'wantFeatures' to the provided
191// bytes.Buffer.

Callers 1

formatBenchmarkFunction · 0.80

Calls 2

partialStringMethod · 0.95
StringMethod · 0.95

Tested by

no test coverage detected