MCPcopy Create free account
hub / github.com/alibaba/open-code-review / TestCodeSearchProvider_Tool

Function TestCodeSearchProvider_Tool

internal/tool/code_search_test.go:403–408  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

401}
402
403func TestCodeSearchProvider_Tool(t *testing.T) {
404 p := NewCodeSearch(&FileReader{RepoDir: "/tmp"})
405 if p.Tool() != CodeSearch {
406 t.Errorf("Tool() = %v, want CodeSearch", p.Tool())
407 }
408}
409
410func TestCodeSearchProvider_Execute_BlankSearchText(t *testing.T) {
411 p := NewCodeSearch(&FileReader{RepoDir: "/tmp"})

Callers

nothing calls this directly

Calls 2

NewCodeSearchFunction · 0.85
ToolMethod · 0.65

Tested by

no test coverage detected