MCPcopy Create free account
hub / github.com/Chat2AnyLLM/code-agent-manager / TestToolServiceList

Function TestToolServiceList

internal/desktop/tool_service_test.go:7–16  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

5)
6
7func TestToolServiceList(t *testing.T) {
8 withTempCacheDir(t)
9 tools, err := NewToolService().List()
10 if err != nil {
11 t.Fatalf("list tools: %v", err)
12 }
13 if len(tools) == 0 {
14 t.Fatal("expected bundled tools")
15 }
16}
17
18// TestToolServiceListCachesDetection confirms a second List() call reuses the
19// cached detection results rather than re-probing every binary. We assert this

Callers

nothing calls this directly

Calls 3

withTempCacheDirFunction · 0.85
NewToolServiceFunction · 0.85
ListMethod · 0.45

Tested by

no test coverage detected