MCPcopy
hub / github.com/cli/cli / NewSearcher

Function NewSearcher

pkg/search/searcher.go:57–63  ·  view source on GitHub ↗
(client *http.Client, host string, detector fd.Detector)

Source from the content-addressed store, hash-verified

55}
56
57func NewSearcher(client *http.Client, host string, detector fd.Detector) Searcher {
58 return &searcher{
59 client: client,
60 host: host,
61 detector: detector,
62 }
63}
64
65func (s searcher) Code(query Query) (CodeResult, error) {
66 result := CodeResult{}

Callers 10

SearcherFunction · 0.92
TestCodeRunFunction · 0.92
NewCmdExtensionFunction · 0.92
Test_getExtensionReposFunction · 0.92
TestSearcherCodeFunction · 0.85
TestSearcherCommitsFunction · 0.85
TestSearcherRepositoriesFunction · 0.85
TestSearcherIssuesFunction · 0.85
TestSearcherURLFunction · 0.85

Calls

no outgoing calls

Tested by 8

TestCodeRunFunction · 0.74
Test_getExtensionReposFunction · 0.74
TestSearcherCodeFunction · 0.68
TestSearcherCommitsFunction · 0.68
TestSearcherRepositoriesFunction · 0.68
TestSearcherIssuesFunction · 0.68
TestSearcherURLFunction · 0.68