UnifiedStorage: Rename Batch processing to Bulk (#101413)

This commit is contained in:
Ryan McKinley
2025-02-28 08:41:08 +03:00
committed by GitHub
parent 1d2f271c95
commit 806c043e45
27 changed files with 774 additions and 772 deletions
+24
View File
@@ -0,0 +1,24 @@
package sql
import (
"testing"
"github.com/stretchr/testify/require"
"k8s.io/apimachinery/pkg/apis/meta/v1/unstructured"
)
func TestBatch(t *testing.T) {
t.Parallel()
t.Run("rv iterator", func(t *testing.T) {
t.Parallel()
rv := newBulkRV()
v0 := rv.next(&unstructured.Unstructured{})
v1 := rv.next(&unstructured.Unstructured{})
v2 := rv.next(&unstructured.Unstructured{})
require.True(t, v0 > 1000)
require.Equal(t, int64(1), v1-v0)
require.Equal(t, int64(1), v2-v1)
})
}