cmd/pkgserver: use IR cache for ident
This removes requirement to open full cache. Signed-off-by: Ophestra <cat@gensokyo.uk>
This commit is contained in:
14
cmd/pkgserver/index_test.go
Normal file
14
cmd/pkgserver/index_test.go
Normal file
@@ -0,0 +1,14 @@
|
||||
package main
|
||||
|
||||
import "testing"
|
||||
|
||||
// newIndex returns the address of a newly populated packageIndex.
|
||||
func newIndex(t *testing.T) *packageIndex {
|
||||
t.Helper()
|
||||
|
||||
var index packageIndex
|
||||
if err := index.populate(nil); err != nil {
|
||||
t.Fatalf("populate: error = %v", err)
|
||||
}
|
||||
return &index
|
||||
}
|
||||
Reference in New Issue
Block a user