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

Function requireCandHasPath

agent/filefinder/query_test.go:99–107  ·  view source on GitHub ↗
(t *testing.T, cands []filefinder.CandidateForTest, path string)

Source from the content-addressed store, hash-verified

97}
98
99func requireCandHasPath(t *testing.T, cands []filefinder.CandidateForTest, path string) {
100 t.Helper()
101 for _, c := range cands {
102 if c.Path == path {
103 return
104 }
105 }
106 t.Errorf("expected to find %q in candidates", path)
107}
108
109func TestSearchSnapshot_TrigramMatch(t *testing.T) {
110 t.Parallel()

Calls 2

HelperMethod · 0.65
ErrorfMethod · 0.45

Tested by

no test coverage detected