mirror of
https://github.com/pgsty/minio.git
synced 2026-08-09 07:43:29 +03:00
1814ae52f4
Expand the generated-file gate beyond *_gen.go and go.sum to cover generated tests, msgp output, stringer files, go.mod, and untracked generated artifacts. Regenerate the 19 stale stringer outputs with the go.mod-pinned x/tools version. Runtime String output is unchanged, and a repeated generation pass now leaves the tree byte-identical. Co-authored-by: ChatGPT <noreply@openai.com> Co-authored-by: Claude <noreply@anthropic.com>
29 lines
1005 B
Go
29 lines
1005 B
Go
// Code generated by "stringer -type=rebalanceMetric -trimprefix=rebalanceMetric erasure-server-pool-rebalance.go"; DO NOT EDIT.
|
|
|
|
package cmd
|
|
|
|
import "strconv"
|
|
|
|
func _() {
|
|
// An "invalid array index" compiler error signifies that the constant values have changed.
|
|
// Re-run the stringer command to generate them again.
|
|
var x [1]struct{}
|
|
_ = x[rebalanceMetricRebalanceBuckets-0]
|
|
_ = x[rebalanceMetricRebalanceBucket-1]
|
|
_ = x[rebalanceMetricRebalanceObject-2]
|
|
_ = x[rebalanceMetricRebalanceRemoveObject-3]
|
|
_ = x[rebalanceMetricSaveMetadata-4]
|
|
}
|
|
|
|
const _rebalanceMetric_name = "RebalanceBucketsRebalanceBucketRebalanceObjectRebalanceRemoveObjectSaveMetadata"
|
|
|
|
var _rebalanceMetric_index = [...]uint8{0, 16, 31, 46, 67, 79}
|
|
|
|
func (i rebalanceMetric) String() string {
|
|
idx := int(i) - 0
|
|
if i < 0 || idx >= len(_rebalanceMetric_index)-1 {
|
|
return "rebalanceMetric(" + strconv.FormatInt(int64(i), 10) + ")"
|
|
}
|
|
return _rebalanceMetric_name[_rebalanceMetric_index[idx]:_rebalanceMetric_index[idx+1]]
|
|
}
|