aboutsummaryrefslogtreecommitdiffstats
path: root/pkg/codesearch/codesearch_test.go
diff options
context:
space:
mode:
authorDmitry Vyukov <dvyukov@google.com>2026-02-17 15:43:11 +0100
committerDmitry Vyukov <dvyukov@google.com>2026-02-19 09:07:17 +0000
commit5fa76f921006ff7d47956b96a6cea333681444e4 (patch)
treef7c0c762f412e1b19c02347dbdb7040f44bab2d2 /pkg/codesearch/codesearch_test.go
parent746545b8b1e4c3a128db8652b340d3df90ce61db (diff)
pkg/aflow/tool/codesearcher: add end-to-end tests
Update #6811
Diffstat (limited to 'pkg/codesearch/codesearch_test.go')
-rw-r--r--pkg/codesearch/codesearch_test.go3
1 files changed, 1 insertions, 2 deletions
diff --git a/pkg/codesearch/codesearch_test.go b/pkg/codesearch/codesearch_test.go
index 5deed53bb..9163330ba 100644
--- a/pkg/codesearch/codesearch_test.go
+++ b/pkg/codesearch/codesearch_test.go
@@ -20,8 +20,7 @@ func TestClangTool(t *testing.T) {
}
func TestCommands(t *testing.T) {
- db := tooltest.LoadOutput[Database](t)
- index := &Index{db, []string{"testdata"}}
+ index := NewTestIndex(t, "testdata")
files, err := filepath.Glob(filepath.Join(osutil.Abs("testdata"), "query*"))
if err != nil {
t.Fatal(err)