(t *testing.T)
| 180 | } |
| 181 | |
| 182 | func TestToolRegistry_RegisterOverwrite(t *testing.T) { |
| 183 | r := NewToolRegistry() |
| 184 | r.Register(newMockTool("dup", "first")) |
| 185 | r.Register(newMockTool("dup", "second")) |
| 186 | |
| 187 | if r.Count() != 1 { |
| 188 | t.Errorf("expected count 1 after overwrite, got %d", r.Count()) |
| 189 | } |
| 190 | tool, _ := r.Get("dup") |
| 191 | if tool.Description() != "second" { |
| 192 | t.Errorf("expected overwritten description 'second', got %q", tool.Description()) |
| 193 | } |
| 194 | } |
| 195 | |
| 196 | func TestToolRegistry_Execute_Success(t *testing.T) { |
| 197 | r := NewToolRegistry() |
nothing calls this directly
no test coverage detected