github.com/cockroachdb/cockroach@v20.2.0-alpha.1+incompatible/pkg/sql/execinfra/procstate_string.go (about) 1 // Code generated by "stringer -type=procState"; DO NOT EDIT. 2 3 package execinfra 4 5 import "strconv" 6 7 func _() { 8 // An "invalid array index" compiler error signifies that the constant values have changed. 9 // Re-run the stringer command to generate them again. 10 var x [1]struct{} 11 _ = x[StateRunning-0] 12 _ = x[StateDraining-1] 13 _ = x[StateTrailingMeta-2] 14 _ = x[StateExhausted-3] 15 } 16 17 const _procState_name = "StateRunningStateDrainingStateTrailingMetaStateExhausted" 18 19 var _procState_index = [...]uint8{0, 12, 25, 42, 56} 20 21 func (i procState) String() string { 22 if i < 0 || i >= procState(len(_procState_index)-1) { 23 return "procState(" + strconv.FormatInt(int64(i), 10) + ")" 24 } 25 return _procState_name[_procState_index[i]:_procState_index[i+1]] 26 }