File: metricsemantics_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 (27 lines) | stat: -rw-r--r-- 693 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
// Code generated by "stringer -type=MetricSemantics"; DO NOT EDIT

package speed

import "fmt"

const (
	_MetricSemantics_name_0 = "NoSemanticsCounterSemantics"
	_MetricSemantics_name_1 = "InstantSemanticsDiscreteSemantics"
)

var (
	_MetricSemantics_index_0 = [...]uint8{0, 11, 27}
	_MetricSemantics_index_1 = [...]uint8{0, 16, 33}
)

func (i MetricSemantics) String() string {
	switch {
	case 0 <= i && i <= 1:
		return _MetricSemantics_name_0[_MetricSemantics_index_0[i]:_MetricSemantics_index_0[i+1]]
	case 3 <= i && i <= 4:
		i -= 3
		return _MetricSemantics_name_1[_MetricSemantics_index_1[i]:_MetricSemantics_index_1[i+1]]
	default:
		return fmt.Sprintf("MetricSemantics(%d)", i)
	}
}