MCPcopy
hub / github.com/perkeep/perkeep / sendTestBlobs

Function sendTestBlobs

pkg/blobserver/sync_test.go:61–69  ·  view source on GitHub ↗
(ch chan blob.SizedRef, list string, size uint32)

Source from the content-addressed store, hash-verified

59}
60
61func sendTestBlobs(ch chan blob.SizedRef, list string, size uint32) {
62 defer close(ch)
63 if list == "" {
64 return
65 }
66 for _, br := range strings.Split(list, ",") {
67 ch <- blob.SizedRef{Ref: blob.MustParse(br), Size: size}
68 }
69}
70
71func TestListMissingDestinationBlobs(t *testing.T) {
72 tests := []lmdbTest{

Callers 1

runMethod · 0.85

Calls 1

MustParseFunction · 0.92

Tested by

no test coverage detected