MCPcopy
hub / github.com/perkeep/perkeep / addBlob

Method addBlob

pkg/search/handler_test.go:151–157  ·  view source on GitHub ↗
(b *test.Blob)

Source from the content-addressed store, hash-verified

149}
150
151func (fi *fetcherIndex) addBlob(b *test.Blob) error {
152 fi.tf.AddBlob(b)
153 if _, err := fi.idx.ReceiveBlob(ctxbg, b.BlobRef(), b.Reader()); err != nil {
154 return fmt.Errorf("ReceiveBlob(%v): %v", b.BlobRef(), err)
155 }
156 return nil
157}
158
159func (fi *fetcherIndex) addClaim(cl *schema.Builder) error {
160 lastModtime = lastModtime.Add(time.Second).UTC()

Callers 7

searchDescribeSetupFunction · 0.95
addClaimMethod · 0.95
addPermanodeMethod · 0.95
handlerDescribeTestSetupFunction · 0.95
initTestsFunction · 0.95

Calls 4

AddBlobMethod · 0.80
ReaderMethod · 0.80
ReceiveBlobMethod · 0.65
BlobRefMethod · 0.65

Tested by

no test coverage detected