
This commit updates ginkgo to v2. Note that because ginkgo/v2 requires go1.18, it was updated as well. Signed-off-by: liornoy <lnoy@redhat.com> Co-authored-by: Sascha Grunert <sgrunert@redhat.com>
10 lines
151 B
Go
10 lines
151 B
Go
package internal
|
|
|
|
func MakeIncrementingIndexCounter() func() (int, error) {
|
|
idx := -1
|
|
return func() (int, error) {
|
|
idx += 1
|
|
return idx, nil
|
|
}
|
|
}
|