ceph-csi/vendor/github.com/onsi/ginkgo/v2/internal/counter.go

10 lines
151 B
Go
Raw Permalink Normal View History

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