1
0
mirror of https://github.com/ceph/ceph-csi.git synced 2025-01-21 04:09:30 +00:00
ceph-csi/vendor/github.com/onsi/ginkgo/v2/internal/counter.go

10 lines
151 B
Go
Raw Normal View History

package internal
func MakeIncrementingIndexCounter() func() (int, error) {
idx := -1
return func() (int, error) {
idx += 1
return idx, nil
}
}