MCPcopy Index your code
hub / github.com/cli/cli / TestSearcher

Function TestSearcher

pkg/cmd/search/shared/shared_test.go:18–29  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

16)
17
18func TestSearcher(t *testing.T) {
19 f := &cmdutil.Factory{
20 Config: func() (gh.Config, error) {
21 return config.NewBlankConfig(), nil
22 },
23 HttpClient: func() (*http.Client, error) {
24 return &http.Client{}, nil
25 },
26 }
27 _, err := Searcher(f)
28 assert.NoError(t, err)
29}
30
31func TestSearchIssues(t *testing.T) {
32 var now = time.Date(2022, 2, 28, 12, 30, 0, 0, time.UTC)

Callers

nothing calls this directly

Calls 2

NewBlankConfigFunction · 0.92
SearcherFunction · 0.70

Tested by

no test coverage detected