MCPcopy
hub / github.com/perkeep/perkeep / PreventStorageAccessForTesting

Method PreventStorageAccessForTesting

pkg/index/corpus.go:358–360  ·  view source on GitHub ↗

PreventStorageAccessForTesting causes any access to the index's underlying Storage interface to panic.

()

Source from the content-addressed store, hash-verified

356// PreventStorageAccessForTesting causes any access to the index's underlying
357// Storage interface to panic.
358func (x *Index) PreventStorageAccessForTesting() {
359 x.s = crashStorage{}
360}
361
362type crashStorage struct {
363 sorted.KeyValue

Callers 1

testQueryTypeFunction · 0.80

Calls

no outgoing calls

Tested by 1

testQueryTypeFunction · 0.64