MCPcopy Create free account
hub / github.com/bytebase/bytebase / hasCandidate

Function hasCandidate

backend/plugin/parser/trino/completion_test.go:208–215  ·  view source on GitHub ↗
(cands []base.Candidate, text string, typ base.CandidateType)

Source from the content-addressed store, hash-verified

206}
207
208func hasCandidate(cands []base.Candidate, text string, typ base.CandidateType) bool {
209 for _, c := range cands {
210 if c.Text == text && c.Type == typ {
211 return true
212 }
213 }
214 return false
215}
216
217func candidateSummary(cands []base.Candidate) []string {
218 out := make([]string, 0, len(cands))

Callers 1

TestCompletionFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected