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

Function TestSearchSnapshot_EmptyQuery

agent/filefinder/query_test.go:157–164  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

155}
156
157func TestSearchSnapshot_EmptyQuery(t *testing.T) {
158 t.Parallel()
159 snap := filefinder.MakeTestSnapshot([]string{"foo.go"})
160 cands := filefinder.SearchSnapshotForTest(filefinder.NewQueryPlanForTest(""), snap, 100)
161 if cands != nil {
162 t.Errorf("expected nil for empty query, got %v", cands)
163 }
164}
165
166func TestSearchSnapshot_DeletedDocsExcluded(t *testing.T) {
167 t.Parallel()

Callers

nothing calls this directly

Calls 2

MakeTestSnapshotFunction · 0.92
ErrorfMethod · 0.45

Tested by

no test coverage detected