BuildTestIndex walks root and returns a populated Index, the same way Engine.AddRoot does but without starting a watcher.
(root string)
| 15 | // BuildTestIndex walks root and returns a populated Index, the same |
| 16 | // way Engine.AddRoot does but without starting a watcher. |
| 17 | func BuildTestIndex(root string) (*Index, error) { |
| 18 | return walkRoot(root) |
| 19 | } |
| 20 | |
| 21 | // IndexIsDeleted reports whether the document at id is tombstoned. |
| 22 | func IndexIsDeleted(idx *Index, id uint32) bool { |
no test coverage detected