MCPcopy
hub / github.com/perkeep/perkeep / countSortedRows

Function countSortedRows

pkg/blobserver/blobpacked/blobpacked_test.go:273–282  ·  view source on GitHub ↗
(t *testing.T, meta sorted.KeyValue)

Source from the content-addressed store, hash-verified

271}
272
273func countSortedRows(t *testing.T, meta sorted.KeyValue) int {
274 rows := 0
275 if err := sorted.Foreach(meta, func(key, value string) error {
276 rows++
277 return nil
278 }); err != nil {
279 t.Fatal(err)
280 }
281 return rows
282}
283
284func TestParseZipMetaRow(t *testing.T) {
285 tests := []struct {

Callers 1

TestReindexFunction · 0.85

Calls 2

ForeachFunction · 0.92
FatalMethod · 0.80

Tested by

no test coverage detected