MCPcopy Index your code
hub / github.com/coder/coder / BuildTestIndex

Function BuildTestIndex

agent/filefinder/export_test.go:17–19  ·  view source on GitHub ↗

BuildTestIndex walks root and returns a populated Index, the same way Engine.AddRoot does but without starting a watcher.

(root string)

Source from the content-addressed store, hash-verified

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

Callers 1

buildIndexFunction · 0.92

Calls 1

walkRootFunction · 0.85

Tested by

no test coverage detected