File: countunit_string.go

package info (click to toggle)
golang-github-performancecopilot-speed 4.0.0-4
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 508 kB
  • sloc: makefile: 38
file content (17 lines) | stat: -rw-r--r-- 385 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
// Code generated by "stringer -type=CountUnit"; DO NOT EDIT

package speed

import "fmt"

const _CountUnit_name = "OneUnit"

var _CountUnit_index = [...]uint8{0, 7}

func (i CountUnit) String() string {
	i -= 1048576
	if i >= CountUnit(len(_CountUnit_index)-1) {
		return fmt.Sprintf("CountUnit(%d)", i+1048576)
	}
	return _CountUnit_name[_CountUnit_index[i]:_CountUnit_index[i+1]]
}