MCPcopy
hub / github.com/etcd-io/bbolt / testCursorRepeatOperations_PrepareData

Function testCursorRepeatOperations_PrepareData

cursor_test.go:61–68  ·  view source on GitHub ↗
(t *testing.T, b *bolt.Bucket)

Source from the content-addressed store, hash-verified

59}
60
61func testCursorRepeatOperations_PrepareData(t *testing.T, b *bolt.Bucket) {
62 // ensure we have at least one branch page.
63 for i := 0; i < 1000; i++ {
64 k := []byte(fmt.Sprintf("%05d", i))
65 err := b.Put(k, k)
66 require.NoError(t, err)
67 }
68}
69
70func testRepeatCursorOperations_NextPrevNext(t *testing.T, b *bolt.Bucket) {
71 c := b.Cursor()

Callers 1

Calls 1

PutMethod · 0.45

Tested by

no test coverage detected