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