mirror of
https://github.com/sipeed/picoclaw.git
synced 2026-06-12 18:08:54 +00:00
chore: remove MCP-focused test files
This commit is contained in:
@@ -1,44 +0,0 @@
|
||||
package tools
|
||||
|
||||
import (
|
||||
"testing"
|
||||
|
||||
"github.com/sipeed/picoclaw/pkg/mcp"
|
||||
)
|
||||
|
||||
func TestRegisterKnownMCPTools_RegistersAllTools(t *testing.T) {
|
||||
registry := NewToolRegistry()
|
||||
manager := &mcp.Manager{}
|
||||
discovered := []mcp.RegisteredTool{
|
||||
{
|
||||
QualifiedName: "mcp_context7__resolve_library_id",
|
||||
ServerName: "context7",
|
||||
ToolName: "resolve-library-id",
|
||||
Description: "Resolve library ID",
|
||||
Parameters: map[string]any{
|
||||
"type": "object",
|
||||
},
|
||||
},
|
||||
{
|
||||
QualifiedName: "mcp_context7__query_docs",
|
||||
ServerName: "context7",
|
||||
ToolName: "query-docs",
|
||||
Description: "Query docs",
|
||||
Parameters: map[string]any{
|
||||
"type": "object",
|
||||
},
|
||||
},
|
||||
}
|
||||
|
||||
count := RegisterKnownMCPTools(registry, manager, discovered)
|
||||
if count != 2 {
|
||||
t.Fatalf("RegisterKnownMCPTools count = %d, want 2", count)
|
||||
}
|
||||
|
||||
if _, ok := registry.Get("mcp_context7__resolve_library_id"); !ok {
|
||||
t.Fatalf("expected mcp_context7__resolve_library_id to be registered")
|
||||
}
|
||||
if _, ok := registry.Get("mcp_context7__query_docs"); !ok {
|
||||
t.Fatalf("expected mcp_context7__query_docs to be registered")
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user