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

Function TestCodeSearchProvider_Tool

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

Source from the content-addressed store, hash-verified

536}
537
538func TestCodeSearchProvider_Tool(t *testing.T) {
539 p := NewCodeSearch(&FileReader{RepoDir: "/tmp"})
540 if p.Tool() != CodeSearch {
541 t.Errorf("Tool() = %v, want CodeSearch", p.Tool())
542 }
543}
544
545func TestCodeSearchProvider_Execute_BlankSearchText(t *testing.T) {
546 p := NewCodeSearch(&FileReader{RepoDir: "/tmp"})

Callers

nothing calls this directly

Calls 2

NewCodeSearchFunction · 0.85
ToolMethod · 0.65

Tested by

no test coverage detected