Subset of nothing is a valid empty registry — used by subagents that shouldn't have any tools at all.
(t *testing.T)
| 87 | // Subset of nothing is a valid empty registry — used by subagents that |
| 88 | // shouldn't have any tools at all. |
| 89 | func TestSubsetEmpty(t *testing.T) { |
| 90 | r := NewRegistry() |
| 91 | r.Register(fakeTool{name: "a"}) |
| 92 | sub := r.Subset() |
| 93 | if len(sub.Definitions()) != 0 { |
| 94 | t.Errorf("Subset() should be empty, got %d defs", len(sub.Definitions())) |
| 95 | } |
| 96 | } |
| 97 | |
| 98 | func TestExecuteUnknownReturnsErrorString(t *testing.T) { |
| 99 | r := NewRegistry() |
nothing calls this directly
no test coverage detected