// uniqueName creates a unique name for the given parent and subname by affixing // it with one or more counts, if necessary. func (b *indexBuilder) uniqueName(parent, subname string) string { … } // parseSubtestNumber splits a subtest name into a "#%02d"-formatted int // suffix (if present), and a prefix preceding that suffix (always). func parseSubtestNumber(s string) (prefix string, nn int) { … } // rewrite rewrites a subname to having only printable characters and no white // space. func rewrite(s string) string { … } func isSpace(r rune) bool { … }